由於gcc軟體包沒有安裝導致的Oracle安裝失敗

charsi發表於2012-03-11

在Linux上安裝Oracle 10g,安裝前進行系統環境檢查的時候,出現一個告警一個失敗,此時下面的Next按鈕還能繼續點下去,按照以往的經驗,忽視之,一路Next點下去,然後在安裝軟體完成後進行Link Pending時,開始出現報錯,錯誤如下:
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'ntcontab.o' of makefile '/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See '/u01/app/oracle/product/10.2.0/db_1/oraInventory/logs/installActions2012-03-12_08-44-05PM.log' for details.
Exception Severity: 1
INFO: Exception handling set to prompt user with options to Retry Ignore
User Choice: Ignore
INFO: Calling Action unixActions10.2.0.1.0 make
installMakePath = /usr/bin/make
installMakeFileName = /u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk
installTarget = nnfgt.o
installArguments = ORACLE_HOME =/u01/app/oracle/product/10.2.0/db_1,
undoMakeFileName = null
undoTarget = null
undoArguments = null
logFile = /u01/app/oracle/product/10.2.0/db_1/install/make.log
progMsg = Linking nnfgt

INFO: The output of this make operation is also available at: '/u01/app/oracle/product/10.2.0/db_1/install/make.log'
INFO:

INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:

INFO: rm -f nnfgt.*
......

之後一路ignore或continue點下去之後,資料庫軟體不能用,在dbca建庫的時候,會丟擲下面的一個Exception
[oracle:/u01/app/oracle/product/10.2.0/db_1/bin#]./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.(Unknown Source)
at oracle.sysman.assistants.util.NetworkUtils.(NetworkUtils.java:222)
at oracle.sysman.assistants.util.step.StepContext.(StepContext.java:255)
at oracle.sysman.assistants.dbca.backend.Host.(Host.java:682)
at oracle.sysman.assistants.dbca.ui.UIHost.(UIHost.java:205)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.(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)

於是只好檢查資料庫的安裝日誌,發現在前面環境監察的時候,有這樣的一個錯誤:
INFO: --------------------------------------------------------------------------------
INFO: Checking Packages
This is a prerequisite condition to test whether the packages required for installing the product are available on the system.
INFO: Checking for make-3.79; found make-1:3.80-7.EL4. Passed
Checking for binutils-2.14; found binutils-2.15.92.0.2-25. Passed
Checking for gcc-3.2; found Not found. Failed <<<<
Checking for libaio-0.3.96; found libaio-0.3.105-2. Passed
Check complete. The overall result of this check is: Failed <<<<

再試用rpm -qa |grep gcc發現果然沒有安裝gcc軟體包

安裝gcc軟體包之後,將原來安裝的檔案刪掉重新安裝資料庫之後,一切順利.
所以,以後在安裝資料庫的時候,一定要關注資料庫的安裝日誌

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23850820/viewspace-1057571/,如需轉載,請註明出處,否則將追究法律責任。

相關文章