CentOS 安裝後,SQLPLUS登陸錯誤

[oracle@linuxhost~]$ sqlplus /nolog
sqlplus: error while loading shared libraries: /u01/oracle/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
 
解決辦法:
在圖形界面》系統》管理》安全級別和防火牆設置》SELinux 禁用(如果安裝系統時禁用不會產生這樣的錯誤)
 

解決方法:

[root@linuxhost lib]# /usr/sbin/getenforce

Enforcing

[root@linuxhost lib]# /usr/sbin/setenforce 0 

[root@linuxhost lib]# cd /etc/selinux

[root@linuxhost selinux]# ls

config  restorecond.conf  semanage.conf  targeted

[root@linuxhost selinux]# vi config 

# 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=disabled     

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

#       targeted - Only targeted network daemons are protected.

#       strict - Full SELinux protection.

SELINUXTYPE=targeted

 把SELINUX設置爲disabled 就好了,保存後退出。

SELINUX不設置爲disabled 狀態的話,FTP傳輸也會失敗。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章