[转]解决 cannot restore segment prot after reloc: Permission denied
生活随笔
收集整理的這篇文章主要介紹了
[转]解决 cannot restore segment prot after reloc: Permission denied
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在power5 Linux上安裝oracle10g后,通過命令行方式登錄sqlplus時,報錯:
error while loading shared libraries: $ORACLE_HOME/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied
最后的Permission denied顯示,初步認為是系統安全屏蔽了oracle執行某些執行動作。于是檢查系統防火墻iptables,已經關閉,于是想到了Selinux,
[root@localhost ~]# more /etc/sysconfig/selinux
# 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=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#?????? targeted - Only targeted network daemons are protected.
#?????? strict - Full SELinux protection.
SELINUXTYPE=targeted
看來是selinux的緣故,關掉selinux試試!
修改SELINUX=disabled,然后重啟系統才能生效,或者執行:setenforce 0,立即生效。
果然,關閉selinux后,sqlplus可以正常登陸了。
其實在上面出現Permission denied時,也可以執行
#chcon -t texrel_shlib_t $ORACLE_HOME/lib/*.so
問題也可以得到解決,至于chcon可以看看selinux方面的命令即可明白了!
轉自:http://www.ixdba.net/article/8c/2140.html
error while loading shared libraries: $ORACLE_HOME/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied
最后的Permission denied顯示,初步認為是系統安全屏蔽了oracle執行某些執行動作。于是檢查系統防火墻iptables,已經關閉,于是想到了Selinux,
[root@localhost ~]# more /etc/sysconfig/selinux
# 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=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#?????? targeted - Only targeted network daemons are protected.
#?????? strict - Full SELinux protection.
SELINUXTYPE=targeted
看來是selinux的緣故,關掉selinux試試!
修改SELINUX=disabled,然后重啟系統才能生效,或者執行:setenforce 0,立即生效。
果然,關閉selinux后,sqlplus可以正常登陸了。
其實在上面出現Permission denied時,也可以執行
#chcon -t texrel_shlib_t $ORACLE_HOME/lib/*.so
問題也可以得到解決,至于chcon可以看看selinux方面的命令即可明白了!
轉自:http://www.ixdba.net/article/8c/2140.html
總結
以上是生活随笔為你收集整理的[转]解决 cannot restore segment prot after reloc: Permission denied的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: opensuse 12.1 启动脚本
- 下一篇: [转]ubuntu下ATI/Intel双