Redhat 6.4安裝ORACLE11R2 ,運行root.sh報錯:“libcap.so.1:cannot open shared object file”,oracle11r2root.sh

來源:互聯網
上載者:User

Redhat 6.4安裝ORACLE11R2 ,運行root.sh報錯:“libcap.so.1:cannot open shared object file”,oracle11r2root.sh

1、系統內容:

    Redhat 6.4 企業版

                    Oracle11.2.0.2 RAC+ASM

2、報錯資訊:/oracle/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

3、問題的可能性:

①缺少系統補丁包“libcap"補丁包

 # rpm -qa|grep libcap
libcap-2-32bit-2.11-2.17.1
libcap-2-2.11-2.17.1

②缺少連結檔案“libcap.so.1”

#cd /lib64
#ll|grep libcap
-rwxr-xr-x 1 root root 14792 Feb 21  2009 libcap.so.1.10
lrwxrwxrwx 1 root root    14 Jul 17 23:53 libcap.so.2 -> libcap.so.2.11
-rwxr-xr-x 1 root root 19016 Nov  5  2011 libcap.so.2.11

4、整體解決辦法:

①缺少系統補丁包“libcap"補丁包

 # rpm -ivh|grep libcap
libcap2-32bit-2.11-2.17.1
libcap2-2.11-2.17.1

②缺少連結檔案“libcap.so.1”

尋找所缺連結檔案的位置:
# find / -name libcap*
/lib/libcap.so.2
/lib/libcap.so.2.11
/lib64/libcap.so.2
/lib64/libcap.so.2.11
/lib64/libcap.so.1.10
建立連結檔案:
# cd /lib64
# ln -s libcap.so.1.10  libcap.so.1
#ls -al libcap*
lrwxrwxrwx 1 root root    14 Aug  1 17:22 libcap.so.1 -> libcap.so.1.10
-rwxr-xr-x 1 root root 14792 Feb 21  2009 libcap.so.1.10
lrwxrwxrwx 1 root root    14 Jul 17 23:53 libcap.so.2 -> libcap.so.2.11
-rwxr-xr-x 1 root root 19016 Nov  5  2011 libcap.so.2.11
強制重設配置11g GI ohas
# /oracle/grid/product/11.2.0/grid/crs/install/roothas.pl -deconfig -force
Using configuration parameter file: /home/grid/product/11.2.0/grid/crs/install/crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Failure in execution (rc=-1, 0, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle Restart stack
重跑root.sh
[root@rac1 CVU_11.2.0.3.0_grid]# /oracle/grid/product/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /home/grid/product/11.2.0/grid
Enter 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.
*************************************省略中間彈出的文本*************************************************************
Successfully configured Oracle Grid Infrastructure for a Standalone Server


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.