博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle 11g安装GI后,运行roothas.pl脚本报错libcap.so.1找不到
阅读量:7112 次
发布时间:2019-06-28

本文共 13520 字,大约阅读时间需要 45 分钟。

环境:RHEL6.4 + Oracle 11.2.0.3

问题:需求是文件系统迁移到ASM,在安装GI后,运行roothas.pl脚本报错

1.运行root.sh后,按提示运行roothas.pl报错:

[root@JY-DB mnt]# /u01/app/11.2.0/grid/crs/install/roothas.plUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUser ignored Prerequisites during installation/u01/app/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=127 with message: /u01/app/11.2.0/grid/bin/crsctl.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directoryImproper Oracle Grid Infrastructure configuration found on this hostDeconfigure the existing cluster configuration before startingto configure a new Grid Infrastructurerun '/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig'to configure existing failed configuration and then rerun root.sh[root@JY-DB mnt]#

2.Google搜索得知是缺少compat-libcap1,安装这个包

[root@JY-DB lib]# yum install compat-libcap1Loaded plugins: product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Setting up Install ProcessResolving Dependencies--> Running transaction check---> Package compat-libcap1.x86_64 0:1.10-1 will be installed--> Finished Dependency ResolutionDependencies Resolved====================================================================================================================================================================== Package                                       Arch                                  Version                                 Repository                          Size======================================================================================================================================================================Installing: compat-libcap1                                x86_64                                1.10-1                                  ISO                                 17 kTransaction Summary======================================================================================================================================================================Install       1 Package(s)Total download size: 17 kInstalled size: 29 kIs this ok [y/N]: yDownloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction  Installing : compat-libcap1-1.10-1.x86_64                                                                                                                       1/1  Verifying  : compat-libcap1-1.10-1.x86_64                                                                                                                       1/1Installed:  compat-libcap1.x86_64 0:1.10-1                                                                                                                                      Complete![root@JY-DB lib]# rpm -qa |grep compat-libcap1compat-libcap1-1.10-1.x86_64

3.重新运行roothas.pl,按提示重新配置roothas

