安装了好几天的12c EM,总是失败,以下是过程:
1. 开始用的DB是11.2.0.1,在49%的时候失败。
2. 后来安装了11.2.0.2,79%时start OMS时报错:
- INFO: oracle.sysman.top.oms:Starting OMS ...
- INFO: oracle.sysman.top.oms:Executing command: /opt/oracle/12c/middleware/oms/bin/emctl start oms
- INFO: oracle.sysman.top.oms:Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
- INFO: oracle.sysman.top.oms:Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
- INFO: oracle.sysman.top.oms:Starting WebTier...
- INFO: oracle.sysman.top.oms:WebTier Could Not Be Started
- INFO: oracle.sysman.top.oms:Error Occurred: WebTier Could Not Be Started
- INFO: oracle.sysman.top.oms:Please check /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details
- SEVERE: oracle.sysman.top.oms:Starting of OMS failed.
INFO: oracle.sysman.top.oms:Starting OMS ...
INFO: oracle.sysman.top.oms:Executing command: /opt/oracle/12c/middleware/oms/bin/emctl start oms
INFO: oracle.sysman.top.oms:Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
INFO: oracle.sysman.top.oms:Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
INFO: oracle.sysman.top.oms:Starting WebTier...
INFO: oracle.sysman.top.oms:WebTier Could Not Be Started
INFO: oracle.sysman.top.oms:Error Occurred: WebTier Could Not Be Started
INFO: oracle.sysman.top.oms:Please check /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details
SEVERE: oracle.sysman.top.oms:Starting of OMS failed.
后来在这个日志/opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log里查到这么一段信息:
- 2012-06-22 15:54:02,789 [main] DEBUG wls.OMSController main.199 - Log location is /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/
- emctl.log
- 2012-06-22 15:54:02,792 [main] INFO wls.OMSController startOMS.828 - admin start is false
- 2012-06-22 15:54:02,793 [main] INFO wls.OMSController startOMS.829 - is service is false
- 2012-06-22 15:54:02,820 [main] INFO wls.OMSController getEnvProps.476 - Setting trust store system properties: -Dweblogic.security.TrustKeyS
- tore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/./urandom
- 2012-06-22 15:54:02,821 [main] INFO wls.OMSController startOMS.848 - Starting WebTier...
- 2012-06-22 15:54:02,827 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
- mnctl stopall
- 2012-06-22 15:54:02,872 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl stopall: opmn is not running.
- 2012-06-22 15:54:02,873 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for interface any
- 2012-06-22 15:54:02,874 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 0
- 2012-06-22 15:54:02,875 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
- mnctl startall
- 2012-06-22 15:54:02,915 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl startall: starting opmn and all mana
- ged processes...
- opmnctl startall: failed.
- 2012-06-22 15:54:02,916 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for
- interface any
- 2012-06-22 15:54:02,917 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 2
- 2012-06-22 15:54:02,917 [main] INFO wls.OMSController startOMS.864 - WebTier Could Not Be Started
- 2012-06-22 15:54:02,918 [main] ERROR wls.OMSController main.374 - OMSController failed for start oms
- 2012-06-22 15:54:02,920 [main] ERROR wls.OMSController main.375 - OMSController Error: WebTier Could Not Be Started
- java.lang.Exception: WebTier Could Not Be Started
- at oracle.sysman.emctl.wls.OMSController.startOMS(OMSController.java:865)
- at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:329)
- 2012-06-22 15:54:14,924 [main] DEBUG wls.OMSController main.199 - Log location is /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/
- emctl.log
- 2012-06-22 15:54:14,927 [main] INFO wls.OMSController startOMS.828 - admin start is false
- 2012-06-22 15:54:14,928 [main] INFO wls.OMSController startOMS.829 - is service is false
- 2012-06-22 15:54:14,952 [main] INFO wls.OMSController getEnvProps.476 - Setting trust store system properties: -Dweblogic.security.TrustKeyS
- tore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/./urandom
- 2012-06-22 15:54:14,953 [main] INFO wls.OMSController startOMS.848 - Starting WebTier...
- 2012-06-22 15:54:14,958 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
- mnctl stopall
- 2012-06-22 15:54:15,000 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl stopall: opmn is not running.
- 2012-06-22 15:54:15,001 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for
- interface any
- 2012-06-22 15:54:15,001 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 0
- 2012-06-22 15:54:15,003 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
- mnctl startall
- 2012-06-22 15:54:15,043 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl startall: starting opmn and all mana
- ged processes...
- opmnctl startall: failed.
- 2012-06-22 15:54:15,044 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for
- interface any
- 2012-06-22 15:54:15,045 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 2
- 2012-06-22 15:54:15,045 [main] INFO wls.OMSController startOMS.864 - WebTier Could Not Be Started
- 2012-06-22 15:54:15,046 [main] ERROR wls.OMSController main.374 - OMSController failed for start oms
- 2012-06-22 15:54:15,048 [main] ERROR wls.OMSController main.375 - OMSController Error: WebTier Could Not Be Started
- java.lang.Exception: WebTier Could Not Be Started
- at oracle.sysman.emctl.wls.OMSController.startOMS(OMSController.java:865)
- at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:329)
2012-06-22 15:54:02,789 [main] DEBUG wls.OMSController main.199 - Log location is /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/
emctl.log
2012-06-22 15:54:02,792 [main] INFO wls.OMSController startOMS.828 - admin start is false
2012-06-22 15:54:02,793 [main] INFO wls.OMSController startOMS.829 - is service is false
2012-06-22 15:54:02,820 [main] INFO wls.OMSController getEnvProps.476 - Setting trust store system properties: -Dweblogic.security.TrustKeyS
tore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/./urandom
2012-06-22 15:54:02,821 [main] INFO wls.OMSController startOMS.848 - Starting WebTier...
2012-06-22 15:54:02,827 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
mnctl stopall
2012-06-22 15:54:02,872 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl stopall: opmn is not running.
2012-06-22 15:54:02,873 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for interface any
2012-06-22 15:54:02,874 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 0
2012-06-22 15:54:02,875 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
mnctl startall
2012-06-22 15:54:02,915 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl startall: starting opmn and all mana
ged processes...
opmnctl startall: failed.
2012-06-22 15:54:02,916 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for
interface any
2012-06-22 15:54:02,917 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 2
2012-06-22 15:54:02,917 [main] INFO wls.OMSController startOMS.864 - WebTier Could Not Be Started
2012-06-22 15:54:02,918 [main] ERROR wls.OMSController main.374 - OMSController failed for start oms
2012-06-22 15:54:02,920 [main] ERROR wls.OMSController main.375 - OMSController Error: WebTier Could Not Be Started
java.lang.Exception: WebTier Could Not Be Started
at oracle.sysman.emctl.wls.OMSController.startOMS(OMSController.java:865)
at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:329)
2012-06-22 15:54:14,924 [main] DEBUG wls.OMSController main.199 - Log location is /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/
emctl.log
2012-06-22 15:54:14,927 [main] INFO wls.OMSController startOMS.828 - admin start is false
2012-06-22 15:54:14,928 [main] INFO wls.OMSController startOMS.829 - is service is false
2012-06-22 15:54:14,952 [main] INFO wls.OMSController getEnvProps.476 - Setting trust store system properties: -Dweblogic.security.TrustKeyS
tore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/./urandom
2012-06-22 15:54:14,953 [main] INFO wls.OMSController startOMS.848 - Starting WebTier...
2012-06-22 15:54:14,958 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
mnctl stopall
2012-06-22 15:54:15,000 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl stopall: opmn is not running.
2012-06-22 15:54:15,001 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for
interface any
2012-06-22 15:54:15,001 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 0
2012-06-22 15:54:15,003 [main] INFO util.WebTierUtil execCmd.407 - Running the command: /opt/oracle/12c/middleware/gc_inst/WebTierIH1/bin/op
mnctl startall
2012-06-22 15:54:15,043 [main] INFO util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl startall: starting opmn and all mana
ged processes...
opmnctl startall: failed.
2012-06-22 15:54:15,044 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for
interface any
2012-06-22 15:54:15,045 [main] INFO util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 2
2012-06-22 15:54:15,045 [main] INFO wls.OMSController startOMS.864 - WebTier Could Not Be Started
2012-06-22 15:54:15,046 [main] ERROR wls.OMSController main.374 - OMSController failed for start oms
2012-06-22 15:54:15,048 [main] ERROR wls.OMSController main.375 - OMSController Error: WebTier Could Not Be Started
java.lang.Exception: WebTier Could Not Be Started
at oracle.sysman.emctl.wls.OMSController.startOMS(OMSController.java:865)
at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:329)
其中有一句重要的信息:
2012-06-22 15:54:15,001 [main] INFO util.WebTierUtil getProcessResult.475 - opmnctl cmd error:Can not resolve oracle12c.test.net for interface any
可以看出,不能解析到oracle12c.test.net这个主机名,
把/etc/hosts从
- # Do not remove the following line, or various programs
- # that require network functionality will fail.
- 127.0.0.1 oracle12c.test.net oracle12c localhost.localdomain localhost
- ::1 localhost6.localdomain6 localhost6
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 oracle12c.test.net oracle12c localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
更改为- # Do not remove the following line, or various programs
- # that require network functionality will fail.
- 127.0.0.1 localhost.localdomain localhost
- ::1 localhost6.localdomain6 localhost6
- 172.17.3.111 oracle12c.test.net oracle12c
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
172.17.3.111 oracle12c.test.net oracle12c
,就OK了
总结:
1. 一定要使用合适经过认证的版本才能成功,盲目地去找11.2.0.1的错误会导致走弯路。
2.遇到问题要查看日志,查日志时,日志内容很多,一般最开始出现的错误是根本原因,之后再遇到的问题是次生原因。