selinux禁用了sqlplus等命令

dotaddjj發表於2012-09-07

在虛擬機器上成功安裝了oracle 11g,感覺比10g的安裝相比沒多大變化,11g會提示安裝所需的package,而在檢測階段發現還是有一部分package缺少,但是ignore後還是可以順利安裝的。不過安裝軟體和資料庫後,卻無法執行sqlplus等命令。

[root@orcl11g ~]# su - oracle

[oracle@orcl11g ~]$ sqlplus /nolog

sqlplus: error while loading shared libraries: /opt/oracle11g/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

許可權不足,而/opt目錄下已經級聯chownoracle使用者了,從網路上得知可能是selinux導致。

[root@orcl11g sysconfig]# vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing.

# disabled - SELinux is fully disabled.

SELINUX=enforcing

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted - Only targeted network daemons are protected.

# strict - Full SELinux protection.

SELINUXTYPE=targeted

修改SELINUX=enforcing為註釋,然後增加SELINUX=disabled,重啟os即可。

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25362835/viewspace-1059364/,如需轉載,請註明出處,否則將追究法律責任。

相關文章