Solved

Installing Oracle 9i with Redhat Linux 9

Posted on 2004-03-25
2
1,599 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
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 47

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - CSV to Oracle table 4 71
data lookup in Oracle - need suggestions 55 116
Require data to appear on a single line 2 46
PL SQL Developer 7 37
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

832 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