sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
or
sqlplus: 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
problem :
SELinux is enable
Solution:
two ways to overcome this
First : Disable the SELinux
Second : (i prefer this)
Configure SELinux to allow /u0/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1 using below command
chcon -t textrel_shlib_t '/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1'
Note: change path as per your present directory structure
or
sqlplus: 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
problem :
SELinux is enable
Solution:
two ways to overcome this
First : Disable the SELinux
Second : (i prefer this)
Configure SELinux to allow /u0/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1 using below command
chcon -t textrel_shlib_t '/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1'
Note: change path as per your present directory structure
Many thanks, i got this error while trying to start listener
ReplyDelete[oracle@dev ~]$ lsnrctl start
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
To solve it, i did the following
from my terminal, i typed
getenforce
it displayed Enforcing
It was solved by setting SELINUX=permissive in /etc/selinux/config file.
then i typed chcon -t textrel_shlib_t '/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1'
an that solved it
Many Many Thanks.......i got the error
ReplyDeleteThank you gurjeet singh sir, I faced this error.
ReplyDeleteNow resolved with your command.
Hi sir,
ReplyDeleteAs per your solution i did it same way..but i have getting following error...
[oracle@localhost ~]$ chcon -t textrel_shlib_t '/oracle/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1'
chcon: can't apply partial context to unlabeled file `/oracle/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1'
Please help in this case how to start this isse and hw cud i start my database?
The main problem is that ...
ReplyDelete[oracle@localhost ~]$ ./sqlplus
-bash: ./sqlplus: No such file or directory
Hi Aniket Khismatrao .. .... try to execute command from "root" user and then comment your output
ReplyDeleteThanks' a lot for
ReplyDeletesqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
or
sqlplus: 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 denie
For giving solution
it's solution works successfully.
DeleteType in linux terminal window by login as ROOT User.
chcon -t textrel_shlib_t '/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1'
It works :)
ReplyDeleteThank you
ReplyDeleteThanks a Ton......
ReplyDelete