libcap.so.1:cannot open shared object file: No such file or directory
redhat 6.5 x86_64+oracle 11.2.0.4+asm(GI standalone)
occur "libcap.so.1: cannot open shared object file" during Install oracle Grid ifrastructure 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. 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: /home/grid/product/11.2.0/grid/crs/install/crsconfig_params /home/grid/product/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=127 with message: /home/grid/product/11.2.0/grid/bin/crsctl.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory Improper Oracle Grid Infrastructure configuration found on this host Deconfigure the existing cluster configuration before starting to configure a new Grid Infrastructure run '/home/grid/product/11.2.0/grid/crs/install/roothas.pl -deconfig' to configure existing failed configuration and then rerun root.sh /home/grid/product/11.2.0/grid/perl/bin/perl -I/home/grid/product/11.2.0/grid/perl/lib -I /home/grid/product/11.2.0/grid/crs/install /home/grid/product/11.2.0/grid/crs/install/roothas.pl execution failed |
【排除過程】
1.查詢是否已正確安裝並生成了lib檔案
shadcdlora08:~ # rpm -qa|grep libcap libcap2-32bit-2.11-2.17.1 libcap2-2.11-2.17.1 |
2.很明顯 libcap包已安裝過了,為什麼oracle不會自動去尋找呢,繼續查詢
shadcdlora08:/ # 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 |
【注】很明顯libcap.so.1 不存在.
本機安裝的時候/lib64/libcap.so.1.10不存在,有 libcap.so.2.16
3.根據錯誤提示缺少libcap.so.1,為其建立一個軟連線
shadcdlora08:~ # cd /lib64 shadcdlora08:~ # ln -s libcap.so.1.10 libcap.so.1 shadcdlora08# 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 |
ln -s libcap.so.2.16 libcap.so.1
4.強制重置配置11g GI ohas
【roothas.pl deconfig 見】http://blog.csdn.net/wengtf/article/details/11484447
# /home/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 |
5.重跑root.sh
[root@stb CVU_11.2.0.3.0_grid]# /home/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. 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: /home/grid/product/11.2.0/grid/crs/install/crsconfig_params LOCAL ADD MODE Creating OCR keys for user 'grid', privgrp 'dba'.. Operation successful. LOCAL ONLY MODE Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4664: Node stb successfully pinned. Adding Clusterware entries to upstart stb 2013/04/24 16:36:29 /home/grid/product/11.2.0/grid/cdata/stb/backup_20130424_163629.olr Successfully configured Oracle Grid Infrastructure for a Standalone Server |
http://blog.csdn.net/wengtf/article/details/9854637
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21754115/viewspace-1118529/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- CentOS7提示 libsasl2.so.2: cannot open shared object fileCentOSObject
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- 影片匯聚平臺EasyCVR啟動出現報錯“cannot open shared object file”的原因排查與解決VRObject
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- iostat -n來統計NFS讀寫資訊時碰到了Cannot open /proc/self/mountstats: No such file or directoryiOSNFS
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- docker容器掛載 No such file or directoryDocker
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- gitbook no such file or directory 怎麼解決Git
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- Laravel5.6安裝:Warning: require(../vendor/autoload.php): failed to open stream: No such file or directoryLaravelUIPHPAI
- WPF open image and print as pdf file
- Can't open file: (errno: 24)
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- open_basedir() restrictijon in effect. FIle()REST
- Linux open file與 fs-maxLinux
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- cannot find trajectory file at ./examples/trajectory.txt
- “no source“: Error: #5: cannot open source input file “C:\Users\xxx\AppData\Local\Temp\p4228: PermiErrorAPP
- [20181214]open file using O_DIRECT.txt
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- 虛擬環境bin/python: bad interpreter: No such file or directoryPython
- 在 Linux 中執行.sh 指令碼 No such file or directoryLinux指令碼