sqlplus: error while loading shared libraries:/oracle/11g/lib/libnnz11.so:
cannot restore segment prot after reloc: Permission denied
Google了一下,oracle论坛里有人提到metalink 454196.1,晕,遭遇bug了,还是个未正式发布的bug:Bug 6140224, “SQLPLUS FAILS TO LOAD LIBNNZ11.SO WITH SELINUX ENABLED ON EL5/RHEL5″ 。这个问题只影响到RadHat Enterprise Linux 5,说是其SELinux的模式默认为“Enforcing”,改成“Permissive”模式能暂时解决该问题。
title Red Hat Enterprise Linux ES (2.6.18-8.EL)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet enforcing=0
initrd /initrd-2.6.18-8.EL.img
另外,也可以通过setup的firewall configuration来设置SELinux的模式。
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production