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

Error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory

[oracle@ggsource.doyensys.com]$ ./ggsci
./ggsci: error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory

Go to the GoldenGate installation directory “/u01/gghome” and execute ldd ggsci command.
This command will help us to list out the missing shared library files.

[oracle@ggsource.doyensys.com]$ ldd ggsci
        linux-vdso.so.1 =>  (0x00007fffac7cb000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f3fedbd9000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f3fed9d4000)
        libgglog.so => /u01/gghome./libgglog.so (0x00007f3fed5b0000)
        libggrepo.so => /u01/gghome./libggrepo.so (0x00007f3fed33e000)
        libdb-6.1.so => /u01/gghome./libdb-6.1.so (0x00007f3fecf59000)
        libggperf.so => /u01/gghome./libggperf.so (0x00007f3fecd29000)
        libggparam.so => /u01/gghome./libggparam.so (0x00007f3febc1f000)
        libicui18n.so.48 => /u01/gghome./libicui18n.so.48 (0x00007f3feb82f000)
        libicuuc.so.48 => /u01/gghome./libicuuc.so.48 (0x00007f3feb4ae000)
        libicudata.so.48 => /u01/gghome./libicudata.so.48 (0x00007f3fe9ce9000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3fe9acc000)
        libxerces-c.so.28 => /u01/gghome./libxerces-c.so.28 (0x00007f3fe9506000)
        libantlr3c.so => /u01/gghome./libantlr3c.so (0x00007f3fe92ed000)
        libnnz12.so => not found
        libclntsh.so.12.1 => not found
        libons.so => not found
        libclntshcore.so.12.1 => not found
        libggnnzitp.so => /u01/gghome./libggnnzitp.so (0x00007f3fe880d000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f3fe850b000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f3fe8148000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3feddea000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f3fe7e3f000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f3fe7c28000)


Now check the missing library files and create the soft link for those library’s.

[oracle@ggsource.doyensys.com]$ cd $ORACLE_HOME/lib/
[oracle@ggsource.doyensys.com lib]$ ls -tlr libnnz12.so
-rwxr-xr-x 1 oracle oinstall 6318657 Aug  1 02:08 libnnz12.so
[oracle@Node 1 lib]$ cd –

[oracle@ggsource.doyensys.com]$ ln -s $ORACLE_HOME/lib/libnnz12.so libnnz12.so
[oracle@ggsource.doyensys.com]$ pwd
/u01/gghome

[oracle@ggsource.doyensys.com]$ ln -s $ORACLE_HOME/lib/libclntsh.so.12.1 libclntsh.so.12.1
[oracle@ggsource.doyensys.com]$ ln -s $ORACLE_HOME/lib/libons.so libons.so
[oracle@ggsource.doyensys.com]$ ln -s $ORACLE_HOME/lib/libclntshcore.so.12.1 libclntshcore.so.12.1

Now invoke the GoldenGate ggsci
$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO
Linux, x64, 64bit (optimized), Oracle 12c on Dec 12 2018 02:56:48
Operating system character set identified as UTF-8.

  • August 20, 2018 | 20 views
  • Comments