Forum Stats

  • 3,741,181 Users
  • 2,248,384 Discussions


Missing Libs on Linux

421812 Member Posts: 16
[email protected] bin$ ./sqlplus
./sqlplus: error while loading shared libraries: cannot open shared object file: No such file or directory
[email protected] bin$ ldd sqlplus => (0xffffe000) => not found => not found => not found => /lib/ (0xb7fe2000) => /lib/ (0xb7fbf000) => /lib/ (0xb7f6c000) => /lib/ (0xb7f55000) => /lib/ (0xb7e3e000)
/lib/ => /lib/ (0xb7fea000)

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



  • 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


    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)
    * (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:

    * 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/

    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):

    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)


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