数据库
首页 > 数据库> > redhat6.9安装oracle11.2.0.4,执行root.sh脚本报错libcap.so.1 No such file or directory

redhat6.9安装oracle11.2.0.4,执行root.sh脚本报错libcap.so.1 No such file or directory

作者:互联网

redhat6.9安装oracle11.2.0.4,执行root.sh脚本报错libcap.so.1 No such file or directory

查询MOS

Linux: clscfg.bin Error While Loading Shared Libraries: libcap.so.1 (Doc ID 952051.1)    
现象匹配
11gR2 Grid Infrastructure root.sh or rootupgrade.sh fails with following error:
Failed to create keys in the OLR, rc = 127, 32512
OR
clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
OR
CLSRSC-188: Failed to create keys in Oracle Local Registry
OR
Failed to create keys in the OLR, rc = 127, Message:
/u01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: /lib64/libcap.so.1: file too short
CAUSE
libcap package is not installed:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GRID_HOME/lib
ldd $GRID_HOME/bin/clscfg.bin
..
         libcap.so.1 => not found
..
or the file /lib64/libcap.so.1.10 is 0 byte.
检查与mos现象一致
[root@<node2> ~]# ls -l /lib64/libcap.so.1.10
-rwxr-xr-x. 1 root root 0 Nov 20 2010 /lib64/libcap.so.1.10 <==========0 byte

解决方法,安装如下3个包 ! SOLUTION Install libcap1 and libcap2 package, i.e.: rpm -ivh libcap1-1.10-6.10.x86_64.rpm rpm -ivh libcap2-2.11-2.15.x86_64.rpm Alternatively install compat-libcap1 Once installed, re-run root script. 使用yum安装compat的包 #yum -y install compat*
compat-libcap1.x86_64 0:1.10-1
[root@wsgw1 mnt]# ls -l /lib64/libcap.so.1.10 
-rwxr-xr-x 1 root root 15224 Aug 24 2010 /lib64/libcap.so.1.10
再次执行root.sh脚本,两个节点都需要安装rpm包

 

标签:bin,oracle11.2,No,so.1,file,libcap,lib64,root
来源: https://www.cnblogs.com/lvcha001/p/12829416.html