Error:
./Ggsci: error whileloading shared libraries: libnnz10.so: cannot open shared object file: No suchfile or directory.
Problem Analysis:
Obviously, the above error is reported because libnnz10.so of the library file is required when the./ggsci file is executed. First, check whether the LD_LIBRARY_PATH environment variable is correctly configured.
Solution:
1. Check whether the LD_LIBRARY_PATH environment variable is correctly configured:
[Ogg @ prudentwoo ~] $ Echo $ LD_LIBRARY_PATH --- we can see that there is no problem here
/DBSOFT/produce/11.2.0/db_1/lib
2. Check whether the libnnz10.so file exists:
[Ogg @ prudentwoo ogg] $ cd $ Oracle_HOME/lib
[Ogg @ prudentwoo lib] $ ll libnnz1 *
-Rw-r -- 1 oracle oinstall 9020808Aug 2 2009 libnnz11.a
-Rw-r -- 1 oracleoinstall 6986848 Aug 2 2009 libnnz11.so -- you can see this file here
[Ogg @ prudentwoo lib] $
Since I installed Oracle 11g, it was libnnz11.so, and GoldenGate was 10g, so he looked for the libnnz10.so file, so now it's easy, you only need to create a shortcut in the original path.
3. Create a shortcut for libnnz11.so to libnnz10.so
[Oracle @ prudentwoo lib] $ ln-s libnnz11.solibnnz10. so
[Oracle @ prudentwoo lib] $
4. Solve the problem after creating a shortcut:
[Ogg @ prudentwoo ogg] $./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.0.0 Build 078
Linux, x86, 32bit (optimized), Oracle 10 on Jul 28 2010:24:18
Copyright (C) 1995,201 0, Oracle and/or its affiliates. Allrights reserved.
GGSCI (prudentwoo. localdomain) 1>