Our databases are under Window Server 2008 R2 Environment
After the commands emctl stop oms -all
C:\app\oemc\oms\BIN>emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Error Occurred: Error during stop oms. Please check error and log files
Please check C:/app/gc_inst/em/EMGC_OMS1\sysman\log\emctl.log for error details
and emctl start oms
C:\app\oemc\oms\BIN>emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Windows service OracleManagementServer_EMGC_OMS1_1 successfully started
Oracle Management Server is Up
>>>> (Here didn't show Webtier start up information) <<<<
then we check C:/app/gc_inst/em/EMGC_OMS1\sysman\log\emctl.log
...
2018-09-21 00:38:59,543 [main] INFO wls.OMSController main.219 - Executing emctl command : stop
2018-09-21 00:38:59,886 [main] INFO commands.BaseCommand getEnvProps.456 - nm home replaced : C:/app/gc_inst/NodeManager/emnodemanager
2018-09-21 00:39:01,996 [main] INFO util.EmctlUtil logp.251 - Output messages of the command :opmnctl stopall: opmn is not running.
2018-09-21 00:39:01,996 [main] INFO util.EmctlUtil logp.251 - error messages of the command :
2018-09-21 00:39:10,359 [main] ERROR wls.OMSController main.252 - OMSController failed for stop oms
2018-09-21 00:39:10,359 [main] ERROR wls.OMSController main.253 - OMSController Error: Error during stop oms. Please check error and log files
java.lang.Exception: Error during stop oms. Please check error and log files
at oracle.sysman.emctl.commands.StopCommand.stopOMS(StopCommand.java:282)
at oracle.sysman.emctl.commands.StopCommand.execute(StopCommand.java:59)
at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:233)
2018-09-21 00:39:31,468 [main] INFO wls.OMSController main.219 - Executing emctl command : status
2018-09-21 00:39:32,578 [main] WARN commands.StatusCommand printWebTierStatus.126 - Error when checking webtier status: Connection refused: connect
2018-09-21 00:39:32,874 [main] INFO commands.BaseCommand printMessage.404 - statusOMS finished with result: 0
2018-09-21 00:40:04,503 [main] INFO wls.OMSController main.219 - Executing emctl command : start
2018-09-21 00:40:04,846 [main] INFO commands.BaseCommand getEnvProps.456 - nm home replaced : C:/app/gc_inst/NodeManager/emnodemanager
2018-09-21 00:40:04,877 [main] INFO commands.StartCommand startOMS.371 - net start return code is 2
2018-09-21 00:40:04,877 [main] ERROR commands.BaseCommand logAndPrint.620 - Windows service OracleManagementServer_EMGC_OMS1_1 successfully started
2018-09-21 00:40:04,893 [main] INFO commands.BaseCommand printMessage.404 - statusOMS finished with result: 0
2018-09-21 00:42:04,801 [main] INFO wls.OMSController main.219 - Executing emctl command : status
2018-09-21 00:42:05,926 [main] WARN commands.StatusCommand printWebTierStatus.126 - Error when checking webtier status: Connection refused: connect
2018-09-21 00:42:06,238 [main] INFO commands.BaseCommand printMessage.404 - statusOMS finished with result: 0
...
Then we found that the OEM webpage https://WindowServer2K8.abc.com:7800/em/ refused to connect, this site can't be reached
C:\app\oemc\oms\BIN> emctl status oms -details
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : WindowServer2K8.abc.com
HTTP Console Port : 7789
HTTPS Console Port : 7800
HTTP Upload Port : 4890
HTTPS Upload Port : 4899
EM Instance Home : C:\app...
OMS Log Directory Location : C:\app...
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL: https://WindowServer2K8.abc.com:7800/em
Upload URL: https://WindowServer2K8.abc.com:4899/empbs/upload
WLS Domain Information
Domain Name : GCDomain
Admin Server Host : WindowServer2K8.abc.com
Admin Server HTTPS Port: 7102
Managed Server Information
Managed Server Instance Name: AAA_BBB
Managed Server Instance Host: WindowServer2K8.abc.com
WebTier is Down
Oracle Management Server is Up
When we tried to stop opmn process :
C:\app\gc_inst\WebTierIH1\bin> opmnctl stopall
opmnctl stopall: opmn is not running.
then:
C:\app\gc_inst\WebTierIH1\bin> opmnctl startall
opmnctl startall: starting opmn and all managed processes...
[2018-09-20T15:03:33-05:00] [opmn] [ERROR:1] [] [internal] "C:\app\oemc\Oracle_WT\opmn\bin\opmn.exe" -M: unexpected exit: code 2
opmnctl startall: opmn failed to start.
We were trying to find the orphan process of webtier components (like "opmn"), but we don't know how to do that under windows environment.