ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORACLE10g在linux5 64bit安装问题

ORACLE10g在linux5 64bit安装问题

原创 Linux操作系统 作者:lsm_3036 时间:2011-04-07 09:59:45 0 删除 编辑

1、DBCA建库报错: OrAcle 10G exception loading native library: njni10  << Back 
by: fcruz.

Are you one of those that has been suffering from this error: UnsatisfiedLinkError exception loading native library: njni10 , while installing oracle 10G client or oracle server on macosx ? , well , you wont beleive how simple the solution is ...

The complete error while loading the ./netca after making the installation is the following:

UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: jniGetOracleHome
at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
at oracle.net.common.NetProperties.(Unknown Source)
at oracle.net.common.NetProperties.getInstance(Unknown Source)
at oracle.net.ca.CmdlineArgs.(Unknown Source)
at oracle.net.ca.InitialSetup.(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)

Ok , just follow the simple two steps ,

cd into $ORACLE_HOME/bin

then type: ln -s $ORACLE_HOME/lib/libnjni10.dylib $ORACLE_HOME/lib/libnjni10 , then ENTER

then type: ln -s $ORACLE_HOME/lib/libclntsh.dylib $ORACLE_HOME/lib/libclntsh.dylib.10.1

After that go into $ORACLE_HOME/bin and start ./netca

Problem solved, this simple solution came to me literally after hours of dealing with the situacion and very little help from ORACLE documentation on the issue.

Felipe

2、在安装过程进行到80%也报了错,一共报了三次错误。“error in invoking target 'all_no_orcl ihsodbc32' of makefile ..."

这个和上面的错误是一样的,都是因为缺32位或者64位的包,装了以后,还是无法执行DBCA。

可以通过,

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}  (%{ARCH})\n' binutils compat-db control-center gcc gcc-c++ glibc glibc-common glibc-devel gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio

检查安装包,通常会缺:

glibc-32bit-8.1-9

glibc-devel-32bit-8.1-9

compat-libstdc++-33  这些或32位或64位的包。

一个经验就是,以后把所有的开发包都装上。

仍然无法执行,继续GOOGLE。看到一个老外的方法,是需要执行一下relink all执行完毕没有报错,继续运行DBCA,NETCA成功。

看来这个relink all的步骤很关键,否则你就是安装了缺的包,ORACLE还是会报错。

这样又看出,也许不需要做一步骤的LINK软联接,也是可以的,需要验证。


或者:
To resolve the problem, perform. the following actions:

1) Install the following missing (required) Linux packages:

glibc-32bit-8.1-9
glibc-devel-32bit-8.1-9

2) Run the following command to relink the oracle executables:

$ORACLE_HOME/bin/relink all

3) Check the output to check that the errors have been resolved

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16978544/viewspace-691837/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 自动expftp备份
下一篇: TKPROF使用及阅读
请登录后发表评论 登录
全部评论

注册时间:2008-12-08

  • 博文量
    64
  • 访问量
    139602