Missing Shared Libraries libnnz12.so
Saw an error when I tried to get into Oracle GoldenGate Software Command Interface (GGSCI) after installation.
[oracle@ora12c1 ~]$ cd $OGG_HOME
[oracle@ora12c1 ogg]$ ./ggsci
./ggsci: error while loading shared libraries: libnnz12.so: cannot open shared object file: No such file or directory
GoldenGate put all necessary shared objects (.so files) under its own home directory, but several shared objects may not be found there, such as libnnz12.so, libclntsh.so.12.1, libons.so, libclntshcore.so.12.1.
Solution
You have to borrow the libraries from Oracle home by setting LD_LIBRARY_PATH environment variable correctly. Because GoldenGate expects you to do so.
[oracle@ora12c1 ogg]$ vi ~/.bash_profile
...
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$OGG_HOME
[oracle@ora12c1 ogg]$ . ~/.bash_profile
As you can see, we include $ORACLE_HOME/lib, $OGG_HOME as our library sources to solve the problem.
No more ./ggsci: error while loading shared libraries: libnnz12.so
thanks it has resolved my issue as well
You’re welcome.
i am still facing the same error
The last command is to make your setting take effect immediately in the current session, please do it again. If nothing’s improved, you may check the existence of required libraries in $ORACLE_HOME/lib.
Brilliant! Worked for me!
Thank you!
Thank you
It’s my pleasure.
Hi, I can’t find the libraries in the oracle home because i upgraded the home from 12c to 19c. so, now i have libnnz19.so instead of libnnz12.so
You’d better upgrade your GoldenGate to 19c (19.1) as well. It uses libnnz19.so.
Or you may try to find the file (libnnz12.so) and put it in the right path which is discoverable by OGG.