Thursday, August 18, 2016

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: /data02/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:

Sol1:

Disable the SELinux

[root@test ~]# getenforce
Enforcing
[root@test ~]# setenforce 0
[root@test ~]# getenforce
Permissive

Sol2:

Allow Selinux to allow below command

[root@test ~]# chcon -t textrel_shlib_t '/data02/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 Apr 23 07:19:45 2013

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

Enter user-name:

No comments:

Post a Comment