`

error while loading shared libraries: libclntsh.so.10.1: cannot open shared 问题解决

阅读更多

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)

0
1
分享到:
评论

相关推荐

    libclntsh.so.11.1

    你是否还在为报错sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory而犯愁,不用犯愁了,赶紧下载吧!

    MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f-附件资源

    MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f-附件资源

    libnvinfer.so.7

    deepstream-app: error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory

    libonig.so.2.0.0

    libonig.so.2 的依赖文件 bin/php: error while loading shared libraries: libonig.so.2: cannot open shared object file: No such libonig.so.2.0.0 放到/usr/lib64 下  ln -s libonig.so.2.0.0 libonig.so....

    mysql linux安装出错 libaio-dev

    mysql linux下安装时,存在以下错误: Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

    libssl.so.10缺失库文件的解决办法.doc

    在Linux系统中,有时在运行某些程序时可能会遇到“error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory”这样的错误提示,这意味着系统缺少名为libssl...

    文件libssl.so.1.0.0、文件libcrypto.so.1.0.0

    bedGraphToBigWig: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 就将使用root用户,将这两个文件放到/usr/lib64/ 或则使用: ln -s /usr/...

    解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:

    在使用MongoDB数据库服务时,有时可能会遇到启动过程中的错误,如"error while loading shared libraries: libstdc++.so.6: cannot open shared object file"。这个错误表明系统缺少一个名为`libstdc++.so.6`的关键...

    error while loading shared libraries xx.so处理方法

    tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 原因一般有两个, 一个是操作系统里确实没有包含该共享库(lib*.so.*文件)或者共享库...

    mongodb-linux-x86-64-ubuntu2004-4.4.23.tgz

    mongodb-linux-x86_64-ubuntu2004-4.4.23.tgz适用于ubuntu24 64位系统,启动mongodb的时候若提示./mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file,可将系统中的...

    errorloadingos解决方法[文].pdf

    "Error Loading OS" 是一种常见的计算机启动错误,通常在尝试加载操作系统时出现。该问题可能由多种原因引起,包括但不限于BIOS设置问题、硬盘错误、主引导记录损坏或未激活的主分区。针对这个错误,我们可以尝试...

    linux 下libXp.so.6不能shared

    libXp.so.6: cannot open shared object file: No such file or directory [oracle@dbadb1 ~]$ ls -ld /usr/lib/libXp.so.6 ls: /usr/lib/libXp.so.6: No such file or directory [root@dbadb1 zhuxu]# rpm -ivh...

    libzstd1_1.4.4+dfsg-1_amd64.deb

    error while loading shared libraries: libstdc++.so.6

    libfreetype.so.6.12.1

    error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory 缺少的文件libfreetype.so.6

    安装ImageMagick出现error while loading shared libraries的解决方法

    ./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory 那就表示系统不知道xxx.so 放在哪个目录下。 这个时候就要在/etc/ld.so.conf中加入xxx.so...

    mysql-libs-5.1.73-3.el6_5.x86_64.rpm

    bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directoryPlease specify the final destination directory for installed Postfix ...

Global site tag (gtag.js) - Google Analytics