Skip to main content
GoldenGate

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

By December 12, 2014September 12th, 2016No Comments

libnnz10.so missing when executing ggsci on Linux

 

The below error might be encountered while initializing the GGSCI prompt for Oracle GoldenGate.

 

[oracle@ogg1 ogg]$ ./ggsci

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

There are two ways to resolve this error. We can follow either ways.

  1. By setting the LD_LIBRARY_PATH in the environment
  2. By creating the soft links for the missing Library Files

 

1. Setting the LD_LIBRARY_PATH

 

  • Edit the .bash_profile to the add the LD_LIBRARY_PATH

vi .bash_profile

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

 

  • Save the file and execute the proflie

. ./.bash_profile

 

Note – profile names changes according to the Operating System we use. Here in this example, I have used OEL (Oracle Enterprise Linux)

 

  • Check whether GGSCI Prompt is working
[oracle@ogg1 ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 12.1.2.0.0 17185003 OGGCORE_12.1.2.0.0_PLATFORMS_130924.1316_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Sep 25 2013 00:31:13

Operating system character set identified as UTF-8.

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

GGSCI (ogg1.localdomain) 1>

 

2. Creating Soft Links for the missing Library Files

Secondly, You can create a soft link for the Missing Library files under GoldenGate home.

 

  • Go to the GoldenGate Home
[oracle@ogg1 ~]$ cd /ogg

 

  • Create the soft links.,
[oracle@ogg1 ogg]$ ln -s $ORACLE_HOME/lib/libnnz11.so libnnz11.so

[oracle@ogg1 ogg]$

[oracle@ogg1 ogg]$ ln -s $ORACLE_HOME/lib/libclntsh.so.11.1 libclntsh.so.11.1

 

  • Check whether GGSCI Prompt is working
[oracle@ogg1 ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 12.1.2.0.0 17185003 OGGCORE_12.1.2.0.0_PLATFORMS_130924.1316_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Sep 25 2013 00:31:13

Operating system character set identified as UTF-8.

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

GGSCI (ogg1.localdomain) 1>

 

Conclusion: Always setting the LD_LIBRARY_PATH is good instead of creating the soft links. Because we need not to worry about any other library files which is required in future work.

 

 

Leave a Reply