(轉)RAC srvctl 命令報 libpthread.so.0 cannot open shared object file解決辦法
執行srvctl 命令報錯:
[oracle@rac1 u01]$ srvctl remove asm -n rac1
/u01/app/oracle/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
開始還覺得奇怪,因為我在安裝CRS的時候,已經修改了vipca 和ORA_CRS_HOME下srvctl命令的中引數。 即註釋掉了LD_ASSUME_KERNEL引數。
但是執行的時候,還是報了這個錯誤,後來用which srvctl命令才發現了問題的所在:
[oracle@rac1 u01]$ which srvctl
/u01/app/oracle/product/10.2.0/db_1/bin/srvctl
系統呼叫的是ORACLE_HOME下的srvctl。所以在修改LD_ASSUME_KERNEL命令時,別忘了修改ORACLE_HOME下的,如果變數是將ORACLE_HOME放在前面,那麼就會呼叫ORACLE_HOME下的srvctl命令。
[oracle@rac2 bin]$ echo $PATH
.:.:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/NX/bin:/home/oracle/bin:/home/oracle/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/u01/app/oracle/product/crs/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/u01/app/oracle/common/oracle/bin:/home/oracle/bin:/home/oracle/bin:/u01/app/oracle/product/crs/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/u01/app/oracle/product/crs/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/u01/app/oracle/common/oracle/bin
環境變數中的設定:
[oracle@rac2 ~]$ vi ~/.bash_profile
...
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
...
修改一下環境變數中PATH的順序:
export PATH=.:${PATH}:$HOME/bin:$ORA_CRS_HOME/bin:$ORACLE_HOME/bin
重新開了一個ssh視窗,因為在連線的時候才會載入profile檔案,srvctl 的位置變成了ORA_CRS_HOME下面的了。
[oracle@rac2 ~]$ which srvctl
/u01/app/oracle/product/crs/bin/srvctl
註釋的方法有兩種:
(1)使用unset
#Remove this workaround when the bug 3937317 is fixed
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL
(2)直接註釋掉:
#Remove this workaround when the bug 3937317 is fixed
#LD_ASSUME_KERNEL=2.4.19
#export LD_ASSUME_KERNEL
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12272958/viewspace-710319/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- 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
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- CentOS7提示 libsasl2.so.2: cannot open shared object fileCentOSObject
- 影片匯聚平臺EasyCVR啟動出現報錯“cannot open shared object file”的原因排查與解決VRObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- ImportError: cannot import name ‘imresize‘解決辦法ImportError
- 解決“su: cannot open session: Permission denied”Session
- 解決 TypeError: Type aliases cannot be used with isinstance(). 辦法Error
- Android Studio 出現“Cannot resolve symbol” 解決辦法AndroidSymbol
- 解決GD32新建工程時提示:cannot open source input file “RTE_Components.h“
- Git 錯誤:fatel: loose object ... is corrupt 解決辦法GitObject
- object dict cannot be used in await expression報錯解釋ObjectAIExpress
- FileZilla:425 Can't open data connection for transfer of解決辦法
- 【ASK_ORACLE】Oracle RAC報錯“ipc send timeout”的原因以及解決辦法Oracle
- apache PHP 隱藏 index.php 報錯 No input file specified. 解決辦法ApachePHPIndex
- Python 命令跳轉微軟應用商店問題解決辦法Python微軟
- 【RAC】Oracle RAC12c+ srvctl操作命令變化(引數更嚴謹了)Oracle
- Authentication failure 以及xxx is not in the sudoers file 問題的解決辦法AI
- cnpm link 報錯解決辦法NPM
- RAC 管理(crs_stat、crsctl、srvctl)
- Laravel 執行 Gulp 命令出錯解決辦法Laravel
- git報錯400的解決辦法Git
- ORA-04031的傻瓜解決辦法(轉)
- Mybatis批量更新SQL報錯☞解決辦法MyBatisSQL
- msfconsole,OpenSSL::PKey::PKeyError報錯解決辦法Error
- 【轉】vue mounted 呼叫兩次的解決辦法Vue
- cannot instantiate QtProjectEngine objectQTProjectObject
- 解決 PbootCMS 網站轉移後無法開啟報錯提示“No input file specified”的問題boot網站