Friday, April 22, 2016

ggsci: error while loading shared libraries: libnnz12.so

[gguser@Linux03 OGGHOME]$ ggsci
ggsci: error while loading shared libraries: libnnz12.so: cannot open shared object file: No such file or directory


ONE REASON THIS CAN HAPPEN IS IF GGSCI CANT FIND/ACCESS libnnz12.so FILE :

[gguser@Linux03 OGGHOME]$ cd $ORACLE_HOME

[gguser@Linux03 db_1]$ cd lib
[gguser@Linux03 lib]$ ls -ll libnnz12.so
-rw-r--r--. 1 oracle oracle 6213011 Jun 18  2014 libnnz12.so

Note: Sometimes it can also be missing or wrong permissions on files.



***************************************************************
IMPORTANT PATH SETTINGS TO CHECK FOR :

***************************************************************

$ export OGGHOME=/u01/app/OGGHOME        ### Where OGGHOME is where the GG                                                                                                             binaries are installed
$ export PATH=$PATH:$OGGHOME 
$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$OGGHOME


Note : There is another way to deal te same problem is to create a symbolic link to this file libnnz12 under ORACLE_HOME/lib


CHECK IF THE PATHS ARE SET CORRECT, IN MY CASE MY ORACLE HOME WAS NOT SET RIGHT. WHICH MADE DEPENDENT PATHS FAIL:

[gguser@Linux03 OGGHOME]$ echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0.1/db_1

[gguser@Linux03 OGGHOME]$ cd $ORACLE_HOME
bash: cd: /u01/app/oracle/product/12.1.0.1/db_1: No such file or directory

[gguser@Linux03 OGGHOME]$ export ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1/
[gguser@Linux03 OGGHOME]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.2.0.1.1 OGGCORE_12.2.0.1.0_PLATFORMS_151211.1401_FBO
Linux, x64, 64bit (optimized), Oracle 12c on Dec 12 2015 02:56:48
Operating system character set identified as UTF-8.

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


GGSCI (Linux03) 1>



1 comment:

  1. Do you want to pass 1Z0-447 exam in 1st try? Pass your OPN Certified Specialist 1Z0-447 easily by the help of latest 1Z0-447 dumps questions & answers. Your Oracle GoldenGate 12c Implementation Essentials success is guaranteed with our 100% money back guarantee. Braindumps4IT provide real 1Z0-447 exam questions and latest 1Z0-447 exam braindumps.

    ReplyDelete