Monday, April 30, 2012

error while loading shared libraries: /opt/cubrid/lib/libclntsh.so.llxxxx: cannot restore segment prot after reloc: Permission denied

Yesterday I installed Oralce in my VMWare workstation, after installation I encountered the below error while running sqlplus command to connect to SQL

error while loading shared libraries: /opt/cubrid/lib/libclntsh.so.llxxxx: cannot restore segment prot after reloc: Permission denied


I am able to fix the below issue by using the below command.

Why do we get the error?

If the linux distribution has SEX Linux enabled, (Security-enhanced Linux) then we may get the error.

To disable the feature temporarily

/usr/sbin/setenforce 0  (Execute from root user) -- Zero to disable, One to enable
/usr/sbin/setenforce 1 -- Enables the feature

After disable the feature temporarily i am able to login into sqlplus.

To disable the feature permanently.

vi /etc/selinux/config

Include comment infront of SELINUX=enforcing line and include the below line
SELINUX=disabled

Reboot the server to get this feature on.

1 comment:

  1. This error doesn't seem to be related to Oracle but to CUBRID Database.

    ReplyDelete