Solved

Installing Oracle 9i with Redhat Linux 9

Posted on 2004-03-25
2
1,614 Views
Last Modified: 2012-05-04
This is problematic, I installed Oracle 9i in a Redhat Linux 9, patched the error (linker errors) and installed everything.

However, netca wont run with errors:

libclntsh.so: cannot open shared object file: No such file or directory (libnjni9.so)
Error loading native library: libnjni9.so.
java.lang.UnsatisfiedLinkError: jniGetOracleHome
        at oracle.net.common.NetGetEnv.getOracleHome(NetGetEnv.java)
        at oracle.net.ca.CmdlineArgs.setOraArgs(CmdlineArgs.java)
        at oracle.net.ca.NetCA.<init>(NetCA.java)
        at oracle.net.ca.NetCA.main(NetCA.java)

can someone have an idea on this?
0
Comment
Question by:blackhyperdamage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
baonguyen1 earned 75 total points
ID: 10684702
Can you check the LD_LIBRARY_PATH to see if the lib path is there

0
 
LVL 48

Assisted Solution

by:schwertner
schwertner earned 75 total points
ID: 10686082
The libnjni9.so is found in two locations in a 9i installation,
$ORACLE_HOME/lib and $ORACLE_HOME/lib32.


There are two workarounds available:
 
1st: Before starting NetCA unset LD_LIBRARY_PATH
     start netca.

2nd: setenv LD_LIBRARY_PATH = $ORACLE_HOME/lib32:$LD_LIBRARY_PATH
     Be aware $ORACLE_HOME/lib32 has to be the first path here.
     continue with:

     Within $ORACLE_HOME/bin/netca uncomment the
     following four lines:The libnjni9.so is found in two locations in a 9.0.1
installation,
$ORACLE_HOME/lib and $ORACLE_HOME/lib32.

For example:

cd $ORACLE_HOME
find . -name "libnjni9.so" -print

./lib/libnjni9.so
./lib32/libnjni9.so

If the LD_LIBRARY_PATH includes the $ORACLE_HOME/lib but not
$ORACLE_HOME/lib32 that is probably the problem.  Add the
$ORACLE_HOME/lib32 to the LD_LIBRARY_PATH environment variable.

      case $SET_DEFAULT_VAR in "YES")
         LD_LIBRARY_PATH=$ORACLE_HOME/$SLLIBDIRNAME:$O....................
         export LD_LIBRARY_PATH
      esac

     start netca.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question