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

日志:

官方文档:
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
说点什么

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Adamhuan Recent comment authors

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒
隐藏
变装