Forum Stats

  • 3,741,181 Users
  • 2,248,384 Discussions
  • 7,861,663 Comments

Discussions

Missing Libs on Linux

421812
421812 Member Posts: 16
[email protected] bin$ ./sqlplus
./sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
[email protected] bin$ ldd sqlplus
linux-gate.so.1 => (0xffffe000)
libsqlplus.so => not found
libclntsh.so.10.1 => not found
libnnz10.so => not found
libdl.so.2 => /lib/libdl.so.2 (0xb7fe2000)
libm.so.6 => /lib/libm.so.6 (0xb7fbf000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7f6c000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb7f55000)
libc.so.6 => /lib/libc.so.6 (0xb7e3e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)

Anyone else seeing this problem? I can't find the Oracle libs anywhere and nothing told me to install Instant Client.

benr.

Comments

  • 241066
    241066 Member Posts: 776
    Did you set your environment variables via the supplied shell script ? If not please see the steps in the Linux Install Guide at http://download-west.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#CIHBCFDD

    Specifically

    3.2 Step 2: Set the Oracle Database XE Environment Variables

    After you have installed and configured Oracle Database XE, users can set their environment before they can use Oracle Database XE. They do not need to log on with root permissions to do so. Oracle Database XE provides a script that sets the necessary environment variables.

    Follow these steps:

    1. Go to the /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin directory.
    2. Look for the following scripts:
    * oracle_env.csh (for C or tcsh shell)
    * oracle_env.sh (for Bourne, Bash, or Korn shell)
    3. Check the settings in the scripts to make sure that they are appropriate for your installation.

    You do not need to change the ORACLE_HOME or ORACLE_SID settings, but you may need to set the NLS_LANG variable to point to your site's locale and character set. "Globalization Support—Configuring Locale and Character Sets with the NLS_LANG Parameter" describes this environment variable in detail.

    4. Run the appropriate script for your shell. For example:
    * Bourne, Bash, or Korn shell:
    $ oracle_env.sh

    * C or tcsh shell:
    % source oracle_env.csh

    You may also want edit your login or profile files so that these environment variables are set properly each time you log in or open a new shell.

    For Bourne, Bash, or Korn shell, enter the following line into the .bash_profile (to log in) or .bashrc file (to open a new shell):

    . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh


    For C or tcsh shell, enter the following line into the .login file (to log in) or .cshrc file (to open a new shell):

    source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.csh
  • 22852
    22852 Member Posts: 9
    For C or tcsh shell, enter the following line into
    the .login file (to log in) or .cshrc file (to open a
    new shell):

    source
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bi
    n/oracle_env.csh
    That file has an error in it.
    It assumes that LD_LIBRARY_PATH is set which isn't always the case (it also assumes that PATH is set but thats ok)

    -----------------
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:$LD_LIBRARY_PATH
    -----------------

    Should be:
    -----------------
    if( $?LD_LIBRARY_PATH ) then
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:$LD_LIBRARY_PATH
    else
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
    endif
    -----------------
  • 241066
    241066 Member Posts: 776
    Thanks for the catch - we will fix this
This discussion has been closed.