[root@JY-DB lib]# /u01/app/11.2.0/grid/crs/install/roothas.plUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUser ignored Prerequisites during installationImproper Oracle Grid Infrastructure configuration found on this hostDeconfigure the existing cluster configuration before startingto configure a new Grid Infrastructurerun '/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig'to configure existing failed configuration and then rerun root.sh[root@JY-DB lib]# /u01/app/11.2.0/grid/crs/install/roothas.pl -deconfigUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsOracle Restart stack is not active on this nodeRestart the SIHA stack (use /u01/app/11.2.0/grid/bin/crsctl start has) and retryFailed to write the checkpoint:'' with status:FAIL.Error code is 256Failed to verify HA resources[root@JY-DB lib]# /u01/app/11.2.0/grid/bin/crsctl status res -tCRS-4639: Could not contact Oracle High Availability ServicesCRS-4000: Command Status failed, or completed with errors.[root@JY-DB lib]# /u01/app/11.2.0/grid/bin/crsctl start hasCRS-4124: Oracle High Availability Services startup failed.CRS-4000: Command Start failed, or completed with errors.[root@JY-DB lib]# /u01/app/11.2.0/grid/crs/install/roothas.plUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUser ignored Prerequisites during installationImproper Oracle Grid Infrastructure configuration found on this hostDeconfigure the existing cluster configuration before startingto configure a new Grid Infrastructurerun '/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig'to configure existing failed configuration and then rerun root.sh[root@JY-DB config]# /u01/app/11.2.0/grid/crs/install/roothas.pl -hOption hahome requires an argumentUsage:      roothas.pl [-verbose] [-upgrade | -patch]                 [-paramfile 
] [-deconfig] [-force] [-unlock [-hahome
]] Options: -verbose Run this script in verbose mode -upgrade Oracle HA is being upgraded from previous version -patch Oracle HA is being upgraded to a patch version -paramfile Complete path of file specifying HA parameter values -deconfig To deconfigure Oracle Restart -force To deconfigure Oracle Restart when configuration is in a good condition -unlock Unlock Oracle Restart home -hahome Complete path of Oracle HA home If neither -upgrade nor -patch is supplied, a new install is performed To see the full manpage for this program, execute: perldoc roothas.pl[root@JY-DB config]# /u01/app/11.2.0/grid/crs/install/roothas.pl -verbose -deconfig -forceUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsCRS-4639: Could not contact Oracle High Availability ServicesCRS-4000: Command Stop failed, or completed with errors.CRS-4639: Could not contact Oracle High Availability ServicesCRS-4000: Command Delete failed, or completed with errors.CRS-4544: Unable to connect to OHASCRS-4000: Command Stop failed, or completed with errors.Failure in execution (rc=-1, 0, 没有那个文件或目录) for command /etc/init.d/ohasd deinstallSuccessfully deconfigured Oracle Restart stack[root@JY-DB config]# /u01/app/11.2.0/grid/root.shPerforming root user operation for Oracle 11gThe following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]:The contents of "dbhome" have not changed. No need to overwrite.The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.plTo configure Grid Infrastructure for a Cluster execute the following command:/u01/app/11.2.0/grid/crs/config/config.shThis command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.[root@JY-DB config]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.plUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUser ignored Prerequisites during installationLOCAL ADD MODECreating OCR keys for user 'grid', privgrp 'oinstall'..Operation successful.LOCAL ONLY MODESuccessfully accumulated necessary OCR keys.Creating OCR keys for user 'root', privgrp 'root'..Operation successful.CRS-4664: Node jy-db successfully pinned.Adding Clusterware entries to upstartjy-db 2014/07/19 18:23:02 /u01/app/11.2.0/grid/cdata/jy-db/backup_20140719_182302.olrSuccessfully configured Oracle Grid Infrastructure for a Standalone Server[root@JY-DB config]#[root@JY-DB config]#[root@JY-DB config]# ps -ef |grep hasgrid 3935 3815 3 Jul18 pts/3 00:49:40 /u01/app/11.2.0/grid/jdk/jre/bin/java -Doracle.installer.not_bootstrap=true -DORACLE_HOME=/u01/app/11.2.0/grid -Dsun.java2d.font.DisableAlgorithmicStyles=true -DDISPLAY=localhost:11.0 -DIGNORE_PREREQS= -DJDBC_PROTOCOL=thin -mx128m -classpath /u01/app/11.2.0/grid/assistants/asmca/jlib/asmca.jar:/u01/app/11.2.0/grid/assistants/jlib/assistantsCommon.jar:/u01/app/11.2.0/grid/jlib/ewt3.jar:/u01/app/11.2.0/grid/jlib/ewtcompat-3_3_15.jar:/u01/app/11.2.0/grid/jlib/share.jar:/u01/app/11.2.0/grid/jlib/help4.jar:/u01/app/11.2.0/grid/jlib/jewt4.jar:/u01/app/11.2.0/grid/jlib/oracle_ice5.jar:/u01/app/11.2.0/grid/jlib/kodiak.jar:/u01/app/11.2.0/grid/lib/xmlparserv2.jar:/u01/app/11.2.0/grid/jlib/orai18n.jar:/u01/app/11.2.0/grid/jlib/ldapjclnt11.jar:/u01/app/11.2.0/grid/jlib/netcfg.jar:/u01/app/11.2.0/grid/jlib/ojmisc.jar:/u01/app/11.2.0/grid/jlib/oraclepki103.jar:/u01/app/11.2.0/grid/jlib/opm.jar:/u01/app/11.2.0/grid/jdbc/lib/ojdbc5.jar:/u01/app/11.2.0/grid/jlib/srvm.jar:/u01/app/11.2.0/grid/jlib/srvmhas.jar:/u01/app/11.2.0/grid/jlib/srvmasm.jar:/u01/app/11.2.0/grid/classes:/u01/app/11.2.0/grid/jlib/oemlt.jar:/u01/app/11.2.0/grid/jlib/emca.jar:/u01/app/11.2.0/grid/sysman/jlib/emCORE.jar:/u01/app/11.2.0/grid/oc4j/j2ee/home/oc4j.jar:/u01/app/11.2.0/grid/oc4j/j2ee/home/db_oc4j_deploy.jar:/u01/app/11.2.0/grid/jlib/emConfigInstall.jar:/u01/app/11.2.0/grid/oui/jlib/OraInstaller.jar:/u01/app/11.2.0/grid/oui/jlib/OraPrereq.jar:/u01/app/11.2.0/grid/inventory/prereqs/oui/OraPrereqChecks.jar:/u01/app/11.2.0/grid/oui/jlib/OraPrereqChecks.jar:/u01/app/11.2.0/grid/oui/jlib/OraCheckPoint.jar:/u01/app/11.2.0/grid/jlib/cvu.jar:/u01/app/11.2.0/grid/assistants/asmca/doc/asmcahelp.jar:/u01/app/11.2.0/grid/oc4j/j2ee/home/lib/http_client.jar oracle.sysman.assistants.usmca.Usmcagrid 20932 1 0 17:15 ? 00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin rebootgrid 21192 1 0 17:32 ? 00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin rebootgrid 21570 1 0 17:48 ? 00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin rebootroot 22251 1 0 18:22 ? 00:00:00 /bin/sh /etc/init.d/init.ohasd rungrid 22265 1 6 18:22 ? 00:00:01 /u01/app/11.2.0/grid/bin/ohasd.bin rebootroot 22502 30692 0 18:23 pts/0 00:00:00 grep has

