標(biāo)題: 裝完oracle ,啟動(dòng)netca報(bào)錯(cuò),在線等待,謝謝了 [打印本頁] 作者: 似水無痕 時(shí)間: 2003-07-30 12:45 標(biāo)題: 裝完oracle ,啟動(dòng)netca報(bào)錯(cuò),在線等待,謝謝了 $ netca
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)作者: 似水無痕 時(shí)間: 2003-07-30 12:51 標(biāo)題: 裝完oracle ,啟動(dòng)netca報(bào)錯(cuò),在線等待,謝謝了 $ ps -ef | grep oracle
oracle 131322 745508 0 01:49:42 - 0:00 /usr/dt/bin/dtsession
oracle 147576 475266 0 00:20:44 pts/0 0:00 -ksh
oracle 196652 131322 0 01:49:45 - 0:00 /usr/dt/bin/dtterm
oracle 270464 1 0 01:49:43 - 0:00 /usr/dt/bin/ttsession -s
oracle 327838 630786 0 01:52:44 pts/1 0:00 /oracle/app/jre/1.1.8/bin/aix/n
ative_threads/jre -nojit -DORACLE_HOME=/oracle/app/product/9.2.0 -DJDBC_PROTOCOL
=thin -mx64m -classpath /oracle/app/product/9.2.0/JRE/lib/rt.jar:/oracle/app/pro
duct/9.2.0/JRE/lib/i18n.jar:/oracle/app/product/9.2.0/assistants/dbca/jlib/dbca.
jar:/oracle/app/product/9.2.0/assistants/jlib/assistantsCommon.jar:/oracle/app/p
roduct/9.2.0/jlib/ewt3.jar:/oracle/app/product/9.2.0/jlib/ewtcompat-3_3_15.jar:/
oracle/app/product/9.2.0/jlib/share.jar:/oracle/app/product/9.2.0/jlib/help3.jar
:/oracle/app/product/9.2.0/jlib/oracle_ice5.jar:/oracle/app/product/9.2.0/jlib/k
odiak.jar:/oracle/app/product/9.2.0/jlib/swingall-1_1_1.jar:/oracle/app/product/
9.2.0/lib/xmlparserv2.jar:/oracle/app/product/9.2.0/jlib/gss-1_1.zip:/oracle/app
/product/9.2.0/jdbc/lib/classes111.zip:/oracle/app/product/9.2.0/lib/vbjorb.jar:
/oracle/app/product/9.2.0/lib/vbjtools.jar:/oracle/app/product/9.2.0/lib/vbjapp.
jar:/oracle/app/product/9.2.0/jlib/netcfg.jar:/oracle/app/product/9.2.0/jlib/srv
m.jar:/oracle/app/product/9.2.0/classes:/oracle/app/product/9.2.0/jlib/oembase-9
_2_0.jar oracle.sysman.assistants.dbca.Dbca
oracle 491724 196652 0 01:49:45 pts/1 0:00 /usr/bin/ksh
oracle 508074 131322 0 01:49:44 - 0:00 dtwm
oracle 549012 606424 0 01:50:50 pts/2 0:00 /usr/bin/ksh
oracle 557234 565404 0 01:50:03 pts/1 0:00 -ksh
oracle 598256 508074 0 01:50:50 - 0:00 /usr/dt/bin/dtexec -open 0 -ttp
rocid 2.-A0Kt 01 270464 1342177281 1 1 203 192.168.1.230 4_101_1 /usr/dt/bin/dtt
erm
oracle 606424 598256 0 01:50:50 - 0:00 /usr/dt/bin/dtterm
oracle 614598 549012 1 01:52:53 pts/2 0:00 grep oracle
oracle 630786 557234 0 01:52:44 pts/1 0:00 sh /oracle/app/product/9.2.0/bi
n/dbca
oracle 638994 549012 2 01:52:53 pts/2 0:00 ps -ef
$作者: 似水無痕 時(shí)間: 2003-07-30 13:26 標(biāo)題: 裝完oracle ,啟動(dòng)netca報(bào)錯(cuò),在線等待,謝謝了 上metalink查了一下,找到原因了,如下:
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/lib32LD_LIBRARY_PATH Now try executing the netca or netmgr executable again.作者: 似水無痕 時(shí)間: 2003-07-30 13:29 標(biāo)題: 裝完oracle ,啟動(dòng)netca報(bào)錯(cuò),在線等待,謝謝了 問題解決了,具體描述如下:
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/lib32LD_LIBRARY_PATH Now try executing the netca or netmgr executable again.