问题现象
1,启动报错,使用浏览器也不能查看,重启还是不行
emctl status oms
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Down
2,日志报错statusOMS finished with result: 8
vi /oracle/oem_12c/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
2012-03-07 14:08:12,399 [main] INFO oms.StatusOMSCmd processStatusOMS.293 - Failed to connect to em login page
2012-03-07 14:08:12,399 [main] INFO oms.StatusOMSCmd processStatusOMS.294 - Encountered error while hitting page. Status codes are 404 for console and 500 for PBS
2012-03-07 14:08:12,400 [main] INFO oms.StatusOMSCmd processStatusOMS.295 - Connection exception when trying to hit OMS page. OMS is down
2012-03-07 14:08:12,402 [main] DEBUG oms.StatusOMSCmd processStatusOMS.241 - pbs page status code is 500
2012-03-07 14:08:12,402 [main] DEBUG oms.StatusOMSCmd processStatusOMS.244 - console header is null
2012-03-07 14:08:12,403 [main] DEBUG oms.StatusOMSCmd processStatusOMS.246 - pbs header is null
2012-03-07 14:08:12,403 [main] DEBUG oms.StatusOMSCmd processStatusOMS.284 - Both Console and PBS are down. Status codes are: Console - 404 and PBS - 500
2012-03-07 14:08:12,403 [main] INFO oms.StatusOMSCmd processStatusOMS.293 - Failed to connect to em login page
2012-03-07 14:08:12,403 [main] INFO oms.StatusOMSCmd processStatusOMS.294 - Encountered error while hitting page. Status codes are 404 for console and 500 for PBS
2012-03-07 14:08:12,404 [main] INFO oms.StatusOMSCmd processStatusOMS.295 - Connection exception when trying to hit OMS page. OMS is down
2012-03-07 14:08:12,413 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 8
2012-03-07 14:08:12,426 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 8
2012-03-07 14:08:12,433 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 8
解决方法:
1,重启数据库和监听器,确保OMS重启后有sysman用户成功连接上来
2,重启OMS
[oem@dtydb0 bin]$ ./emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down
[oem@dtydb0 bin]$ ./emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up
参考了metalink的文章
12C Cloud Control: Accessing the Console URL Shows Error Message 'Backend WLS or EM application seems to be down' [ID 1367997.1]
Cause
Repository Database has been shutdown / crashed due to which the OMS also crashed.
Solution
1. Re-start the repository database and verify that a connection can be made to the 'sysman' schema in the database via the listener.
2. Re-start the OMS:
cd <OMS_HOME>/bin
emctl stop oms -all
emctl start oms