libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied


 

Oracle database 11gをインストール後、リスナーを起動しようとすると標題のエラーが発生する。tnspingも同じ。

-bash-3.2$ tnsping orahoge
tnsping: error while loading shared libraries: /u01/hoge/orahoge/db/tech_st/11.2.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

なんか見たことあるなーと思ったら、以前Apacheが起動しない事象に遭遇した時と類似の原因だった。犯人はSELinux、テメーだ。

SELinuxを無効化する。

setenforce 0
 
/etc/selinux/configにて、SELINUXTYPEをdisabledにする。


[root@hogedb01 selinux]# vi config
# 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=disabled
~

This entry was posted in Oracle. Bookmark the permalink. Both comments and trackbacks are currently closed.

関連記事