ORACLE10g在linux5 64bit安裝問題

lsm_3036發表於2011-04-07

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章