sqlplus: error while loading shared libraries的解決方案
sqlplus: error while loading shared librari的解決方案
環境:VMWare Workstation + Redhat + Oracle
問題產生:
建好oracle庫後,執行sqlplus命令:
[oracle@localhost database]$ sqlplus /nolog
sqlplus: error while loading shared libraries: /oracle/app/product/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
問題原因:安裝LINUX時開啟了SELinux
解決方案:關閉SELinux
第一種方法
(1)檢視SELinux的狀態,若為Enforcing表示SELinux為開啟狀態
[root@mydb]# getenforce
Enforcing
(2)執行setenforce 0將SELinux設為permissive模式(即臨時關閉SElinux)
[root@mydb]# setenforce 0
(3)驗證上步操作的結果
[root@mydb]# getenforce
Permissive
這種方法的缺點是當系統重啟的時候,SELinux又恢復為Enforcing狀態,執行sqlplus仍然會報錯。
第二種方法
用root賬戶將/etc/selinux/config中的SELinux=enforcing改為SELinux=disabled,改完之後如下所示:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
重啟系統讓設定生效:
# reboot
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29485627/viewspace-1265239/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sqlplus: error while loading shared librariesSQLErrorWhile
- 解決"error while loading shared libraries: libclntshErrorWhile
- Mysql的error while loading shared libraries解決方法MySqlErrorWhile
- error while loading shared librariesErrorWhile
- ORACLE SQLPLUS 報 error while loading shared libraries[轉]OracleSQLErrorWhile
- [mysql]error while loading shared libraries: libaio.so.1: 解決方案MySqlErrorWhileAI
- ./ggsci: error while loading shared librariesErrorWhile
- sqlplus: error while loading shared libraries: libaio.so.1:SQLErrorWhileAI
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- error while loading shared libraries 錯誤解決辦法總結ErrorWhile
- sqlplus: error while loading shared libraries: libsqlplus.soSQLErrorWhile
- 錯誤 error while loading shared libraries: libclntsh.so.9.0 的解決ErrorWhile
- 使用SRVCTL時報錯:error while loading shared librariesErrorWhile
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- error while loading shared libraries: libaio.so.1ErrorWhileAI
- Error while loading shared libraries: libssl.so.6:ErrorWhile
- 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
- glodengate配置時報ggsci: error while loading shared librariesErrorWhile
- error while loading shared libraries: libcap.so.1: cannot open sharedErrorWhile
- EBS應用克隆sqlplus : error While Loading Shared Libraries: libclntsh.so.10.1SQLErrorWhile
- 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
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suchErrorWhileIBMMySqlclientObject
- 錯誤"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
- 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
- rac安裝過程中 error while loading shared libraries libpthread.so.0 問題的解決ErrorWhilethread
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- root.sh / vipca: error while loading shared libraries: libpth read.so.PCAErrorWhile
- sqlldr執行報錯:error while loading shared libraries: libclntsh.so.10.1:SQLErrorWhile
- 【故障處理】csscan工具無法使用,報錯“error while loading shared libraries...”CSSErrorWhile