设为首页 收藏本站
查看: 1260|回复: 0

[经验分享] 10.2.0.1.1 grid control的启动和关闭

[复制链接]
累计签到:15 天
连续签到:1 天
发表于 2015-11-9 12:57:02 | 显示全部楼层 |阅读模式
一、Stopping Grid Control and All Its Components
1.停止OMS服务[oracle@ocm2 oms10g]$ cd /u01/app/oracle/OracleHomes/oms10g/bin/[oracle@ocm2 bin]$ ./emctl stop omsOracle Enterprise Manager 10g Release 10.2.0.1.0  Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.Oracle Management Server is Down.[oracle@ocm2 bin]$ 2.停止Application Server Control Console[oracle@ocm2 bin]$ ./emctl stop iasconsoleOracle Enterprise Manager 10g Release 10.2.0.1.0  Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
Stopping Oracle 10g Application Server Control ...  ...  Stopped. [oracle@ocm2 bin]$ 3.切换目录至OPMN并停止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 stopallopmnctl: stopping opmn and all managed processes...[oracle@ocm2 bin]$ 4.切换目录并停止agent
[oracle@ocm2 bin]$ pwd/u01/app/oracle/OracleHomes/agent10g/bin[oracle@ocm2 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.[oracle@ocm2 bin]$ 5.停止Repository数据库[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, 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[oracle@ocm2 bin]$ 6.停止Repository数据库监听程序[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, 2005, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ocm2.localdomain)(PORT=1521)))The command completed successfully[oracle@ocm2 bin]$ 停止结束


二、Starting Grid Control and All Its Components
1.启动Repository数据库对应的监听程序和数据库(注意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, 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[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, 2005, Oracle.  All Rights Reserved.
Connected to an idle instance.
SYS@EMREP> startupORACLE instance started.
Total System Global Area  285212672 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[oracle@ocm2 bin]$ 2.切换路径并启动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 omsOracle Enterprise Manager 10g Release 10.2.0.1.0  Copyright (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.[oracle@ocm2 bin]$ 3.切换路径启动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-------------------+--------------------+---------+---------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   
[oracle@ocm2 bin]$ ./opmnctl startproc ias-component=WebCacheopmnctl: starting opmn managed processes...[oracle@ocm2 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   
[oracle@ocm2 bin]$4.切换路径并启动agent
[oracle@ocm2 bin]$ pwd/u01/app/oracle/OracleHomes/agent10g/bin[oracle@ocm2 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.[oracle@ocm2 bin]$最后确认ias-component全部已经启动[oracle@ocm2 bin]$ cd /u01/app/oracle/OracleHomes/oms10g/opmn/bin/[oracle@ocm2 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   
[oracle@ocm2 bin]$ ./opmnctl startproc ias-component=DSAopmnctl: starting opmn managed processes...[oracle@ocm2 bin]$  ./opmnctl startproc ias-component=LogLoaderopmnctl: starting opmn managed processes...[oracle@ocm2 bin]$ ./opmnctl startproc ias-component=OC4Jopmnctl: starting opmn managed processes...[oracle@ocm2 bin]$ ./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   
[oracle@ocm2 bin]$  









         版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-137055-1-1.html 上篇帖子: oracle11.2.0.3中ORACLE_OCM用户报错12012和29280错误的解决 下篇帖子: 10g OCM考试大纲 (英文版)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表