libclntsh.so.11.1:cannot restore segment prot after reloc:Permission denied 報錯
在oracle bin目錄下執行命令報錯
[oracle@standby bin]$ ./lsnrctl status
./lsnrctl: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
oracle@standby bin]$ ./sqlplus
./sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
是selinux導致
解決方法
執行以下兩條命令,或者完全關掉selinux
[root@standby ~]# semanage fcontext -a -t textrel_shlib_t /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
[root@standby ~]# restorecon -R -v /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
restorecon reset /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1 context root:object_r:user_home_t:s0->system_u:object_r:textrel_shlib_t:s0
[oracle@standby bin]$ ./lsnrctl status
./lsnrctl: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
oracle@standby bin]$ ./sqlplus
./sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
是selinux導致
解決方法
執行以下兩條命令,或者完全關掉selinux
[root@standby ~]# semanage fcontext -a -t textrel_shlib_t /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
[root@standby ~]# restorecon -R -v /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
restorecon reset /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1 context root:object_r:user_home_t:s0->system_u:object_r:textrel_shlib_t:s0
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27771627/viewspace-1269056/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Cannot restore segment prot after reloc:Permission deniedREST
- sqlplus因selinux報錯cannot restore segment prot after reloc: Permission deniedSQLLinuxREST
- 【轉載】啟動sqlplus命令,會報的cannot restore segment prot after relocSQLREST
- ggsci error libclntsh.so.10.1: cannot restore segment prot after relocErrorREST
- /sqlplus: error on libnnz11.so: cannot restore segment prot after reloc [ID 454196.1]SQLErrorREST
- nginx部署(13:Permission denied)報錯Nginx
- 解決“su: cannot open session: Permission denied”Session
- Nginx報錯:Permission denied,沒有許可權!Nginx
- Python 執行報錯 PermissionError: [Errno 13] Permission denied: '***.***'PythonError
- Python報錯:PermissionError: [Errno 13] Permission denied解決方案PythonError
- 易優CMS後臺上傳圖片報錯mkdir(): Permission denied 報錯-eyoucms
- 切換使用者時提示:cannot change directory to /home/oracle: Permission deniedOracle
- git push出現Permission denied (publickey)錯誤Git
- Hexo deploy git permission deniedHexoGit
- guarantee restore points-Flashback after RMAN restoreREST
- Android Permission denied(不允許連線Socket) 錯誤Android
- 建立raw device tablespace報Linux Error: 13: Permission denieddevLinuxError
- Oracle RAC 第二節點打補丁報錯 oui-patch.xml (Permission denied)OracleUIXML
- Android adb除錯出現:opendir failed, Permission deniedAndroid除錯AI
- Angular macOS Err:EACCES: permission deniedAngularMac
- Permission Denied(publickey) 解決
- -bash: ./backup.sql: Permission deniedSQL
- Nginx: stat() failed (13: permission denied)NginxAI
- hive建立分割槽表報錯AccessControlException Permission denied: user=NONE, access=WRITE, inodeHiveExceptionNone
- Unable to start HTTP server after restoreHTTPServerREST
- PHP中 mkdir: Permission denied 問題PHP
- adb remount of system failed: Permission deniedREMAI
- k8s在掛載持久盤(Volume)時,若許可權不投,則可能會: 容器啟動報錯: Permission denied_nfs permission denied(許可權不夠用時),也可能不會報錯K8SNFS
- 【Android】Permission denied (missing INTERNET permission?)異常踩坑Android
- Error: Permission denied @ apply2filesErrorAPP
- PermissionError: [Errno 13] Permission denied 如何解決Error
- Ubuntu git pull 出現Permission denied ErrorUbuntuGitError
- CenOS6.3 ssh 公鑰認證報錯:Permission denied (publickey,gssapi-keyex,gssapi-with-mic)API
- 除錯 rsh, rcp, rlogin, rdist 許可被拒(Permission Denied )問題(zt)除錯
- 極速全景圖下載出錯顯示Permission denied怎麼回事
- PermissionError: [Errno 13] Permission denied解決辦法Error
- Android10 建立檔案 Permission deniedAndroid
- Permission denied Command PhaseScriptExecution failed with a nonzero exit codeAI