glodengate配置时报ggsci: error while loading shared libraries

报错如下:
[oracle@oel-01 ogg]$ ./ggsci

./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory


[oracle@oel-01 ogg]$ ldd ggsci
        linux-gate.so.1 =>  (0xb7845000)
        libdl.so.2 => /lib/libdl.so.2 (0x49cfa000)
        libgglog.so => /u01/app/oracle/product/ogg/./libgglog.so (0xb7712000)
        libggrepo.so => /u01/app/oracle/product/ogg/./libggrepo.so (0xb76c6000)
        libdb-5.2.so => /u01/app/oracle/product/ogg/./libdb-5.2.so (0xb7539000)
        libicui18n.so.38 => /u01/app/oracle/product/ogg/./libicui18n.so.38 (0xb73d7000)
        libicuuc.so.38 => /u01/app/oracle/product/ogg/./libicuuc.so.38 (0xb72b6000)
        libicudata.so.38 => /u01/app/oracle/product/ogg/./libicudata.so.38 (0xb63d9000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x49d16000)
        libxerces-c.so.28 => /u01/app/oracle/product/ogg/./libxerces-c.so.28 (0xb602c000)
        libantlr3c.so => /u01/app/oracle/product/ogg/./libantlr3c.so (0xb601b000)
        libnnz11.so => not found
        libclntsh.so.11.1 => /lib/libclntsh.so.11.1 (0xb4316000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4ad07000)
        libm.so.6 => /lib/libm.so.6 (0x49ccf000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4ab46000)
        libc.so.6 => /lib/libc.so.6 (0x49b73000)
        /lib/ld-linux.so.2 (0x49b54000)
        libnnz11.so => /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so (0xb40c6000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4a086000)
        libaio.so.1 => /usr/lib/libaio.so.1 (0xb40c3000)

解决:

[oracle@oel-01 ogg]$ su -
Password:
[root@oel-01 ~]# find / -name libnnz11.so
/u01/app/oracle/product/11.2.0/dbhome_1/.patch_storage/8670579_Feb_25_2010_09_55_12/original_patch/files/lib/libnnz11.so
/u01/app/oracle/product/11.2.0/dbhome_1/.patch_storage/8670579_Feb_25_2010_09_55_12/files/lib/libnnz11.so
/u01/app/oracle/product/11.2.0/dbhome_1/.patch_storage/8670579_Feb_25_2010_09_55_12/backup/lib/libnnz11.so
/u01/app/oracle/product/11.2.0/dbhome_1/inventory/backup/2013-06-07_10-55-44AM/Scripts/ext/lib/libnnz11.so
/u01/app/oracle/product/11.2.0/dbhome_1/inventory/Scripts/ext/lib/libnnz11.so
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so

[root@oel-01 ~]# ln -s  /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so  /lib/libnnz11.so
[root@oel-01 ~]# exit
logout
[oracle@oel-01 ogg]$ ldd ggsci
        linux-gate.so.1 =>  (0xb7844000)
        libdl.so.2 => /lib/libdl.so.2 (0x49cfa000)
        libgglog.so => /u01/app/oracle/product/ogg/./libgglog.so (0xb7711000)
        libggrepo.so => /u01/app/oracle/product/ogg/./libggrepo.so (0xb76c5000)
        libdb-5.2.so => /u01/app/oracle/product/ogg/./libdb-5.2.so (0xb7538000)
        libicui18n.so.38 => /u01/app/oracle/product/ogg/./libicui18n.so.38 (0xb73d6000)
        libicuuc.so.38 => /u01/app/oracle/product/ogg/./libicuuc.so.38 (0xb72b5000)
        libicudata.so.38 => /u01/app/oracle/product/ogg/./libicudata.so.38 (0xb63d8000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x49d16000)
        libxerces-c.so.28 => /u01/app/oracle/product/ogg/./libxerces-c.so.28 (0xb602b000)
        libantlr3c.so => /u01/app/oracle/product/ogg/./libantlr3c.so (0xb601a000)
         libnnz11.so => /lib/libnnz11.so (0xb5dcb000)
        libclntsh.so.11.1 => /lib/libclntsh.so.11.1 (0xb40c6000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4ad07000)
        libm.so.6 => /lib/libm.so.6 (0x49ccf000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4ab46000)
        libc.so.6 => /lib/libc.so.6 (0x49b73000)
        /lib/ld-linux.so.2 (0x49b54000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4a086000)
        libaio.so.1 => /usr/lib/libaio.so.1 (0xb40c3000)
[oracle@oel-01 ogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x86, 32bit (optimized), Oracle 11g on Apr 23 2012 08:09:25

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.


GGSCI (oel-01) 1>

你可能感兴趣的:(glodengate配置时报ggsci: error while loading shared libraries)