Monday, August 27, 2012

Starting and Stopping Oracle Enterprise Manager 11g Grid Control

OMS_HOME and AGENT_HOME you can find /etc/oratab

[oracle@smrgccadmdl1 ~]$ grep -E 'oms|agent' /etc/oratab
*:/d01/oracle/product/Middleware/oms11g:N
*:/d01/oracle/product/Middleware/agent11g:N

so OMS_HOME would be /d01/oracle/product/Middleware/oms11g   &
   AGENT_HOME would be /d01/oracle/product/Middleware/agent11g

NOTE: The Oracle Enterprise Manger 11g Grid Control install process puts a script called gcstartup in /etc/init.d that will stop and start the Oracle Management Service and Agent on OS startup/shutdown. It does not start or stop the repository database. If you would like to stop the automated startup/shutdown of Grid Control services place comments in front of the OMS and AGENT home directories in the /etc/oratab file or remove the script /etc/init.d/gcstartup.

Stopping Oracle Enterprise Manager 11g Grid Control

Stop the Oracle Management Service
From the OMS_HOME directory run the following to stop the OMS and WebTier

export ORACLE_HOME=/d01/oracle/product/Middleware/oms11g
export ORACLE_SID=svrpgcc
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$PATH

services[oracle@smrgccadmdl1 ~]$ cd $OMS_HOME/bin

[oracle@smrgccadmdl1 bin]$ emctl stop oms -all (emctl stop oms -force)


Oracle Enterprise Manager 11g Release 1 Grid Control  
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
Note:
if you do not include the –all flag the HTTP services for the WebLogic Server will not be shutdown. Stop the Oracle Management Agent
From the AGENT_HOME directory run the following to stop the Agent

export ORACLE_HOME=/d01/oracle/product/Middleware/agent11g
export ORACLE_SID=svrpgcc
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$PATH


[oracle@smrgccadmdl1 ~ ]$ cd $AGENT_HOME/bin
[oracle@smrgccadmdl1 bin]$pwd
/d01/oracle/product/Middleware/agent11g/bin

[oracle@smrgccadmdl1 bin]$ emctl stop agent


 

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0 
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.

Stop the repository DataBase:

[oracle@smrgccadmdl1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 28 05:44:14 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit

Stop the Listener :

[oracle@smrgccadmdl1 ~]$ lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-AUG-2012 05:55:48
 
Copyright (c) 1991, 2009, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.108.101.111)(PORT=1521)))
The command completed successfully
Starting Oracle Enterprise Manager 11g Grid Control :

1). Start the Listener

2). Start the Reposioty DataBase

3). Start teh OMS & WebTier Services(Oracle Management Agent--> emctl start oms)

4). start the AGENT_HOME (emctl start agent)

5). https://smrgccadmdl1.domain:7799/em

Note: check url for installation

No comments:

Post a Comment