Enterprise Manager Cloud Control Agent ($OMS_HOME)
For example:
OMS_HOME=/usr/oracle/EM/middleware/oms
To start the OMS
$OMS_HOME/bin/emctl start oms
For example:
$OMS_HOME/bin/emctl start oms Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. Starting Oracle Management Server... Starting WebTier... WebTier Successfully Started Oracle Management Server Successfully Started Oracle Management Server is Up
The above command performs the following steps:
Admin Server is configured using emgc.properties file
Managed Server is started through the Node Manager
To stop the OMS
$OMS_HOME/bin/emctl stop oms
For example:
$OMS_HOME/bin/emctl stop oms Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. Stopping WebTier... WebTier Successfully Stopped Stopping Oracle Management Server... Oracle Management Server Successfully Stopped Oracle Management Server is Down
The above command performs the following steps:
If the -all option is specified then the Admin Server and Node Manager will also be shut down
$OMS_HOME/bin/emctl stop oms -all
For example:
$OMS_HOME/bin/emctl stop oms -all Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 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
The above command performs the following steps:
Also stops ADP Manager, JVMD Manager and BIP processes if running
To list the configured OMS use:
$OMS_HOME/bin/emctl list oms
For example:
$OMS_HOME/bin/emctl list oms Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. OMS Instances(s) : Enter Enterprise Manager Root (SYSMAN) Password : server1.juliandyke.com : EMGC_OMS1 : GCDomain : 12.1.0.4.0*
If an asterisk is displayed next to the OMS name, the Admin Server is configured on the same node.
To get the current status of the OMS
$OMS_HOME/bin/emctl status oms
Examples:
$OMS_HOME/bin/emctl status oms Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. WebTier is Up Oracle Management Server is Up
$OMS_HOME/bin/emctl status oms Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. WebTier is Down Oracle Management Server is Down
The Oracle Management Server is only shown as Up if both the emgc and empbs applications are running.
To get the detailed current status of the OMS
$OMS_HOME/bin/emctl status oms -details
Example output:
Oracle Enterprise Manager Cloud Control 12c Release 4 Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : Console Server Host : server1.juliandyke.com HTTP Console Port : 7788 HTTPS Console Port : 7802 HTTP Upload Port : 4889 HTTPS Upload Port : 4903 EM Instance Home : /usr/oracle/EM/gc_inst/em/EMGC_OMS1 OMS Log Directory Location : /usr/oracle/EM/gc_inst/em/EMGC_OMS1/sysman/log OMS is not configured with SLB or virtual hostname Agent Upload is locked. OMS Console is locked. Active CA ID: 1 Console URL: https://server1.juliandyke.com:7802/em Upload URL: https://server1.juliandyke.com:4903/empbs/upload WLS Domain Information Domain Name : GCDomain Admin Server Host : server1.juliandyke.com Admin Server HTTPS Port: 7102 Admin Server is RUNNING Oracle Management Server Information Managed Server Instance Name: EMGC_OMS1 Oracle Management Server Instance Host: server1.juliandyke.com WebTier is Up Oracle Management Server is Up BI Publisher is not configured to run on this host.