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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

770 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