Pages

Sunday 3 February 2013

Goldengate: ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file


We got below error while connecting to GG after installing it.

[gbuora@slc03qmb GG]$ ./ggsci
./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory

Solution:

1. Go to GG installed directory

eg: cd /scratch/GG

2. create softlink for below files located at $ORACLE_HOME/lib as below.

libnnz11.so
libclntsh.so.11.1

ln -s /scratch/app/gbuora/product/11.2.0/dbhome_1/lib/libnnz11.so
ln -s /scratch/app/gbuora/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1


lrwxrwxrwx 1 gbuora dba        59 Feb  3 23:07 libnnz11.so -> /scratch/app/gbuora/product/11.2.0/dbhome_1/lib/libnnz11.so
lrwxrwxrwx 1 gbuora dba        65 Feb  3 23:08 libclntsh.so.11.1 -> /scratch/app/gbuora/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1

3. Connect to GG now.

[gbuora@slc03qmb GG]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14

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



GGSCI (slc03qmb) 1> exit
[gbuora@slc03qmb GG]$ pwd
/scratch/GG

4 comments:

  1. But what to do if I have on source machine : DB 10g and Golden Gate 11g ? I don't have in $ORACLE_HOME/lin libnnz11.so , there is libnnz10.so

    ReplyDelete
    Replies
    1. Please could you let me know what error you got. Is it the same error? Because I didn't check it in 10g.

      Regards,
      Sangamesh

      Delete
    2. ./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory
      this is the error i got when i tried to setup Golden gate 11g and database is 10g
      if the database is 11g and golden gate version is 10
      ./ggsci: error while loading shared libraries: libnnz10.so: cannot open shared object file: No such file or directory

      how can i resolve this?

      Delete
    3. Sandhya,

      Please check below options.
      1.Please make sure LD_LIBRARY_PATH is set to $ORACLE_HOME/lib
      2.Create soft link as below
      ln -s $ORACLE_HOME/lib/libodm11.so libnnz10.so

      Do let me know if issue is not resolved.

      Regards,
      Sangamesh

      Delete