ITPUB论坛-专业的IT技术社区

标题: 遭遇Oracle11g第一个bug [打印本页]

作者: NinGoo    时间: 2007-8-17 13:14
标题: 遭遇Oracle11g第一个bug
作者:NinGoo | 【转载时请务必以超链接形式标明文章原始出处和作者信息及本声明】
地址:http://www.ningoo.net/2007/08/17 ... t_oracle11g_bug.htm

昨晚安装软件,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

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

--EOF--
作者: xzh2000    时间: 2007-8-17 13:31
吼吼,可以把selinux禁止掉...
作者: vongates    时间: 2007-8-17 16:59
两个都是新东西,哈哈,看来步调不一呀.
好像11.1.0.5的进候还没有到 Linux 5.0列在认证的列表中呢
作者: itpub.com.cn    时间: 2007-11-26 10:41
以上修改在系统重启前有效,重启后系统又会变回默认的enforcing模式。如果需要启动即为permissive模式,则需要在grub的启动项中增加enforcing=0,例如

没修改/etc/selinux/config,当然重启后变enforcing了
作者: winsome    时间: 2007-11-26 10:48
曾经被SELinux害了一个晚上

以前是Oracle 9i + Redhat EL 4,装不下去。
作者: youngcow    时间: 2007-11-26 14:14
selinux是一个神奇的东西。前几个月用as4u4+11.1.0.6关闭selinux是没有问题的
作者: justin033    时间: 2007-11-26 22:42
try to " # insmod /oracle/11g/lib/libnnz11.so" and login using SQLPLUS again!




欢迎光临 ITPUB论坛-专业的IT技术社区 (http://www.itpub.net/) Powered by Discuz! X3.2