oracle 12c EM 安装 WebTier Could Not Be Started .

安装了好几天的12c EM,总是失败,以下是过程:


1. 开始用的DB是11.2.0.1,在49%的时候失败。

2. 后来安装了11.2.0.2,79%时start OMS时报错:

  1. INFO: oracle.sysman.top.oms:Starting OMS ...  
  2. INFO: oracle.sysman.top.oms:Executing command: /opt/oracle/12c/middleware/oms/bin/emctl start oms  
  3. INFO: oracle.sysman.top.oms:Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0    
  4. INFO: oracle.sysman.top.oms:Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.  
  5. INFO: oracle.sysman.top.oms:Starting WebTier...  
  6. INFO: oracle.sysman.top.oms:WebTier Could Not Be Started  
  7. INFO: oracle.sysman.top.oms:Error Occurred: WebTier Could Not Be Started  
  8. INFO: oracle.sysman.top.oms:Please check /opt/oracle/12c/middleware/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details  
  9. 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里查到这么一段信息:

  1. 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/  
  2. emctl.log  
  3. 2012-06-22 15:54:02,792 [main] INFO  wls.OMSController startOMS.828 - admin start is false  
  4. 2012-06-22 15:54:02,793 [main] INFO  wls.OMSController startOMS.829 - is service is false  
  5. 2012-06-22 15:54:02,820 [main] INFO  wls.OMSController getEnvProps.476 - Setting trust store system properties: -Dweblogic.security.TrustKeyS  
  6. tore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/./urandom  
  7. 2012-06-22 15:54:02,821 [main] INFO  wls.OMSController startOMS.848 - Starting WebTier...  
  8. 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  
  9. mnctl stopall  
  10. 2012-06-22 15:54:02,872 [main] INFO  util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl stopall: opmn is not running.  
  11.   
  12. 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  
  13.   
  14. 2012-06-22 15:54:02,874 [main] INFO  util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 0  
  15. 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  
  16. mnctl startall  
  17. 2012-06-22 15:54:02,915 [main] INFO  util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl startall: starting opmn and all mana  
  18. ged processes...  
  19. opmnctl startall: failed.  
  20.   
  21.   
  22. 2012-06-22 15:54:02,916 [main] INFO  util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for   
  23. interface any  
  24.   
  25.   
  26. 2012-06-22 15:54:02,917 [main] INFO  util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 2  
  27. 2012-06-22 15:54:02,917 [main] INFO  wls.OMSController startOMS.864 - WebTier Could Not Be Started  
  28. 2012-06-22 15:54:02,918 [main] ERROR wls.OMSController main.374 - OMSController failed for start oms  
  29. 2012-06-22 15:54:02,920 [main] ERROR wls.OMSController main.375 - OMSController Error: WebTier Could Not Be Started  
  30. java.lang.Exception: WebTier Could Not Be Started  
  31.         at oracle.sysman.emctl.wls.OMSController.startOMS(OMSController.java:865)  
  32.         at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:329)  
  33. 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/  
  34. emctl.log  
  35. 2012-06-22 15:54:14,927 [main] INFO  wls.OMSController startOMS.828 - admin start is false  
  36. 2012-06-22 15:54:14,928 [main] INFO  wls.OMSController startOMS.829 - is service is false  
  37. 2012-06-22 15:54:14,952 [main] INFO  wls.OMSController getEnvProps.476 - Setting trust store system properties: -Dweblogic.security.TrustKeyS  
  38. tore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/./urandom  
  39. 2012-06-22 15:54:14,953 [main] INFO  wls.OMSController startOMS.848 - Starting WebTier...  
  40. 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  
  41. mnctl stopall  
  42. 2012-06-22 15:54:15,000 [main] INFO  util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl stopall: opmn is not running.  
  43.   
  44.   
  45. 2012-06-22 15:54:15,001 [main] INFO  util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for   
  46. interface any  
  47.   
  48.   
  49. 2012-06-22 15:54:15,001 [main] INFO  util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 0  
  50. 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  
  51. mnctl startall  
  52. 2012-06-22 15:54:15,043 [main] INFO  util.WebTierUtil getProcessResult.467 - opmnctl cmd output: opmnctl startall: starting opmn and all mana  
  53. ged processes...  
  54. opmnctl startall: failed.  
  55.   
  56.   
  57. 2012-06-22 15:54:15,044 [main] INFO  util.WebTierUtil getProcessResult.475 - opmnctl cmd error: Can not resolve oracle12c.test.net for   
  58. interface any  
  59.   
  60.   
  61. 2012-06-22 15:54:15,045 [main] INFO  util.WebTierUtil getProcessResult.479 - opmnctl cmd exited with code 2  
  62. 2012-06-22 15:54:15,045 [main] INFO  wls.OMSController startOMS.864 - WebTier Could Not Be Started  
  63. 2012-06-22 15:54:15,046 [main] ERROR wls.OMSController main.374 - OMSController failed for start oms  
  64. 2012-06-22 15:54:15,048 [main] ERROR wls.OMSController main.375 - OMSController Error: WebTier Could Not Be Started  
  65. java.lang.Exception: WebTier Could Not Be Started  
  66.         at oracle.sysman.emctl.wls.OMSController.startOMS(OMSController.java:865)  
  67.         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从

  1. # Do not remove the following line, or various programs  
  2. # that require network functionality will fail.  
  3. 127.0.0.1  oracle12c.test.net  oracle12c      localhost.localdomain localhost  
  4. ::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
更改为
  1. # Do not remove the following line, or various programs  
  2. # that require network functionality will fail.  
  3. 127.0.0.1        localhost.localdomain localhost  
  4. ::1             localhost6.localdomain6 localhost6  
  5. 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.遇到问题要查看日志,查日志时,日志内容很多,一般最开始出现的错误是根本原因,之后再遇到的问题是次生原因。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值