CentOS 安装后,SQLPLUS登陆错误

来源:互联网 发布:恒大网络监控员 编辑:程序博客网 时间:2024/06/02 15:42
[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传输也会失败。

原创粉丝点击