1. StoppingGridControlandAllItsComponents1. stop the OMS service [oracle @ ocm2oms10g] $ cdu01apporacleOracleHomesoms10gbin [oracle @ ocm2bin] $. Configure (c) 1996,200 5Or
1. Stopping Grid Control and All Its Components 1. stop OMS service [oracle @ ocm2 oms10g] $ cd/u01/app/oracle/OracleHomes/oms10g/bin/[oracle @ ocm2 bin] $. /emctl stop oms Oracle Enterprise Manager 10g Release 10.2.0.1.0 Copyright (c) 1996,200 5 Or
1. Stopping Grid Control and All Its Components
1. stop OMS service [oracle @ ocm2 oms10g] $ cd/u01/app/oracle/OracleHomes/oms10g/bin/[oracle @ ocm2 bin] $. /emctl stop oms Oracle Enterprise Manager 10g Release 10.2.0.1.0 Copyright (c) 1996,200 5 Oracle Corporation. all rights reserved. oracle Management Server is Down. [oracle @ ocm2 bin] $ 2. stop Application Server Control Console [oracle @ ocm2 bin] $./emctl stop iasconsole Oracle Enterprise Manager 10g Release 10.2.0.1.0 Copyright (c) 1996,200 5 Oracle Corporation. All rights reserved.
Stopping Oracle 10g Application Server Control... Stopped. [oracle @ ocm2 bin] $ 3. switch the directory to OPMN and stop Application Server components [oracle @ ocm2 oms10g] $ cd opmn/[oracle @ ocm2 opmn] $ cd bin/[oracle @ ocm2 bin] $ pwd/u01/ app/oracle/OracleHomes/oms10g/opmn/bin [oracle @ ocm2 bin] $. /opmnctl stopall opmnctl: stopping opmn and all managed processes... [oracle @ ocm2 bin] $ 4. Switch the Directory and stop the agent
[Oracle @ ocm2 bin] $ pwd/u01/app/oracle/OracleHomes/agent10g/bin [oracle @ ocm2 bin] $. /emctl stop agent Oracle Enterprise Manager 10g Release 10.2.0.1.0. copyright (c) 1996,200 5 Oracle Corporation. all rights reserved. stopping agent... stopped. [oracle @ ocm2 bin] $ 5. Stop the Repository database [oracle @ ocm2 bin] $ sqlplus "/as sysdba"
SQL * Plus: Release 10.2.0.2.0-Production on Tue Jul 22 18:15:48 2014
Copyright (c) 1982,200 5, Oracle. All Rights Reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0-Production With the Partitioning, Oracle Label Security, OLAP and Data Mining options
SYS @ EMREP> shutdown immediate Database closed. database dismounted. ORACLE instance shut down. SYS @ EMREP> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0-Production With the Partitioning, Oracle Label Security, OLAP and Data Mining options [oracle @ ocm2 bin] $ 6. stop the Repository Database Listener [oracle @ ocm2 bin] $ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.2.0-Production on 22-JUL-2014 18:17:53
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ocm2.localdomain) (PORT = 1521) The command completed successfully [oracle @ ocm2 bin] $ Stop
2. Starting Grid Control and All Its Components
1. start the listener and database corresponding to the Repository database (note SID) [oracle @ ocm2 bin] $ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.2.0-Production on 22-JUL-2014 18:20:06
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Starting/u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.2.0-Production System parameter file is/u01/app/oracle/product/10.2.0/db_1/network/admin/listener. ora Log messages written to/u01/app/oracle/product/10.2.0/db_1/network/log/listener. log Listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = ocm2.localdomain) (PORT = 1521) Listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC0 )))
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ocm2.localdomain) (PORT = 1521) STATUS of the LISTENER ---------------------- Alias LISTENER Version TNSLSNR for Linux: version 10.2.0.2.0-Production Start Date 22-JUL-2014 18:20:06 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File/u01/app/oracle/product/10.2.0/db_1/network/admin/listener. ora Listener Log File/u01/app/oracle/product/10.2.0/db_1/network/log/listener. log Listening Endpoints Summary... (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = ocm2.localdomain) (PORT = 1521) (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC0) Services Summary... service "PLSExtProc" has 1 instance (s ). instance "PLSExtProc", status UNKNOWN, has 1 handler (s) for this service... the command completed successfully [oracle @ ocm2 bin] $ sqlplus "/as sysdba"
SQL * Plus: Release 10.2.0.2.0-Production on Tue Jul 22 18:20:30 2014
Copyright (c) 1982,200 5, Oracle. All Rights Reserved.
Connected to an idle instance.
SYS @ EMREP> startup ORACLE instance started.
Total System Global Area 285212672 bytes Fixed Size 1260420 bytes Variable Size 125830268 bytes Database Buffers 155189248 bytes Redo Buffers 2932736 bytes Database mounted. database opened. SYS @ EMREP> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0-Production With the Partitioning, Oracle Label Security, OLAP and Data Mining options [oracle @ ocm2 bin] $ 2. switch the path and start OMS [oracle @ ocm2 bin] $ cd/u01/app/oracle/OracleHomes/oms10g/bin/[oracle @ ocm2 bin] $ pwd/u01/app/oracle /OracleHomes/oms10g/bin [oracle @ ocm2 bin] $. /emctl start oms Oracle Enterprise Manager 10g Release 10.2.0.1.0 Copyright (c) 1996,200 5 Oracle Corporation. all rights reserved. opmnctl: opmn started Starting HTTP Server... starting Oracle Management Server... checking Oracle Management Server Status... oracle Management Server is Up. [oracle @ ocm2 bin] $ 3. start OracleAS Web Cache [oracle @ ocm2 bin] $ pwd/u01/app/oracle/OracleHomes/oms10g/opmn/bin [oracle @ ocm2 bin] $. /opmnctl status
Processes in Instance: EnterpriseManager0.ocm2. localdomain alias + -------------------- + --------- ias-component | process-type | pid | status indication + -------------------- + --------- DSA | N/A | Down HTTP_Server | 17072 | Alive LogLoader | logloaderd | N/A | Down dcm-daemon | 17039 | Alive productname | home | N/A | Down productname | OC4J_EMPROV | N/A | Down productname | OC4J_EM | 17116 | Alive WebCache | N/A | Down WebCache | WebCacheAdmin | N/A | Down
[Oracle @ ocm2 bin] $./opmnctl startproc ias-component = WebCache opmnctl: starting opmn managed processes... [oracle @ ocm2 bin] $./opmnctl status
Processes in Instance: EnterpriseManager0.ocm2. localdomain alias + -------------------- + --------- ias-component | process-type | pid | status indication + -------------------- + --------- DSA | N/A | Down HTTP_Server | 17072 | Alive LogLoader | logloaderd | N/A | Down dcm-daemon | 17039 | Alive productname | home | N/A | Down productname | OC4J_EMPROV | N/A | Down productname | OC4J_EM | 17116 | Alive WebCache | 17205 |
AliveWebCache | WebCacheAdmin | 17197 |
Alive
[Oracle @ ocm2 bin] $ 4. Switch the path and start the agent
[Oracle @ ocm2 bin] $ pwd/u01/app/oracle/OracleHomes/agent10g/bin [oracle @ ocm2 bin] $. /emctl start agent Oracle Enterprise Manager 10g Release 10.2.0.1.0. copyright (c) 1996,200 5 Oracle Corporation. all rights reserved. starting agent ..... started. [oracle @ ocm2 bin] $ Finally, confirm that ias-component has all started [oracle @ ocm2 bin] $ cd/u01/app/oracle/OracleHomes/oms10g/opmn/bin/[oracle @ ocm2 bin] $. /opmnctl status
Processes in Instance: EnterpriseManager0.ocm2. localdomain alias + -------------------- + --------- ias-component | process-type | pid | status indication + -------------------- + --------- DSA | N/A | Down HTTP_Server | 17072 | Alive LogLoader | logloaderd | N/A | Down dcm-daemon | 17039 | Alive productname | home | N/A | Down productname | OC4J_EMPROV | N/A | Down productname | OC4J_EM | 17116 | Alive WebCache | 17205 | Alive WebCache | WebCacheAdmin | 17197 | Alive
[Oracle @ ocm2 bin] $. /opmnctl startproc ias-component = DSA opmnctl: starting opmn managed processes... [oracle @ ocm2 bin] $. /opmnctl startproc ias-component = LogLoader opmnctl: starting opmn managed processes... [oracle @ ocm2 bin] $. /opmnctl startproc ias-component = productname opmnctl: starting opmn managed processes... [oracle @ ocm2 bin] $. /opmnctl status
Processes in Instance: EnterpriseManager0.ocm2. localdomain alias + -------------------- + --------- ias-component | process-type | pid | status indication + ---------------------- + --------- DSA | 18173 | Alive HTTP_Server | 17072 | logLoader | logloaderd | 18197 | Alive dcm-daemon | 17039 | Alive productname | home | 18326 | Alive productname | OC4J_EMPROV | 18324 | Alive productname | OC4J_EM | 17116 | Alive WebCache | WebCache | 17205 | Alive WebCache | WebCacheAdmin | 17197 | Alive
[Oracle @ ocm2 bin] $