Setting the Environment Variables for Oracle Shared Libraries
Use
You set the environment variables on the various Linux/UNIX platforms.
Prerequisites
$ORACLE_HOME is already set up.
Procedure
Setting Environment Variables for Linux
-
Add the following information to the lsstcp.sh and runlss.ksh script.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib32
export LD_LIBRARY_PATH
-
If running a C-shell environment, add the following information to the runlss.csh script.
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$ORACLE_HOME/lib32
Setting Environment Variables for Solaris
-
Add the following information to the lsstcp.sh and runlss.ksh script.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export LD_LIBRARY_PATH
-
If running a C-shell environment, add the following information to the runlss.csh script.
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$ORACLE_HOME/lib
Setting Environment Variables for HP-UX (PA RISC)
-
Add the following information to the lsstcp.sh and runlss.ksh script.
SHLIB_PATH=$SHLIB_PATH:$ORACLE_HOME/lib
export SHLIB_PATH
-
If running a C-shell environment, add the following information to the runlss.csh script.
setenv SHLIB_PATH $SHLIB_PATH:$ORACLE_HOME/lib
Setting Environment Variables for HP-UX Itanium)
-
Add the following information to the lsstcp.sh and runlss.ksh script.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export LD_LIBRARY_PATH
-
If running a C-shell environment, add the following information to the runlss.csh script.
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$ORACLE_HOME/lib
Setting Environment Variables for AIX
-
Add the following information to the lsstcp.sh and runlss.ksh script.
LIBPATH=$LIBPATH:$ORACLE_HOME/lib
export LIBPATH
-
If running a C-shell environment, add the following information to the runlss.csh script.
setenv LIBPATH $LIBPATH:$ORACLE_HOME/lib
The Oracle client shared library is in the archive libclntsh.a file on AIX. The name of the shared object is not the same name across all Oracle versions. In order for Application Server to use a consistent name, you must extract the archive libclntsh.a in the $ORACLE_HOME/lib directory and rename it to libclntsh.so.
-
Change directories by using a cd to the $ORACLE_HOME/lib directory.
-
Determine the name of the object by issuing the command:
ar -t libclntsh.a
-
Extract the archive with the command:
ar -x libclntsh.a
-
Rename the object with the following command where <objname> is the file name returned in step 2.
mv <objname> libclntsh.so