今天在Linux 5.7上安装Oracle 10g Grid Control过程中遇到了如下错误:
INFO: Configuration assistant "OC4J Instance Configuration Assistant" failed
-----------------------------------------------------------------------------
*** Starting OUICA ***
Oracle Home set to /u01/app/oracle/agent10g
Configuration directory is set to /u01/app/oracle/agent10g/cfgtoollogs. All xml files under the directory will be processed
INFO: The "/u01/app/oracle/agent10g/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
INFO: Created a new file /u01/app/oracle/oms10g/cfgtoollogs/configToolFailedCommands
INFO: Since the option is to overwrite the existing /u01/app/oracle/oms10g/cfgtoollogs/configToolFailedCommands file, backing it up
INFO: The backed up file name is /u01/app/oracle/oms10g/cfgtoollogs/configToolFailedCommands.bak
INFO: Created a new file /u01/app/oracle/agent10g/cfgtoollogs/configToolFailedCommands
INFO: Since the option is to overwrite the existing /u01/app/oracle/agent10g/cfgtoollogs/configToolFailedCommands file, backing it up
INFO: The backed up file name is /u01/app/oracle/agent10g/cfgtoollogs/configToolFailedCommands.bak
SEVERE: OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
2. Fix the errors causing these failures.
3. Select the failed assistants and click the 'Retry' button to retry them.
INFO: User Selected: Yes/OK
网上搜了一下,没有精确答案,有些答案修改默认网关有关/etc/resolv.conf ,还有一部分也要提示主机名的/etc/hosts。因此查看了主机名文件正常,查看默认网关时发现跟现有IP不一致,因此改了一下默认网关后执行retry果然通过了。
修改/etc/resolv.conf的默认网关
[oracle@dbserv2 ~]$ su - root
Password:
[root@dbserv2 ~]# vi /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.1.1~
这次安装顺利通过,部分安装日志如下:
Oc4jDeploy tool completed successfully!
INFO: Configuration assistant "OC4J Instance Configuration Assistant" succeeded
INFO: Command = /u01/app/oracle/oms10g/perl/bin/perl /u01/app/oracle/oms10g/bin/genpluginpath.pl /u01/app/oracle/oms10g /u01/app/oracle/oms10g
Operation successful.
2013年12月20日进行另一次安装时遇到了同样的错误,这次上面的配置都正常,retry多次没有用,最终解决方式是重新通过root用户身份执行 $OMS_HOME/allroot.sh脚本,并在提示输入y或n时输入y的方式覆盖(前面采用n,即,什么都不选,直接按回车键),执行完allroot.sh后,重新retry发现顺利通过。
总结:
在提示安装错误时,如下日志文件有助于查看错误相关日志:在我的环境:/u01/app/oracle/oraInventory/logs下的installActions2013-09-13_05-56-40-AM.log文件。
通用的说:oraInventory/logs/installActions
在我的环境/u01/app/oracle/oms10g/cfgtoollogs/cf**下的oracle.sysman.top.oms_2013-09-13_05-57-41-AM.log文件。
通用的说:
该文件在官方上位置
OMS的配置是个漫长的过程,如果要详细查看进度,可以查看如下几个文件:
/u01/app/oracle/oms10g/sysman/log下的
-rw-rw---- 1 oracle oinstall 351255 Sep 16 05:18 emca_repos_create05_06_56.log
-rw-r----- 1 oracle oinstall 5889 Sep 16 05:24 secure.log
-rw-r----- 1 oracle oinstall 3530 Sep 16 05:27 emctl.log
-rw-rw---- 1 oracle oinstall 52864 Sep 16 05:32 emoms.trc
-rw-rw---- 1 oracle oinstall 52864 Sep 16 05:32 emoms.log
通用的说主要的有:
最终安装成功后的,相关信息一般在
/u01/app/oracle/agent10g/sysman/setupinfo.txt中有详细记录。
通用的说:$AGENT_HOME/sysman/setupinfo.txt
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/18841027/viewspace-1060913/ ,如需转载,请注明出处,否则将追究法律责任。