GoldenGate

How to Resolve ./ggsci: error while loading shared libraries: libnnz12.so: cannot open shared object file: No such file or directory

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

4 thoughts on “How to Resolve ./ggsci: error while loading shared libraries: libnnz12.so: cannot open shared object file: No such file or directory

    1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *