使用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" --可以正常使用。
相關文章
- error while loading shared librariesErrorWhile
- glodengate配置時報ggsci: error while loading shared librariesErrorWhile
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- ./ggsci: error while loading shared librariesErrorWhile
- sqlplus: error while loading shared librariesSQLErrorWhile
- 解決"error while loading shared libraries: libclntshErrorWhile
- error while loading shared libraries 錯誤解決辦法總結ErrorWhile
- error while loading shared libraries: libaio.so.1ErrorWhileAI
- Error while loading shared libraries: libssl.so.6:ErrorWhile
- Mysql的error while loading shared libraries解決方法MySqlErrorWhile
- 【故障處理】csscan工具無法使用,報錯“error while loading shared libraries...”CSSErrorWhile
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- innobackupex: error while loading shared libraries: libssl.so.6ErrorWhile
- ORACLE SQLPLUS 報 error while loading shared libraries[轉]OracleSQLErrorWhile
- error while loading shared libraries: libcap.so.1: cannot open sharedErrorWhile
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- 錯誤 error while loading shared libraries: libclntsh.so.9.0 的解決ErrorWhile
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libstdc++.so.5: cannot openErrorWhileC++
- csscan: error while loading shared libraries: libclntsh.so.10.1CSSErrorWhile
- sqlplus: error while loading shared libraries的解決方案SQLErrorWhile
- sqlldr執行報錯:error while loading shared libraries: libclntsh.so.10.1:SQLErrorWhile
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suchErrorWhileIBMMySqlclientObject
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- sqlplus: error while loading shared libraries: libaio.so.1:SQLErrorWhileAI
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- sqlplus: error while loading shared libraries: libsqlplus.soSQLErrorWhile
- [mysql]error while loading shared libraries: libaio.so.1: 解決方案MySqlErrorWhileAI
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- error while loading shared libraries: libodm9.so: cannot open shared object file: No such file or diErrorWhileObject
- 錯誤"error while loading shared libraries: xxx.so.x" 的原因和解決辦法ErrorWhile
- error while loading shared libraries: xxx.so.x"錯誤的原因和解決辦法ErrorWhile
- "error while loading shared libraries: xxx.so.x" 錯誤的原因和解決辦法ErrorWhile
- root.sh / vipca: error while loading shared libraries: libpth read.so.PCAErrorWhile
- oinstall組使用者連線資料庫報錯error while loading shared libraries: libskgxp10.so資料庫ErrorWhile