[Webinar] Learn how to a build a cloud-first strategyRegister Now


Installing Oracle 9i with Redhat Linux 9

Posted on 2004-03-25
Medium Priority
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?
Question by:blackhyperdamage

Accepted Solution

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

LVL 48

Assisted Solution

schwertner earned 225 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.

     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
$ORACLE_HOME/lib and $ORACLE_HOME/lib32.

For example:

find . -name "libnjni9.so" -print


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")
         export LD_LIBRARY_PATH

     start netca.

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Suggested Courses

865 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