报错"sqlplus: error while loading shared libraries"

来源:互联网 发布:navicat和mysql 编辑:程序博客网 时间:2024/06/05 14:00

报错"sqlplus: error while loading shared libraries"

环境平台:  linux  as  5.5 +  oracle  11g  R2
故障描述:
一个11g的bug,在安装完数据库后,能正常创建库以及监听。但在启动sqlplus命令,会发现下面的错误:
[oracle@SANYFCBS ~]$ sqlplus "/as sysdba";sqlplus: error while loading shared libraries: /opt/ora11/product/11.1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied



解决方法:

检查:

[root@SANYFCBS selinux]#getenforceEnforcing1. [root@SANYFCBS selinux]#  /usr/sbin/setenforce 02. [root@SANYFCBS selinux]# cd /etc/selinux   [root@SANYFCBS 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~[/td][/tr][/table]