一、Stopping Grid Control and All Its Components

1.停止OMS服务
[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, 2005 Oracle Corporation.  All rights reserved.
Oracle Management Server is Down.
[oracle@ocm2 bin]$ 

2.停止Application Server Control Console
[oracle@ocm2 bin]$ ./emctl stop iasconsole
Oracle 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 stopall
opmnctl: 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 agent
Oracle 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 - 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.停止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 - 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, 2005, 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.切换路径并启动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, 2005 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.切换路径启动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=WebCache
opmnctl: 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 agent
Oracle 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=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=OC4J
opmnctl: 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]$ 
 










10.2.0.1.1 grid control的启动和关闭的更多相关文章

  1. IEEEXtreme 10.0 - Always Be In Control

    这是 meelo 原创的 IEEEXtreme极限编程大赛题解 Xtreme 10.0 - Always Be In Control 题目来源 第10届IEEE极限编程大赛 https://www.h ...

  2. grid control 11.1.0.1 安装指南

    grid control 11.1.0.1 安装指南 废话少说,进入正题 系统版本号 [root@gridcontrol ~]# lsb_release -a LSB Version:    :bas ...

  3. MFC Grid control 2.27

    原文链接地址:http://www.codeproject.com/Articles/8/MFC-Grid-control MFCGridCtrl是个强大的类,用于数据的表格显示. 1.类特征 Cel ...

  4. Oracle Grid control 11g及Active DataGuard 11g安装部署

    Oracle Grid control 11g及Active DataGuard 11g安装部署(一) 原贴 http://blog.csdn.net/lichangzai/article/detai ...

  5. OEM无法启动:oracle/product/10.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl not found.

    配置OEM环境变量 ORACLE_UNQNAME=$ORACLE_SID 要想打开OEM的web管理程序,必须先启动Database listener,再启动Datebase Control端口监控程 ...

  6. 转 11g Grid Control: Overview of the EMCTL Options Available for Managing the Agent

    1.概念: The Enterprise Manager DBConsole consists of the following components: - A Standalone OC4J Man ...

  7. CENTOS 6.4 安装oracle 10g,手工建库及升级到10.2.0.5

    一. 数据库软件安装 参照官方手册 1.安装rpm包 注这里的yum直接用163的yum yum -y install binutils compat-libstdc++-33 compat-libs ...

  8. RAC分解步骤之一,在oracle linux 4u4上安装oracle 10.2.0.1.0操作日志

    练习oracle的rac组建过程,第一步,先练习4u4上安装oracle 10.2.0.1.0.直接安装rac,有些难度.从简单的做起.总RAC步骤,参照小布老师的RAC组建. 1. 启动vc,登陆v ...

  9. 将MFC Grid control封装为DLL的做法及其在DLL中的使用方法

    MFCGrid control是一款非常优秀的网格控件,支持非常丰富的界面元素,如下图: 因而在数据库程序及报表程序应用较为广泛,其源码可以在下面下载到: MFC Grid control2.27源码 ...

随机推荐

  1. 使用Spring IoC进行Bean装配

    Spring概述 Spring的设计严格遵从的OCP(开闭原则),保证对修改的关闭,也就是外部无法改变spring内部的运行流程:提供灵活的扩展接口,也就是可以通过extends,implements ...

  2. Linux CentOS 知识和常用命令

    1.常用热键 [Tab]它具有“命令补全”与“文件补全”的功能[Ctrl+C]中断执行中的程序组合键[Ctrl+d]键盘输入结束.也可以用来替代 exit 2.Linux 常用编辑器 vi 和 vim ...

  3. 4. InnoDB表单独表空间

    4. InnoDB表单独表空间 从历史上看,所有InnoDB表和索引都存储在系统表空间中.这种单片方法的目标是完全专用于数据库处理的机器,精心规划的数据增长,其中任何分配给MySQL的磁盘存储都不会用 ...

  4. [MVC]Ajax辅助方法

    在开始使用Ajax辅助方法前,必须在页面中载入jQuery以及jquery.unobtrusive-ajax.js文件才能正常执行. 为了让网站载入适当的JS函数库,必须先让Layout页面载入适当的 ...

  5. windows操作笔记

    使用服务或其他windows应用的过程中,可能会遇到莫名其妙的错误,这时候从控制面板中,找到管理工具,打开事件查看器,或者通过计算机管理,找到日志中的记录,如果是代码错误,会给出提示信息,比如之前在写 ...

  6. 如何在开发时用PC端对移动端页面进行调试

    原文转载于:https://cnodejs.org/topic/56ebdf2db705742136388f71 项目名称: spy-debugger 项目地址:https://github.com/ ...

  7. linux中的vi命令

    linux的重要的几个命令如下: ①,光标的操作 1,gg,G,nG,:n gg移到文档的开头一行,G移动到最后一行,nG移动到第n行,到指定的行. 2,H,M,L 光标分别移动到这个界面的最上边,中 ...

  8. poj2891 Strange Way to Express Integers poj1006 Biorhythms 同余方程组

    怎样求同余方程组?如: \[\begin{cases} x \equiv a_1 \pmod {m_1} \\ x \equiv a_2 \pmod {m_2} \\ \cdots \\ x \equ ...

  9. Struts2的Action配置的各项默认值

    1 如果没有为action指定class,默认是ActionSupport 2 如果没有为action指定method,默认执行action中的execute()方法 3 如果没有指定result的n ...

  10. POJ1703-Find them, Catch them 并查集构造

                                             Find them, Catch them 好久没有做并查集的题,竟然快把并查集忘完了. 题意:大致是有两个监狱,n个 ...