Contact Premier Online Trainings Today

Oracle DBA - sqlplus: error while loading shared libraries

Date Added: 05 Feb.2017 Date Updated: 05 Feb.2017 Oracle DBA Full Blog

 

[oracle@linux ~]$ sqlplus
sqlplus: error while loading shared libraries: 
/u02/app/DEV/product/11.2.0.4/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
[oracle@linux ~]$
 
One of the way to solve this error is to disable SELinux. 
 
[root@linux ~]# cat /etc/selinux/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=targeted
[root@linux ~]#
 
Change enforcing — disabled
 
[root@linux ~]# cat /etc/selinux/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=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted
[root@linux ~]#
 
reboot the linux machine
 
[oracle@linux ~]$ sqlplus
 
SQL*Plus: Release 11.2.0.4.0 Production on Sun Feb 5 21:34:37 2017
 
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
 
Enter user-name: