sqlplus libclntsh.so.11.1 Permission denied 解决方法

简介: 或者关闭selinuxsetenforce 0[root@bt bin]# ./sqlplus .

或者关闭selinux

setenforce 0

[root@bt bin]# ./sqlplus

./sqlplus: error while loading shared libraries: /home/mnum/app/mnum/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

先解决libclntsh.so的问题:

[root@bt bin]# semanage fcontext -a -t textrel_shlib_t /home/mnum/app/mnum/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1

csvn homedir /opt/CollabNet_Subversion or its parent directory conflicts with a defined context in /etc/selinux/targeted/contexts/files/file_contexts, /usr/sbin/genhomedircon will not create a new context. This usually indicates an incorrectly defined system account. If it is a system account please make sure its login shell is /sbin/nologin.

[root@bt bin]# restorecon -R -v /home/mnum/app/mnum/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1

restorecon reset /home/mnum/app/mnum/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1 context user_u:object_r:user_home_t:s0->system_u:object_r:textrel_shlib_t:s0

[root@bt bin]# ./sqlplus

Error 6 initializing SQL*Plus

SP2-0667: Message file sp1.msb not found

SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

解决上边的问题,添加环境变量:

[root@bt bin]# vi /etc/profile

ORACLE_HOME=/home/mnum/app/mnum/product/11.2.0/dbhome_1

ORACLE_SID=ORCL

PATH=:$ORACLE_HOME/bin

[root@bt bin]# source /etc/profile        (使变量生效)

[root@bt ~]# sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 16 13:34:08 2010

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Enter user-name: SYSTEM
Enter password:
ERROR:
ORA-12546: TNS:permission denied

要指定用户名/密码@SID:

[root@bt ~]# sqlplus SYSTEM/Oracle11@ORCL

SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 16 13:35:29 2010

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>

OK!!

【补充】

sqlplus连接远程数据库

[root@bt ~]# sqlplus SYSTEM/Oracle11@ip:port/ORCL

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/chxd99/archive/2010/07/16/5739543.aspx

目录
相关文章
|
5月前
|
安全 Unix 网络安全
Permission Denied原因及解决方法
Permission Denied原因及解决方法
1736 0
|
应用服务中间件 nginx
【报错集锦】mkdir(): Permission denied
【报错集锦】mkdir(): Permission denied
1150 0
【报错集锦】mkdir(): Permission denied
|
Linux
linux 下 root 权限执行 npm install 报错:Error:EACCES:permission denied ‘xxx‘?
linux 下 root 权限执行 npm install 报错:Error:EACCES:permission denied ‘xxx‘?
319 0
linux 下 root 权限执行 npm install 报错:Error:EACCES:permission denied ‘xxx‘?
|
Linux 算法框架/工具 Python
conda安装报错:PermissionError [Errno 13] Permission denied
conda安装报错:PermissionError [Errno 13] Permission denied
1169 2
conda安装报错:PermissionError [Errno 13] Permission denied
|
Ubuntu Linux
Ubuntu cannot open directory ‘.‘: Permission denied错误
Ubuntu cannot open directory ‘.‘: Permission denied错误
997 0
Geany 权限问题:"Error opening file ... : permission denied.",原因及解决办法。
Geany 权限问题:"Error opening file ... : permission denied.",原因及解决办法。
518 0
Geany 权限问题:"Error opening file ... : permission denied.",原因及解决办法。
|
Shell Android开发
Android adb shell里面ls提示opendir failed, Permission denied
错误信息: 127|shell@android:/ $ cd /data cd /data shell@android:/data $ ls ls opendir failed, Permission denied 解决方法: 解决方法.
2582 0
|
索引
aws lambda 安装 SAM Local 遇到错误:EACCES: permission denied, mkdir
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/79729884 ...
1106 0
|
网络协议 应用服务中间件 网络安全
非root用户开启tomcat报错Permission denied
版权声明:本文为博主原创文章,转载请注明出处。 https://blog.
2895 0