在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@]