【Oracle】sqlplus 遇到共享库权限不足

安装oracle 11gr2 的完成 执行sqlplus 遇到如下错误:
oracle@rac:/opt>sqlplus "/as sysdba"
sqlplus: error while loading shared libraries: /opt/app/oracle/11.2.0/product/db_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
1 检查SELinux是否开启
[root@localhost db_1]# vi /etc/sysconfig/selinux
SELINUX=disabled
SELINUXTYPE=targeted
~
若为true 在 设置为disable 
2. 使用命令chcon改变文件或者目录的SELinux属性, 语法chcon -t texrel_shlib_t 库名字
oracle@rac:/opt>chcon -t  textrel_shlib_t $ORACLE_HOME/lib/libclntsh.so.11.1
oracle@rac:/opt>
oracle@rac:/opt>sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Thu May 10 11:23:12 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> exit
执行成功!
一般是  SELinux 安全设置 导致权限方面的不足 ,修改相应的权限问题就好;
chcon是修改security context(安全上下文)中type的。
相关资料: SELinux 资料

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22664653/viewspace-723214/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22664653/viewspace-723214/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值