sqlplus: error while loading shared libraries libclntsh.so.11.1 cannot restore segment prot after reloc: Permission denied




Issue:
[oracle@test ~]$ sqlplus '/as sysdba'


sqlplus: error while loading shared libraries: /u01/oracle/product/11.2.0/dbhome_2/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied


Solution:

SELinux is enaled in server.Two options to resolve this issue:

1:
Disable the SELinux
[root@test ~]# getenforce
Enforcing
[root@test ~]# setenforce 0
[root@test ~]# getenforce
Permissive

2:
Allow Selinux to allow below command

[root@test ~]# chcon -t textrel_shlib_t '/u01/oracle/product/11.2.0/dbhome_2/lib/libclntsh.so.11.1'
[oracle@test ~]$ sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 15 04:14:27 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Enter user-name:

No comments:

Post a Comment