I also get the same error when run sqlplus
[oracle@cchbi ~]$ lsnrctl lsnrctl: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
I searched the forum and find thread with a similar error
[oracle@cchbi lib]$ ll /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1 -rwxr-xr-x 1 oracle oinstall 47M Apr 9 01:54 /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
It was solved by setting SELINUX=permissive in /etc/selinux/config file.
lsnrctl error(error while loading shared libraries) The error there is lsnrctl: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db _1/lib/libclntsh.so11.1: cannot restore segment prot after reloc: Permission denied.
I do not expect to see the 'context=user_u:system_r:unconfined_t' at the end. Does it cause the problem? How to get rid of them? They are not in the /etc/passwd file
[root@cchbi dbhome_1]# cat /etc/passwd|grep oracle oracle:x:500:501:oracle user:/home/oracle:/bin/bash [root@cchbi dbhome_1]# id oracle uid=500(oracle) gid=501(oinstall) groups=501(oinstall),50(ftp),502(dba) context=user_u:system_r:unconfined_t
Kishore KVR wrote:You can use the command getenforce to see the current mode of SELinux. To disable SELinux temporarily you can use the command setenforce Permissive. In permissive mode the denials will still occur and will be logged but the operations will not be blocked. Permissive mode is the recommend mode by Oracle Support.
I have also got the same error.
What is this "SELinux permissive"?
How to check for it and disable it?