error while loading shared libraries: libclntsh.so.10.1cannot open shared 问题解决
来源:互联网 发布:tensorflow可视化 编辑:程序博客网 时间:2024/04/30 14:43
error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
1.运行csscan命令显示如下错误
[oracle@rac01 ~]$ csscan
csscan: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
[oracle@rac01 ~]$
2.检查which sysresv依赖关系
[oracle@rac01 ~]$ ldd `which sysresv`
linux-gate.so.1 => (0x00ecf000)
libclntsh.so.10.1 => not found
libnnz10.so => not found
libdl.so.2 => /lib/libdl.so.2 (0x0037c000)
libm.so.6 => /lib/libm.so.6 (0x00353000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00382000)
libnsl.so.1 => /lib/libnsl.so.1 (0x007c7000)
libc.so.6 => /lib/libc.so.6 (0x0020b000)
/lib/ld-linux.so.2 (0x001ed000)
3.进入$ORACLE_HOME/lib文件夹,检查libclntsh.so.10.1是否存在
[oracle@rac01 ~]$ cd $ORACLE_HOME/lib
[oracle@rac01 lib]$ ls -l|grep libclntsh.so.10.1
lrwxrwxrwx 1 oracle oinstall 53 Apr 23 2010 libclntsh.so -> /opt/ora10g/product/10.2.0/db_1/lib/libclntsh.so.10.1
-rwxr-x--- 1 oracle oinstall 18451220 Apr 23 2010 libclntsh.so.10.1
[oracle@rac01 lib]$ pwd
/opt/ora10g/product/10.2.0/db_1/lib
4.用root用户登录,修改该/etc/ld.so.conf添加$ORACLE_HOME/lib路径
[oracle@rac01 lib]$ su - root
Password:
[root@rac01 ~]#
[root@rac01 ~]# vi /etc/ld.so.conf
include ld.so.conf.d/*.conf
/opt/ora10g/product/10.2.0/db_1/lib/
~
~
~
"/etc/ld.so.conf" 2L, 65C written
5.从新ldconfig
[root@rac01 ~]# ldconfig
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmeoci.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmadbg.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmefud.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmefvr.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmarl.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmefsql.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmuc.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmuk.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmevq.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmalk.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmefut.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmefos.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmadm.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmemso.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmefw.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmasf.so.0 is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libordim10.soO is empty, not checked.
ldconfig: File /opt/ora10g/product/10.2.0/db_1/lib/libnmastk.so.0 is empty, not checked.
ldconfig: /opt/ora10g/product/10.2.0/db_1/lib/libexpat.so.0 is not a symbolic link
6.检查问题是否解决
[root@rac01 ~]# su - oracle
[oracle@rac01 ~]$
[oracle@rac01 ~]$
[oracle@rac01 ~]$ ldd `which sysresv`
linux-gate.so.1 => (0x00372000)
libclntsh.so.10.1 => /opt/ora10g/product/10.2.0/db_1/lib/libclntsh.so.10.1 (0x0058c000)
libnnz10.so => /opt/ora10g/product/10.2.0/db_1/lib/libnnz10.so (0x03fa5000)
libdl.so.2 => /lib/libdl.so.2 (0x0037c000)
libm.so.6 => /lib/libm.so.6 (0x00110000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00382000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00138000)
libc.so.6 => /lib/libc.so.6 (0x0020b000)
/lib/ld-linux.so.2 (0x001ed000)
- error while loading shared libraries: libclntsh.so.10.1cannot open shared 问题解决
- csscan: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No
- 使用sysresv时遇到错误: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object f
- linux下调用oracle OCI时出现的问题 error while loading shared libraries: libclntsh.so.10.1: cannot open shared
- error while loading shared libraries: libopencv_highgui.so.3.0: cannot open shared object file问题解决
- error while loading shared libraries: libmysqlclient.so.16: cannot open
- error while loading shared libraries cannot open shared object file
- error while loading shared libraries| cannot open shared object file
- Error While Loading Shared Libraries, Cannot Open Shared Object File
- Error While Loading Shared Libraries, Cannot Open Shared Object File
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file
- error while loading shared libraries: libperl.so: cannot open shared object file.
- error while loading shared libraries:libresolv.so.2: cannot open shared object file:Permission denied
- sphinx 运行出现 error while loading shared libraries: libmysqlclient.so.16: cannot open shared object
- ./snmpGet: error while loading shared libraries: libsnmp++.so: cannot open shared object file: No su
- [Ubuntu]: error while loading shared libraries: libtiff.so.3: cannot open shared object
- 错误./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file:
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such
- linux Tar 命令参数详解
- 淘宝技术发展
- URL,URLConnection,HttPURLConnection的使用
- Oracle新建用户、角色,授权,建表空间
- linux mkdir 命令详解
- error while loading shared libraries: libclntsh.so.10.1cannot open shared 问题解决
- C++常见的内存错误及其对策
- SVN提交报错(SVN的bug)
- MySQL 参考网址
- socket学习之电脑手机通信
- Migrating Queries from One User To Another从一个用户迁移到另一个查询
- 一个简单的计算从1到1000000000所花时间的小程序
- Jquery常用技巧和方法收集
- 子网掩码 子网划分