安装RAC执行root.sh时报错:error while loading shared libraries: libcap.so.1: cannot open shared object file:

    本次安装Oracle Rac执行root.sh脚本时,出现如下报错:

Installing Trace File Analyzer
Failed to create keys in the OLR, rc = 127, Message:
  /u01/grid/11.2.0/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory 

Failed to create keys in the OLR at /u01/grid/11.2.0/crs/install/crsconfig_lib.pm line 7660.
/u01/grid/11.2.0/perl/bin/perl -I/u01/grid/11.2.0/perl/lib -I/u01/grid/11.2.0/crs/install /u01/grid/11.2.0/crs/install/rootcrs.pl execution failed

   报错明显显示找不到libcap.so.1,但是在安装前进行检测发现所有的包其实都已经安装完毕了。

   与这个文件相关的包为compat-libcap1-1.10-1.x86_64.rpm

   此时我们只需要做如下操作即可:

cd /lib64
[root@gwdb1 lib64]# ll libcap.so*
lrwxrwxrwx. 1 root root    11 Jan  3 11:26 libcap.so -> libcap.so.2
lrwxrwxrwx. 1 root root    14 Jan  3 11:14 libcap.so.2 -> libcap.so.2.16
-rwxr-xr-x. 1 root root 19016 Aug 23  2011 libcap.so.2.16
[root@gwdb1 lib64]# ln -s libcap.so.2
libcap.so.2     libcap.so.2.16  
[root@gwdb1 lib64]# ln -s libcap.so.2.16 libcap.so.1
   然后执行下如下脚本,删除之前执行root.sh所做的配置

$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force
   需要注意的是,以上脚本其实可以不用执行,因为oracle 11g执行root.sh时,会记录上次执行的检查点,故做完链接库文件后可以直接执行root.sh脚本


   此时,执行root.sh脚本,成功通过。

   






  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值