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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- ./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
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- linux編譯Android原始碼的時候出錯:error while loading shared libraries: libstdc++.so.6Linux編譯Android原始碼ErrorWhileC++
- linux puppeteer 截圖提示缺少chrome-linux/chrome error while loading shared libraries: libXdamage.so.1LinuxChromeErrorWhile
- Dynamics CRM CRM Reporting Error: Error occurred while fetching the data extension的解決方法ErrorWhile
- RuntimeError: Error(s) in loading state_dict for SSD: Missing key(s) in解決辦法Error
- Error: error:0308010C:digital envelope routines::unsupported 解決方案ErrorGit
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- SSL錯誤ssl connect error 35的解決方案Error
- windows redis sentinel listen: Unknown error解決方案WindowsRedisError
- 解決方案 | MiKTex SSL connect error code 35Error
- HTTP 錯誤 500.21 - Internal Server Error 解決方案HTTPServerError
- error LNK2019:unresolved external symbol *** referenced in function ***的解決方案ErrorSymbolFunction
- Android unspecified' depends on one or more Android Libraries but is a jar 的解決方法AndroidJAR
- NSIS 官方對安裝包出現 NSIS Error 的解釋與解決方案Error
- pyenv docter檢測出configure: error: OpenSSL is not installed.解決方案Error
- yarn add cross-env 出現 protocol error, symlink 解決方案YarnROSProtocolError
- Composer 記憶體不足解決方案 PHP Fatal error: Out of memory記憶體PHPError
- 帝國CMS提示parse error syntax error的解決方法Error
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- 三種Loading製作方案
- 解決 "Script Error" 的另類思路Error
- 視覺SLAM十四講第九講 執行程式中碰到的shared libraries相關的坑。視覺SLAM行程
- Spring注入bean報錯 Error creating bean with name的網上找不到的解決方案SpringBeanError
- Mac提示app損壞、Error,Mac電腦最常見錯誤的解決方案MacAPPError
- python -- 解決字典【KEY ERROR】PythonError
- 【已解決】Error filter ListenerStartErrorFilter