疯狂小鸡/ty 发表于 2015-11-9 12:57:02

10.2.0.1.1 grid control的启动和关闭

一、Stopping Grid Control and All Its Components
1.停止OMS服务$ cd /u01/app/oracle/OracleHomes/oms10g/bin/$ ./emctl stop omsOracle Enterprise Manager 10g Release 10.2.0.1.0Copyright (c) 1996, 2005 Oracle Corporation.All rights reserved.Oracle Management Server is Down.$ 2.停止Application Server Control Console$ ./emctl stop iasconsoleOracle Enterprise Manager 10g Release 10.2.0.1.0Copyright (c) 1996, 2005 Oracle Corporation.All rights reserved.
Stopping Oracle 10g Application Server Control ......Stopped. $ 3.切换目录至OPMN并停止Application Server components$ cd opmn/$ cd bin/$ pwd/u01/app/oracle/OracleHomes/oms10g/opmn/bin$ ./opmnctl stopallopmnctl: stopping opmn and all managed processes...$ 4.切换目录并停止agent
$ pwd/u01/app/oracle/OracleHomes/agent10g/bin$ ./emctl stop agentOracle Enterprise Manager 10g Release 10.2.0.1.0.Copyright (c) 1996, 2005 Oracle Corporation.All rights reserved.Stopping agent ... stopped.$ 5.停止Repository数据库$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Jul 22 18:15:48 2014
Copyright (c) 1982, 2005, Oracle.All Rights Reserved.

Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - ProductionWith the Partitioning, Oracle Label Security, OLAP and Data Mining options
SYS@EMREP> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SYS@EMREP> exitDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - ProductionWith the Partitioning, Oracle Label Security, OLAP and Data Mining options$ 6.停止Repository数据库监听程序$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 22-JUL-2014 18:17:53
Copyright (c) 1991, 2005, Oracle.All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ocm2.localdomain)(PORT=1521)))The command completed successfully$ 停止结束


二、Starting Grid Control and All Its Components
1.启动Repository数据库对应的监听程序和数据库(注意SID)$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 22-JUL-2014 18:20:06
Copyright (c) 1991, 2005, 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 - ProductionSystem parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.oraLog messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.logListening 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                     LISTENERVersion                   TNSLSNR for Linux: Version 10.2.0.2.0 - ProductionStart Date                22-JUL-2014 18:20:06Uptime                  0 days 0 hr. 0 min. 0 secTrace Level               offSecurity                  ON: Local OS AuthenticationSNMP                      OFFListener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.oraListener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.logListening 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$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Jul 22 18:20:30 2014
Copyright (c) 1982, 2005, Oracle.All Rights Reserved.
Connected to an idle instance.
SYS@EMREP> startupORACLE instance started.
Total System Global Area285212672 bytesFixed Size                  1260420 bytesVariable Size             125830268 bytesDatabase Buffers          155189248 bytesRedo Buffers                2932736 bytesDatabase mounted.Database opened.SYS@EMREP> exitDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - ProductionWith the Partitioning, Oracle Label Security, OLAP and Data Mining options$ 2.切换路径并启动OMS$ cd /u01/app/oracle/OracleHomes/oms10g/bin/$ pwd/u01/app/oracle/OracleHomes/oms10g/bin$ ./emctl start omsOracle Enterprise Manager 10g Release 10.2.0.1.0Copyright (c) 1996, 2005 Oracle Corporation.All rights reserved.opmnctl: opmn startedStarting HTTP Server ...Starting Oracle Management Server ...Checking Oracle Management Server Status ...Oracle Management Server is Up.$ 3.切换路径启动OracleAS Web Cache$ pwd/u01/app/oracle/OracleHomes/oms10g/opmn/bin$ ./opmnctl status
Processes in Instance: EnterpriseManager0.ocm2.localdomain-------------------+--------------------+---------+---------ias-component      | process-type       |   pid | status-------------------+--------------------+---------+---------DSA                | DSA                |   N/A | Down    HTTP_Server      | HTTP_Server      |   17072 | Alive   LogLoader          | logloaderd         |   N/A | Down    dcm-daemon         | dcm-daemon         |   17039 | Alive   OC4J               | home               |   N/A | Down    OC4J               | OC4J_EMPROV      |   N/A | Down    OC4J               | OC4J_EM            |   17116 | Alive   WebCache         | WebCache         |   N/A | Down    WebCache         | WebCacheAdmin      |   N/A | Down   
$ ./opmnctl startproc ias-component=WebCacheopmnctl: starting opmn managed processes...$ ./opmnctl status
Processes in Instance: EnterpriseManager0.ocm2.localdomain-------------------+--------------------+---------+---------ias-component      | process-type       |   pid | status-------------------+--------------------+---------+---------DSA                   | DSA                |   N/A | Down    HTTP_Server      | HTTP_Server      |   17072 | Alive   LogLoader          | logloaderd         |   N/A | Down    dcm-daemon         | dcm-daemon         |   17039 | Alive   OC4J               | home               |   N/A | Down    OC4J               | OC4J_EMPROV      |   N/A | Down    OC4J               | OC4J_EM            |   17116 | Alive   WebCache         | WebCache         |   17205 | Alive   WebCache         | WebCacheAdmin      |   17197 | Alive
$4.切换路径并启动agent
$ pwd/u01/app/oracle/OracleHomes/agent10g/bin$ ./emctl start agentOracle Enterprise Manager 10g Release 10.2.0.1.0. Copyright (c) 1996, 2005 Oracle Corporation.All rights reserved.Starting agent ..... started.$最后确认ias-component全部已经启动$ cd /u01/app/oracle/OracleHomes/oms10g/opmn/bin/$ ./opmnctl status
Processes in Instance: EnterpriseManager0.ocm2.localdomain-------------------+--------------------+---------+---------ias-component      | process-type       |   pid | status-------------------+--------------------+---------+---------DSA                | DSA                |   N/A | Down    HTTP_Server      | HTTP_Server      |   17072 | Alive   LogLoader          | logloaderd         |   N/A | Down    dcm-daemon         | dcm-daemon         |   17039 | Alive   OC4J               | home               |   N/A | Down    OC4J               | OC4J_EMPROV      |   N/A | Down    OC4J               | OC4J_EM            |   17116 | Alive   WebCache         | WebCache         |   17205 | Alive   WebCache         | WebCacheAdmin      |   17197 | Alive   
$ ./opmnctl startproc ias-component=DSAopmnctl: starting opmn managed processes...$./opmnctl startproc ias-component=LogLoaderopmnctl: starting opmn managed processes...$ ./opmnctl startproc ias-component=OC4Jopmnctl: starting opmn managed processes...$ ./opmnctl status
Processes in Instance: EnterpriseManager0.ocm2.localdomain-------------------+--------------------+---------+---------ias-component      | process-type       |   pid | status-------------------+--------------------+---------+---------DSA                | DSA                |   18173 | Alive   HTTP_Server      | HTTP_Server      |   17072 | Alive   LogLoader          | logloaderd         |   18197 | Alive   dcm-daemon         | dcm-daemon         |   17039 | Alive   OC4J               | home               |   18326 | Alive   OC4J               | OC4J_EMPROV      |   18324 | Alive   OC4J               | OC4J_EM            |   17116 | Alive   WebCache         | WebCache         |   17205 | Alive   WebCache         | WebCacheAdmin      |   17197 | Alive   
$









         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: 10.2.0.1.1 grid control的启动和关闭