clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared

在安装Oracle RAC过程中遇到clscfg.bin加载共享库libcap.so.1失败的问题。通过错误分析发现缺少compat-libcap1包,使用yum安装该包后,重新执行安装步骤解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

安装RAC的时候出现报错  :

[root@gtsdb1 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@gtsdb1 ~]# /u01/app/grid/11.2.0/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Failed to create keys in the OLR, rc = 127, Message:
  /u01/app/grid/11.2.0/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared

Failed to create keys in the OLR at /u01/app/grid/11.2.0/crs/install/crsconfig_lib.pm line 7497.
/u01/app/grid/11.2.0/perl/bin/perl -I/u01/app/grid/11.2.0/perl/lib -I/u01/app/grid/11.2.0/crs/install /u01/a

看来安装的时候还没有按compat-libcap1安装上?检查一下果然是。

问题分析:

通过错误分析发现还有一个包没有安装

解决方案:

安装compat-libcap1安装包

[root@gtsdb1 ~]# locate libcap.so.1
[root@gtsdb1 ~]# rpm -qa |grep -i libcap
libcap-ng-0.6.4-3.el6_0.1.x86_64
libcap-2.16-5.5.el6.x86_64
[root@gtsdb1 ~]# yum list |grep compat-libcap1
compat-libcap1.i686                    1.10-1                               yum 
compat-libcap1.x86_64                  1.10-1                               yum 
[root@gtsdb1 ~]# yum install -y compat-libcap1
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libcap1.x86_64 0:1.10-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================
 Package                         Arch                    Version                 Repository            Size
============================================================================================================
Installing:
 compat-libcap1                  x86_64                  1.10-1                  yum                   17 k

Transaction Summary
============================================================================================================
Install       1 Package(s)
Total download size: 17 k
Installed size: 29 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : compat-libcap1-1.10-1.x86_64                                                             1/1 
  Verifying  : compat-libcap1-1.10-1.x86_64                                                             1/1 
Installed:
  compat-libcap1.x86_64 0:1.10-1                                                j                            
Complete!

安装包后卸载之前安装的crs

[root@gtsdb1 ~]# /u01/app/grid/11.2.0/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd


CLSU-00100: Operating System function: failed failed with error data: 2
CLSU-00101: Operating System error message: No such file or directory
CLSU-00103: error location: scrsearch3
CLSU-00104: additional error information: id doesnt exist scls_scr_setval
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node

在重新执行:

[root@gtsdb1 ~]# /u01/app/grid/11.2.0/root.sh

done!!!

要检查Oracle Grid Infrastructure (OracleGI) 是否启动,你可以采取以下几种方法: 1. 使用Oracle提供的命令行工具:通过在命令行界面(如Unix/Linux的shell或Windows的命令提示符)中输入以下命令之一来检查OracleGI的状态: - 对于Linux系统,可以使用`crsctl`命令: ``` crsctl check crs ``` 如果OracleGI正常运行,这个命令会返回CRS的版本信息以及状态(比如是否正常启动)。 - 对于Solaris系统,可能需要使用`clscfg`命令: ``` clscfg -l ``` 这个命令可以列出所有当前配置的集群资源和它们的状态。 2. 通过图形界面工具:Oracle Grid Infrastructure 包括一个名为 Enterprise Manager(企业管理器)的图形界面工具,它提供了一个Web控制台来监视和管理集群环境。你可以登录到Enterprise Manager并查看OracleGI的状态。 3. 查看日志文件:查看OracleGI的日志文件也是判断其是否启动的一个方法。日志文件通常位于`$GRID_HOME/log`目录下,其中`$GRID_HOME`是Oracle Grid Infrastructure安装目录。日志文件中通常会包含启动和关闭过程中的详细信息。 - 对于OCR和 Voting Disk 的日志,可以查看`$GRID_HOME/log`目录下的`OCR.loc`和`voting_disk.log`文件。 - 对于CRS服务的日志,可以查看`$GRID_HOME/log/cfgtoollogs`目录下的相应文件。 确保在检查这些信息时你有适当的系统权限,因为Grid Infrastructure是关键的系统组件。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值