4.用asmca创建ASM磁盘组成功

[root@JY-DB config]# su - gridsq[grid@JY-DB ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Sat Jul 19 18:23:44 2014Copyright (c) 1982, 2011, Oracle.  All rights reserved.Connected to an idle instance.SQL> exitDisconnected[grid@JY-DB ~]$ echo $ORACLE_SID+ASM--此时正在图形界面创建ASM磁盘组中。[grid@JY-DB ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Sat Jul 19 18:24:17 2014Copyright (c) 1982, 2011, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Automatic Storage Management optionSQL> select status, instance_name from v$instance;select status, instance_name from v$instance*ERROR at line 1:ORA-03135: connection lost contactProcess ID: 22829Session ID: 159 Serial number: 3SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Automatic Storage Management option--创建ASM磁盘组成功后再看+ASM实例的状态[grid@JY-DB ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Sat Jul 19 18:24:47 2014Copyright (c) 1982, 2011, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Automatic Storage Management optionSQL> select status, instance_name from v$instance;STATUS       INSTANCE_NAME------------ ----------------STARTED      +ASMSQL>SQL> desc v$asm_diskgroup Name                                      Null?    Type ----------------------------------------- -------- ---------------------------- GROUP_NUMBER                                       NUMBER NAME                                               VARCHAR2(30) SECTOR_SIZE                                        NUMBER BLOCK_SIZE                                         NUMBER ALLOCATION_UNIT_SIZE                               NUMBER STATE                                              VARCHAR2(11) TYPE                                               VARCHAR2(6) TOTAL_MB                                           NUMBER FREE_MB                                            NUMBER HOT_USED_MB                                        NUMBER COLD_USED_MB                                       NUMBER REQUIRED_MIRROR_FREE_MB                            NUMBER USABLE_FILE_MB                                     NUMBER OFFLINE_DISKS                                      NUMBER COMPATIBILITY                                      VARCHAR2(60) DATABASE_COMPATIBILITY                             VARCHAR2(60) VOTING_FILES                                       VARCHAR2(1)SQL> select GROUP_NUMBER, NAME, STATE, TOTAL_MB, FREE_MB from v$asm_diskgroup;GROUP_NUMBER NAME                           STATE         TOTAL_MB    FREE_MB------------ ------------------------------ ----------- ---------- ----------           1 DATA                           MOUNTED          81920      81855SQL>

转载地址:http://tbghl.baihongyu.com/

你可能感兴趣的文章
IPTABLES 规则(Rules)
查看>>
关于URL编码
查看>>
深度学习的可解释性研究(一):让模型「说人话」
查看>>
QT5提示can not find -lGL的解决方法
查看>>
Silverlight/Windows8/WPF/WP7/HTML5周学习导读(9月17日-9月23日)
查看>>
Tap-Ahead:让移动搜索更加便捷的解决之道
查看>>
Windows Server2016 Hyper-v Cluster部署
查看>>
juniper路由器配置
查看>>
jQuery一点一滴系列教程(第三点)
查看>>
ARP解决方法/工具 真假ARP防范区别方法 ARP终极解决方案
查看>>
系统数据权限的实现方案
查看>>
华为vlan划分,单臂路由以及静态路由
查看>>
UCD 2010百度工作坊
查看>>
ssh2免密码登录
查看>>
4_move_find_into_model
查看>>
MySQL · 捉虫动态 · UK 包含 NULL 值备库延迟分析
查看>>
windows server 2012 standard Evaluation 安装试用
查看>>
windows server 2008中配置TCP/IP
查看>>
网管必读:交换机技术简介及应用分析
查看>>
.NET多线程编程(9)——Thread类
查看>>