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

  1. 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

  2. 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

  1. 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

  2. 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)

  1. Add the following information to the lsstcp.sh and runlss.ksh script.

    SHLIB_PATH=$SHLIB_PATH:$ORACLE_HOME/lib

    export SHLIB_PATH

  2. 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)

  1. 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

  2. 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

  1. Add the following information to the lsstcp.sh and runlss.ksh script.

    LIBPATH=$LIBPATH:$ORACLE_HOME/lib

    export LIBPATH

  2. 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.

  3. Change directories by using a cd to the $ORACLE_HOME/lib directory.

  4. Determine the name of the object by issuing the command:

    ar -t libclntsh.a

  5. Extract the archive with the command:

    ar -x libclntsh.a

  6. Rename the object with the following command where <objname> is the file name returned in step 2.

    mv <objname> libclntsh.so