使用SRVCTL時報錯:error while loading shared libraries
1.報錯如下:
[oracle@rac1 ~]$ srvctl add service -d rac -s test -r "rac1"
/u01/app/oracle/product/dbhome_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory[oracle@rac1 ~]$ which srvctl --檢視此命令,是在ORACLE_HOME下,正常應該是在CRS_HOME下。
/u01/app/oracle/product/dbhome_1/bin/srvctl
2.解決:修改環境變數,在PATH中將CRS_HOME放前面
[oracle@rac1 ~]$ vi .bash_profile
將$ORA_CRS_HOME/bin:放到$ORACLE_HOME/bin:前面----原來是在後面PATH=$ORA_CRS_HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:$HOME/bin:$ASM_HOME/bin
[oracle@rac1 ~]$ which srvctl
/u01/app/oracle/product/dbhome_1/bin/srvctl
[oracle@rac1 ~]$ source .bash_profile
/u01/app/oracle/product/crs/bin/srvctl
[oracle@rac1 ~]$ srvctl add service -d rac -s test -r "rac1" --可以正常使用。
相關文章
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- linux編譯Android原始碼的時候出錯:error while loading shared libraries: libstdc++.so.6Linux編譯Android原始碼ErrorWhileC++
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- 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
- linux puppeteer 截圖提示缺少chrome-linux/chrome error while loading shared libraries: libXdamage.so.1LinuxChromeErrorWhile
- Qt開發,報錯:Error while building/deploying project untitled (kit: ....)QTErrorWhileUIProject
- 在 fish 終端下報錯 source: Error while reading file “xxx” 等問題ErrorWhile
- cassandra啟動報錯:Exiting due to error while processing commit log during initialization.ErrorWhileMIT
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- appium start session 時報錯 Error executing adbExec. Original error 求指點APPSessionError
- MySQL建立觸發器時報錯Error Code: 1064MySql觸發器Error
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- 使用Boost庫報error C4996錯誤Error996
- 排錯./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either doErrorHTTPUIXML
- libtorch使用model.forward報std::runtime_error錯誤ForwardError
- 使用mybatis報錯:Error setting non null for parameter #4 with JdbcType TIMESTAMPMyBatisErrorNullJDBC
- 網站報錯:“Database Server Error”網站DatabaseServerError
- pip install scrapy報錯:error: UnableError
- 【Redis】slaveof 報錯 Background transfer errorRedisError
- 連線oracle資料庫時,報錯:{dataSource-1} init errorOracle資料庫Error
- ubuntu進行make時報錯error: Neither flex nor lex was found.UbuntuErrorFlex
- PVE安裝Windows 95報錯 while initializing device IOSWindowsWhiledeviOS
- 使用putty遠端登入Ubuntu時,報Network error:Connection refused錯誤及解決(記錄)UbuntuError
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- 使用 Composer 安裝 Laravel 時報錯Laravel
- 反序列 unserialize(): Error 報錯問題Error
- Ubuntu 系統 apt 報錯:relocation errorUbuntuAPTError
- weblogic報錯: OPatch failed with error code 73WebAIError
- ogg報錯error 11, Resource temporarily unavailableErrorAI