Cannot open shared object file error handling when logging on to OGG
1. Error
On the Linux server, the newly installed goldengate (OGG) is used. /ggsci log on to the console and report. /ggsci: error while loading shared libraries: libnnz11.so: cannotopen shared object file: No such file or directory error.
2. Cause Analysis
The reason is that the user running OGG does not set the LD_LIBRARY_PATH environment variable or the setting is incorrect.
3. solution:
Add the LD_LIBRARY_PATH environment variable configuration in. bash_profile as follows:
Export OGG =/u01/ogg
Export LD_LIBRARY_PATH = $ Oracle_HOME/lib:/u01/ogg
Apply the new environment variable Configuration:
[Oracle @ server2] $ source. bash_profile
4. Results
./Ggsci log on to the console successfully:
[Oracle @ server2 ~] $ Source. bash_profile
[Oracle @ server2 ~] $ Cd $ OGG
[Oracle @ server2 ogg] $./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
Linux, x64, 64bit (optimized), Oracle 11g on Oct 4 2011 23:49:46
Copyright (C) 1995,201 1, Oracle and/or its affiliates. All rights reserved.
GGSCI (server2) 1>