[ZT]SELinux has to be disabled on RHEL/OEL 5

SELinux has to be disabled on RHEL/OEL 5

Due to an internal bugs of Oracle database (Bug 6140224, Bug 6079461), SELinux has to be disabled on RHEL/OEL 5 to work with Oracle database 10.2

一、Symptoms
Immediately after a successful RDBMS installation sqlplus will not start:
./sqlplus / as sysdba
./sqlplus: error while loading shared libraries: $ORACLE_HOME/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

二、change
SELinux is running in "enforcing" mode. So disable SELinux mode.

三、Cause
You are encountering unpublished Bug 6140224, "SQLPLUS FAILS TO LOAD LIBNNZ11.SO WITH SELINUX ENABLED ON EL5/RHEL5".  
Oracle Developement is actively working on this compiler version compatibility issue
(ICC compilers that are used for several libraries, such as LIBNNZ10.SO and LIBNNZ11.SO) in the RHEL 5 and OEL 5 environments.

四、To check whether SELinux is Enabled or Disabled in a system
    Security-enhanced Linux (SELinux) is a reference implementation of the Flask security architecture for flexible mandatory access control.
    It was created to demonstrate the value of flexible mandatory access controls and how such controls could be added to an operating system.
    The Flask architecture has been subsequently mainstreamed into Linux, and ported to several other systems, including the Solaris operating system, the FreeBSD operating system, and the Darwin kernel, spawning a wide range of related work.
    The Flask architecture provides general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement, Role-based Access Control, and Multi-level Security.

     SELinux may be in three different modes: Enforcing , Disabled or Permissive
     use this command to check current status:
     # /usr/sbin/getenforce
     # /usr/sbin/sestatus
    
五、How to Disable or set SELinux to Permissive mode
1. Edit /etc/selinux/config

   a. Change the SELINUX value to "SELINUX=disabled".
   b. Reboot the server.

2. To check the status of SELinux:
   # /usr/sbin/sestatus
    
    
参考文献:
1. ./sqlplus: error on libnnz11.so: cannot restore segment prot after reloc [ID 454196.1]
2. How to Check whether SELinux is Enabled or Disabled [ID 432988.1]    
3. How to Disable or set SELinux to Permissive mode [ID 457458.1]

 

http://space.itpub.net/trackback.php?code=YluPgQJ%2B0hS5w3aVkbhUlC4DA8kEU1QA8UILnGeHzg

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10640532/viewspace-687818/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10640532/viewspace-687818/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值