博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【Oracle】sqlplus 遇到共享库权限不足
阅读量:6875 次
发布时间:2019-06-26

本文共 974 字,大约阅读时间需要 3 分钟。

安装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的。
相关资料:

转载地址:http://jimfl.baihongyu.com/

你可能感兴趣的文章
C#编程(三十二)----------数组基础
查看>>
洛谷P1281 书的复制
查看>>
js常用的正则表达式
查看>>
What is D-Bus?
查看>>
ADB的使用
查看>>
hdu1294 Rooted Trees Problem
查看>>
使用C++模板实现栈的求最小值功能
查看>>
Python网络编程总结
查看>>
在DELL服务器上升级ESXI 5.5
查看>>
Windows 10 之高级启动模式
查看>>
自动化运维工具安装部署 chef (十)- first cookbook learn httpd
查看>>
线段树的学习之:如何用线段树计算矩形面积
查看>>
UML中组件图
查看>>
linux杂记--nohup cron crontab
查看>>
第一集Linux系统工程师集训之网络部分视频课程
查看>>
【cocos2d-x从c++到js】16:使用cocos2d-console工具转换脚本为字节码
查看>>
Docker容器使用问题:Failed to get D-Bus connection: Operation not permitted
查看>>
企业内网信息安全实践-记ChinaUnix技术交流
查看>>
提高ASP.NET性能与可伸缩性的几个个常用方法剖析
查看>>
Linux运维MySQL必会面试题100道
查看>>