错误如题所示,具体如下:

日志:

官方文档:
Executing Netca or Netmgr on UNIX Fails with: Error loading native library: libnjni9.so (文档 ID 163343.1)

Problem Description
——————-

You are unable to launch either netca or netmgr on UNIX following an
installation of Oracle 9.x.

$cd $ORACLE_HOME
$cd bin
$./netmgr

or

$cd $ORACLE_HOME
$cd bin
$./netca

Results in the following error:
—————————————-

Error loading native library: libnjni9.so.
java.lang.UnsatisfiedLinkError: jniGetOracleHome
at
at oracle.net.common.NetGetEnv.getOracleHome(Compiled Code)
at oracle.net.mgr.container.NetUtils.getImageDirectory(Compiled Code)
at oracle.net.mgr.container.NetApplication.init(Compiled Code)
at oracle.sysman.emSDK.client.appContainer.WebApplication.launch(Compiled Code)
at oracle.sysman.emSDK.client.appContainer.WebApplication.main(Compiled Code)

Solution Description
——————–

The libnjni9.so is found in two locations in a 9.x 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 likely the problem. Add the
$ORACLE_HOME/lib32 to the LD_LIBRARY_PATH environment variable and ensure
that it appears before the reference to $ORACLE_HOME/lib in the LD_LIBRARY_PATH
statement.

For example with a C shell:

setenv LD_LIBRARY_PATH =/app/oracle/product/9.0.1/lib32:$LD_LIBRARY_PATH

Now try executing the netca or netmgr executable again.

解决:
在我的环境中:

——————————————————
Done。

1 thought on “Oracle database 9i:Error loading native library: libnjni9.so”

  1. bash_profile for oracle database 9i

    # Oracle

    export ORACLE_SID=orcl
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/920

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    export ORACLE_OWNER=oracle
    export ORACLE_TERM=xterm

    export PATH=$ORACLE_HOME/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

    export LD_ASSUME_KERNEL=2.4.19

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装