在Linux6.3上安装oracle11未填写hosts导置错误

来源:互联网 发布:海量数据最新传闻 编辑:程序博客网 时间:2024/04/29 23:24
Linux6.3上安装oracle11遇到下面的错误:

运行./runInstaller,立即出现下面的错误:

 

查看日志

# cat /tmp/OraInstall2013-03-14_11-07-58AM/installActions2013-03-14_11-07-58AM.log

 

Using paramFile: /data01/soft/database/install/oraparam.iniChecking Temp space: must be greater than 120 MB.   Actual 37195 MB    PassedChecking swap space: must be greater than 150 MB.   Actual 3951 MB    PassedChecking monitor: must be configured to display at least 256 colors.    Actual 16777216    PassedThe commandline for unzip:/data01/soft/database/install/unzip -qqqo ../stage/Components/oracle.jdk/1.5.0.30.03/1/DataFiles/\*.jar -d /tmp/OraInstall2013-03-14_11-07-58AM Using the umask value '022' available from oraparam.iniExecvp of the child jre : the cmdline is /tmp/OraInstall2013-03-14_11-07-58AM/jdk/jre/bin/java, and the argv is /tmp/OraInstall2013-03-14_11-07-58AM/jdk/jre/bin/java-Doracle.installer.library_loc=/tmp/OraInstall2013-03-14_11-07-58AM/oui/lib/linux64-Doracle.installer.oui_loc=/tmp/OraInstall2013-03-14_11-07-58AM/oui-Doracle.installer.bootstrap=TRUE-Doracle.installer.startup_location=/data01/soft/database/install-Doracle.installer.jre_loc=/tmp/OraInstall2013-03-14_11-07-58AM/jdk/jre-Doracle.installer.nlsEnabled="TRUE"-Doracle.installer.prereqConfigLoc= -Doracle.installer.unixVersion=2.6.32-279.el6.x86_64-mx150m-cp/tmp/OraInstall2013-03-14_11-07-58AM::/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/instdb.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/prov_fixup.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/jsch.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/OraPrereqChecks.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/cvu.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/ojdbc5.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/emConfigInstall.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/ssh.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/remoteinterfaces.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/instcommon.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/installcommons_1.0.0b.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/emagentSDK.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/orai18n-mapping.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/log4j-core.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/OraPrereq.jar:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/orai18n-utility.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/oneclick.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/share.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/emCfg.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/emocmutl.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/jsch.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/ssh.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/http_client.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/OraSuiteInstaller.jar:../stage/Components/oracle.swd.opatch/11.2.0.3.0/1/DataFiles/jlib/opatch.jar:../stage/Components/oracle.swd.opatch/11.2.0.3.0/1/DataFiles/jlib/opatchactions.jar:../stage/Components/oracle.swd.opatch/11.2.0.3.0/1/DataFiles/jlib/opatchprereq.jar:../stage/Components/oracle.swd.opatch/11.2.0.3.0/1/DataFiles/jlib/opatchutil.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/OraCheckPoint.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstImages.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/help4.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/help4-nls.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/ewt3.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/swingaccess.jar::/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/jewt4.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/ojmisc.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/xml.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/srvm.jar:/tmp/OraInstall2013-03-14_11-07-58AM/oui/jlib/srvmasm.jaroracle.install.ivw.db.driver.DBInstaller-scratchPath/tmp/OraInstall2013-03-14_11-07-58AM-sourceLoc/data01/soft/database/install/../stage/products.xml-sourceTypenetwork-timestamp2013-03-14_11-07-58AMINFO: Loading data from: jar:file:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xmlINFO: Loading beanstore from jar:file:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xmlINFO: Restoring class oracle.install.driver.oui.ConfigCmdMappings from jar:file:/tmp/OraInstall2013-03-14_11-07-58AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xmlINFO: Loading beans from Xml Bean Store. [BeanStoreName:config-data]INFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:id in the bean:configcmdINFO: Setting value for the property:platformcmdmap in the bean:configcmdINFO: Setting value for the property:configcmds in the bean:configcmdmappingsSEVERE: [FATAL] dev-1: dev-1.Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:37INFO: Advice is ABORTSEVERE: Unconditional ExitINFO: Adding ExitStatus FAILURE to the exit status set


解决办法:

原因是因为hosts中未设置IPHostname的映射。

修改前

[root@dev-1 data01]# more /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

 

修改后:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.33.128  dev-1

 

修改后,安装正常