Linux下共享库问题导致无法启动SQLPLUS的问题解决
来源:互联网 发布:golang syscall详解 编辑:程序博客网 时间:2024/05/18 20:52
现象:
sqlplus /nolog
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
解决办法:
这个问题是由于SELINUX引起的.
1. 编辑/etc/sysconfig/selinux配置文件, 把SELINUX=enforcing 改为 SELINUX=disabled.
# 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= 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=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
2. 使用命令chcon 改变文件或者目录的SELinux属性, 语法chcon -t texrel_shlib_t 库名字
[oracle@null-00137223684e ~]$ sqlplus /nolog
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
[oracle@null-00137223684e ~]$ chcon -t texrel_shlib_t /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
[oracle@null-00137223684e ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Sep 20 14:31:21 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL>
如果运行过程中发现其它的库文件也报类似的错误, 可以使用同样的方法来解决.
http://blog.itpub.net/81/viewspace-707945
0 0
- Linux下共享库问题导致无法启动SQLPLUS的问题解决
- Linux下修改配置文件导致系统无法启动问题解决办法
- linux环境下根目录磁盘空间满导致数据库无法启动的问题的解决
- 一个共享库的问题导致sqlplus用不了了的解决办法!
- VMware克隆linux虚拟主机,导致网卡无法启动问题解决
- rlwrap解决linux下sqlplus输用上下键无法查看历史消息的问题
- Linux下sqlplus问题
- slf4j的问题导致tomcat无法启动
- Mac下MAMP Pro 启动数据库MySQL出错导致无法启动的问题
- Linux下Oracle的sqlplus中上下左右退格键无法使用
- LInux下开启LDAP,导致mysql无法正常启动。
- Windows下Oracle因主机名或IP变动,导致EM无法启动的问题。
- 分区占用100%导致sqlplus 无法登陆(今天遇到的一个oracle问题)
- 解决Myeclipse中端口占用,导致tomcat无法启动的问题。(Linux)
- grub rescue 方法,解决重装windows系统导致的linux无法启动问题
- 解决Linux下Firefox无法启动的问题
- Linux下MYSQL无法启动问题
- 解决linux内核配置成runtime后,无法启动的问题(自己添加的lcd代码的问题导致)
- Slow Changing Dimension
- 在velocity使用toolbox.xml
- 访问:69017次 积分:1952分 排名:第5719名 原创:136篇转载:34篇译文:3篇评论:8条
- Spring自动装配小结
- linux下热插拔事件的产生是怎样通知到用户空间,kobject_uevent_env之uevent
- Linux下共享库问题导致无法启动SQLPLUS的问题解决
- 《我们在时光的列车上,没有终点》
- Java import导包的时候出现Access Restriction问题的解决方法
- 蓝桥杯-带分数
- 表达式必须是常量表达式
- Ubuntu下常用命令集锦
- java相关环境变量配置
- LeetCode Valid Parentheses
- 中文传值解决乱码问题