Centos7 x86_64+oracle 11.2.0.4+asm(GI standalone)

Running Oracle 11g root.sh script...

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

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 ...

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.sh script.
Now product-specific root actions will be performed.
2016-06-08 15:46:20: Parsing the host name
2016-06-08 15:46:20: Checking for super user privileges
2016-06-08 15:46:20: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0/grid/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, rc = 127, 32512
OLR configuration failed

 

【排除过程】

1.查找是否已正确安装并生成了lib文件

 

[root@rac1 install]#   rpm -qa|grep libcap
  libcap-ng-0.7.5-4.el7.x86_64
  libcap-2.22-8.el7.x86_64

 

    2.很明显 libcap包已安装过了,为什么oracle不会自动去寻找呢,继续查找

 

[root@rac1 install] #   find / -name libcap*
  /usr/lib64/libcap-ng.so.0
  /usr/lib64/libcap-ng.so.0.0.0
  /usr/lib64/libcap.so.2.22
  /usr/lib64/libcap.so.2
  /usr/lib64/openssl/engines/libcapi.so
  /usr/share/doc/libcap-ng-0.7.5
  /usr/share/doc/libcap-2.22

【注】很明显libcap.so.1 不存在.
本机安装的时候/lib64/libcap.so.1不存在,有 libcap.so.2.22

    3.根据错误提示缺少libcap.so.1,为其建立一个软连接

[root@rac1 install] # cd   /lib64
[root@rac1 lib64] ln -s libcap.so.2.22    libcap.so.1
[root@rac1 lib64]# ls -al libcap*

根据作者的经验,在本机上进行如下操作:
ln -s libcap.so.2.22 libcap.so.1

    4.强制重置配置

# /u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig   -force

    5.重跑root.sh

[root@rac1   install]#/u01/app/11.2.0/grid/root.sh



注意:本文归作者所有,未经作者允许,不得转载