日期:2014-05-17  浏览次数:21017 次

linux下运行netca和dbca报错
CentOS5.6 64位版本已经安装好oracle10G软件,现在要创建数据库,但运行netca和dbca都报java错误.

[oracle@DB database]$ netca
UnsatisfiedLinkError exception loading native library: njni10


java.lang.UnsatisfiedLinkError: jniGetOracleHome
  at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
  at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
  at oracle.net.ca.NetCA.main(Unknown Source)
Oracle Net Services configuration failed. The exit code is -1

==============================================================================

[oracle@DB database]$ dbca
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
  at oracle.net.common.NetGetEnv.get(Native Method)
  at oracle.net.config.Config.getNetDir(Unknown Source)
  at oracle.net.config.Config.initConfig(Unknown Source)
  at oracle.net.config.Config.<init>(Unknown Source)
  at oracle.sysman.assistants.util.NetworkUtils.<init>(NetworkUtils.java:222)
  at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:255)
  at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
  at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:205)
  at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
  at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:160)
  at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)
  at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)

在网上查了些资料,说是少了glibc-devel-2.5-58.el5_6.4.i386.rpm,安装后再$ORACLE_HOME/bin/relink all,还是报这个错误.



------解决方案--------------------
UnsatisfiedLinkError exception loading native library: njni10

这种错误遇到多了,

ORACLE在安装过程中遇到错误了吧,还是从根本上解决,

在ORACLE的安装过程中,有错误就要解决,不能直接忽略;

一般LINUX操作系统,如果RPM包安装完成,一般都不会有问题