Error while connecting to ggsci after install, due to missing shared files
[oracle@racnode01 prddb01]$ ./ggsci
./ggsci: error while loading shared libraries: libnnz19.so: cannot open shared object file: No such file or directory
Check missing file with ldd:
'ldd' of the ggsci executable will show the following libraries missing
[oracle@racnode01 prddb01]$ldd ggsci
libnnz19.so => not found
libclntsh.so.19.1 => not found
libclntshcore.so.19.1 => not found
Solution 1: Export Library path
[oracle@racnode01 prddb01]$ export LD_LIBRARY_PATH=/u01/app/19.8.0.0/grid/lib:/san/gg/prddb01
[oracle@racnode01 prddb01]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
GGSCI (racnode01) 1>
Second option: Create softlink from grid_home or oracle_home lib folder
cd /u01/app/19.8.0.0/grid/lib
[oracle@racnode01 lib]$ ls -ltr libnnz*
-rw-r--r-- 1 root oinstall 6586360 Jul 10 2020 libnnz19.so
-rw-r--r-- 1 root oinstall 1967164 Jul 10 2020 libnnz19.a
-rw-r--r-- 1 root oinstall 20418322 Jul 10 2020 libnnzst19.a
[oracle@racnode01 lib]$ cd /san/gg/prddb01/
$ ln -s /u01/app/19.8.0.0/grid/lib/libnnz19.so libnnz19.so
$ ln -s /u01/app/19.8.0.0/grid/lib/libclntsh.so.19.1 libclntsh.so.19.1
$ ln -s /u01/app/19.8.0.0/grid/lib/libclntshcore.so.19.1 libclntshcore.so.19.1
[oracle@racnode01 prddb01]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
GGSCI (racnode01) 1>
No comments:
Post a Comment