Chinaunix首页 | 论坛 | 博客
  • 博客访问: 535291
  • 博文数量: 92
  • 博客积分: 3880
  • 博客等级: 中校
  • 技术积分: 997
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-03 10:00
文章分类

全部博文(92)

文章存档

2011年(1)

2010年(61)

2009年(30)

我的朋友

分类: Oracle

2010-01-10 11:51:39

sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

Immediately after a successful RDBMS installation (perhaps even including a sample DB instance creation), sqlplus will not start:

[oracle@test ~]$ sqlplus ‘/as sysdba’
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

The reason is that SELinux is running in “enforcing” mode.

You can check it on file /etc/pam.d/login

Oracle development has recommended the following workaround while they correct the problem:

Switch SELinux from the default “Enforcing” mode that it is running in, to the “Permissive” mode.

Commands, as root:
======================
getenforce       (returns “Enforcing”)
setenforce 0
getenforce
       (returns “Permissive”)

This allows SELinux to continue running, and logging denial messages, but SELinux will not actually deny any operations. Once Development has resolved this issue, you can (and should) return SELinux to the default “Enforcing” mode as follows:

Commands, as root:
======================
setenforce 1
getenforce       (returns “Enforcing”)

阅读(3833) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~