遭遇Oracle11g第一个bug
上一篇:在Redhat Entrerprise Linux 5上安装Oracle11g截图欣赏 下一篇:Oracle11g SQLPLUS支持直接显示Blob数据

遭遇Oracle11g第一个bug

昨晚安装软件,dbca建库,一切顺利。弄完后就睡觉了,谁知道今天一开机,输入sqlplus,晕,报错了,sqlplus无法打开:

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”模式能暂时解决该问题。

以root身份,通过以下命令查询SELinux的模式:getenforce 默认应当返回Enforcing
通过以下命令更改模式:setenforce 0
然后再次查询getenforce,应该返回permissive了

以上修改在系统重启前有效,重启后系统又会变回默认的enforcing模式。如果需要启动即为permissive模式,则需要在grub的启动项中增加enforcing=0,例如

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

另外,也可以通过setupfirewall 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

本文网址:http://www.ningoo.net/html/2007/encounter_first_oracle11g_bug.html

订阅到Google | 收藏到Del.icio.us | 推荐到鲜果

相关文章 随机文章

本文Tags: , , , ,

没有评论


(Required)
(Required, will not be published)