Tuesday, March 8, 2011

sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

Problem
After I installed Oracle 11.2.0.1 software on an OEL 5.5 server, "sqlplus /nolog" ran into following error message:
"sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied"

Cause
According to Metalink Note: 454196.1 - ./sqlplus: error on libnnz11.so: cannot restore segment prot after reloc [ID 454196.1] , it's SELinux causing this problem. 

Solution
Disable SELinux
Switch SELinux from the default "Enforcing" mode that it is running in, to the "Permissive" mode.

Commands, as root:
======================
getenforce       (returns "Enforcing")
setenforce 0
getenforce       (returns "Permissive")


References


Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home