sqlplus因selinux報錯cannot restore segment prot after reloc: Permission denied

wisdomone1發表於2013-06-06

---啟動oracle sqlplus報錯
bash-3.2$ sqlplus
sqlplus: error while loading shared libraries: /oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1:
cannot restore segment prot after reloc: Permission denied

--經查是selinux導致

有2個方法:
  1,暫時禁用selinux
   [root@rhel5 oracle]# setenforce --help
   usage:  setenforce [ Enforcing | Permissive | 1 | 0 ]
   [root@rhel5 oracle]# setenforce 0
 
  2,永遠禁用selinux
 
   vi /etc/selinux/config
      修改記錄為 SELINUX=disabled
   vi /etc/sysconfig/selinux
      修改記錄為 SELINUX=disabled

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-763176/,如需轉載,請註明出處,否則將追究法律責任。

相關文章