分类: Oracle
2010-07-14 11:13:51
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.
at oracle.net.common.NetProperties.getInstance(Unknown Source)
at oracle.net.ca.CmdlineArgs.
at oracle.net.ca.InitialSetup.
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。看到一个老外的方法,是需要执行一下realink all执行完毕没有报错,继续运行DBCA,NETCA成功。
看来这个realink all的步骤很关键,否则你就是安装了缺的包,ORACLE还是会报错。
这样又看出,也许不需要做一步骤的LINK软联接,也是可以的,需要验证。
根据互联网整理,感谢作者!