Thursday, January 15, 2009

HPUX SHLIB_PATH or LD_LIBRARY_PATH

today spent many time on perl script of Veritas database backup.

A gray area to all ... it looks somewhere is not refreshed immediately. (may be reside the EBS server , regardless of exporting LD_LIBRARY_PATH in .profile already at client side).

As workaround, have to explicitly export it inside the scripts. These Perl scripts are written by HP . Can't understand who chooze such difficult things.

also realize the difference between LD_LIBRARY_PATH and SHLIB_PATH from metalink doc 109621.1


A 64 bit install of Oracle includes both 32 bit executables (such as svrmgrl
and sqlplus) and 64 bit executables (such as oracle).

The installation contains two 'lib' areas:
Prior to 9i:
$ORACLE_HOME/lib - 32 bit libs
$ORACLE_HOME/lib64 - 64 bit libs
9i onwards:
$ORACLE_HOME/lib32 - 32 bit libs
$ORACLE_HOME/lib - 64 bit libs

Both of these directories contain libraries of the same name. To ensure
that 32 bit executables search the 32 bit dir, and 64 bit executables
search the 64 bit dir, set the following:

Prior to 9i:
$LD_LIBRARY_PATH - includes $ORACLE_HOME/lib64, but not $ORACLE_HOME/lib
$SHLIB_PATH - includes $ORACLE_HOME/lib, but not $ORACLE_HOME/lib64

9i onwards:
$LD_LIBRARY_PATH - includes $ORACLE_HOME/lib, but not $ORACLE_HOME/lib32
$SHLIB_PATH - includes $ORACLE_HOME/lib32, but not $ORACLE_HOME/lib