sqlplus: error while loading shared libraries: cannot restore segment prot after reloc: Permission denied
Applies to:
I am using Oracle Enterprise Linux 5.5 and install Oracle Database 11gR1. After successfull installation of OS and Database when I try to login database it give me the following error:
sqlplus: error while loading shared libraries: /d01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment port after reloc: Permission denied
root> getenforce
Enforcing
This allows SELinux to continue running, and logging denial messages, but SELinux will not actually deny any operations. Once Development has resolved this issue, you can (and should) return SELinux to the default “Enforcing” mode
Now successfully connect to SQL:
👉 Check our complete guide: Oracle Error Codes Guide
Author Box
About the Author
Rana Abdul Wahid is an experienced Oracle Database Administrator with expertise in Oracle Database Administration, Oracle Data Guard, RMAN Backup & Recovery, Oracle RAC, Oracle E-Business Suite, Performance Tuning, and High Availability Solutions.
Through this blog, he shares practical Oracle DBA solutions, troubleshooting guides, interview preparation resources, and production-tested best practices for database professionals worldwide.
Thanks for sharing useful information. I've a question, does Oracle normally recommends to disable SELinux, I read it somewhere and did so on my server.
ReplyDeleteHello Ahmed,
DeleteKindly view Metalink Doc ID 454196.1, which provide workaround to fix it immediately or apply a patch.
Thanks
Thanks for sharing.
ReplyDeleteThere are four shared libraries in the distribution , have to compile using Intel ICC compiler ,and those libraries perform relocation
ReplyDeleteso Oracle recommended SELINUX should be disable .
you can find these libraries by setting SELINUX to "permissive" which will log errors but allow actions SELINUX would otherwise deny.Now use audit2allow command or leave
leave SELINUX in "enforcing" mode use SELINUX troubleshooter to determine each error and troubleshooting report to fix.
www.tcpak.com
Thanks Shafiq
Delete