在 RHEL 7 上安装 Oracle Client 11g R2 后运行 sqlplus 时出错

在 RHEL 7 上安装 Oracle Client 11g R2 后运行 sqlplus 时出错

在 RHEL 7 上安装 Oracle Client 11g R2 后,运行 ./sqlplus 命令时遇到问题

这是错误:

$ ./sqlplus
./sqlplus: symbol lookup error: /home/oracle/app/oracle/product/11.2.0/client_1/lib/libclntsh.so.11.1: undefined symbol: nnfyboot

我确定了 LD_LIBRARY_PATH、ORACLE_HOME、PATH

此外,所有先决条件软件包均已安装。

看看下面的命令,

$ ldd
 /home/oracle/app/oracle/product/11.2.0/client_1/lib/libclntsh.so.11.1
            linux-vdso.so.1 =>  (0x00007fff60ff9000)
            libnnz11.so => /home/oracle/app/oracle/product/11.2.0/client_1/lib/libnnz11.so (0x00007f8f85e62000)
            libdl.so.2 => /lib64/libdl.so.2 (0x00007f8f85c57000)
            libm.so.6 => /lib64/libm.so.6 (0x00007f8f85955000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8f85739000)
            libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f8f8551f000)
            libc.so.6 => /lib64/libc.so.6 (0x00007f8f8515e000)
            libaio.so.1 => /lib64/libaio.so.1 (0x00007f8f84f5c000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f8f88856000)

和这个,

$ ldd sqlplus
        linux-vdso.so.1 =>  (0x00007fff54d4d000)
        libsqlplus.so => /home/oracle/app/oracle/product/11.2.0/client_1/lib/libsqlplus.so (0x00007f3d1e403000)
        libclntsh.so.11.1 => /home/oracle/app/oracle/product/11.2.0/client_1/lib/libclntsh.so.11.1 (0x00007f3d1bdd7000)
        libnnz11.so => /home/oracle/app/oracle/product/11.2.0/client_1/lib/libnnz11.so (0x00007f3d1ba0f000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f3d1b805000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f3d1b502000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3d1b2e6000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f3d1b0cd000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f3d1ad0b000)
        libaio.so.1 => /lib64/libaio.so.1 (0x00007f3d1ab09000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3d1e5eb000)

ldconfig 成功完成。

你能帮忙吗?

相关内容