Starting and Stopping Oracle Enterprise Manager Grid Control 11g

Starting and Stopping Oracle Enterprise Manager  Grid Control 11g



Before you start your journey to stop the grid control components in sequence, you need to determined where your OMS,recpository DB and grid Agent home path is location on your gridcontrol server.

my environment where I have tested this is :
orcle db version :Oracle 11.2.0.1.0 - Production
gridconrol version :  Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
o/sys version: RHELinux 5.9

support source: http://docs.oracle.com/cd/E11857_01/index.htm



--homes path

$cat /etc/oratab 

ORCL:/u01/app/oracle/product/11.2.0/dbhome_1:Y
OMS:/u01/oracle/Middleware/oms11g:Y
AGENT:/u01/oracle/Middleware/agent11g:Y

1. Stopping OMS ...

ORACLE_SID = [oracle] ? OMS
The Oracle base for ORACLE_HOME=/u01/oracle/Middleware/oms11g is
XPointer evaluation failed: no locset


[ oracle on pts/2 ] (1004) % emctl stop oms -all                        
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 Already Stopped
Oracle Management Server is Down


2. Stop Agent

 set the home environment variable to AGENT home

OORACLE_SID = [OMS] ? AGENT
The Oracle base for ORACLE_HOME=/u01/oracle/Middleware/agent11g

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.


3. Stop the repository database, in my case its name is default ORCL


[ oracle on pts/2 ] (1007) % . oraenv                                    
ORACLE_SID = [AGENT] ? ORCL
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 
[ oracle on pts/2 ] (1008) % sqlplus /nolog                              

SQL*Plus: Release 11.2.0.1.0 Production on Mon May 23 10:37:10 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


SQL> conn sys /as sysdba;
Enter password:
Connected.
SQL> shutdown immediate;
Database closed.
Database dismounted.

ORACLE instance shut down.
SQL> 




4. At the end stop the listener, this will mark end of grid control stop.



[ oracle on pts/4 ] (1010) % . oraenv                                   
ORACLE_SID = [oracle] ? ORCL
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle


[ oracle on pts/4 ] (1013) % lsnrctl stop                                 

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-MAY-2016 10:42:44

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully




=====================================================

How to start the gricontrol service successfully


=====================================================

1. Start the listener

 oracle on pts/4 ] (1010) % . oraenv                                   
ORACLE_SID = [oracle] ? ORCL


The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle

[ oracle on pts/1 ] (1005) % lsnrctl start                                [ ~ ]

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-MAY-2016 11:10:56

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/slpv-grp-ogctl1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mygridhost.tv)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                23-MAY-2016 11:10:57
Uptime                    0 days 0 hr. 0 min. 1 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/slpv-grp-ogctl1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost.com)(PORT=1521)))
The listener supports no services
The command completed successfully


2. Start the repository database


[ oracle on pts/3 ] (1008) % . oraenv                                                                                        [ ~ ]
ORACLE_SID = [ORCLE] ? ORCL
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
[ oracle on pts/3 ] (1008) % sqlplus /nolog                                                                                  [ ~ ]

SQL*Plus: Release 11.2.0.1.0 Production on Mon May 23 11:18:42 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> conn sys /as sysdba
Enter password:
Connected to an idle instance.
SQL> startup;
ORACLE instance started.

Total System Global Area  941600768 bytes
Fixed Size                  1340440 bytes
Variable Size             549456872 bytes
Database Buffers          385875968 bytes
Redo Buffers                4927488 bytes
Database mounted.
Database opened.


3. Start the OMS  (the Oracle Management Service)

From the OMS_HOME directory run the following to start the OMS and WebTier services
[ oracle on pts/3 ] (1009) % . oraenv                                                                                        [ ~ ]
ORACLE_SID = [ORCL] ? OMS
The Oracle base for ORACLE_HOME=/u01/oracle/Middleware/oms11g is /u01/app/oracle
[ oracle on pts/3 ] (1010) % emctl start oms                                                                                 [ ~ ]
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up


4. start the Agent , this is end the starting procedure for oracle grid control server.

[ oracle on pts/3 ] (1011) % . oraenv                                                                          
ORACLE_SID = [OMS] ? AGENT
The Oracle base for ORACLE_HOME=/u01/oracle/Middleware/agent11g is /u01/app/oracle
[ oracle on pts/3 ] (1012) % emctl start agent                                                                               [ ~ ]
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting agent ................................. started.

Comments

  1. if you like the page helpful please like, any comments to improve further are most welcome! good Luck!

    ReplyDelete

Post a Comment