Oracle12cClusterHealthMonitor详解(二)

2015-01-23 22:14:32 · 作者: · 浏览: 9
tempting to start 'ora.crf' on 'rac1' CRS-2676: Start of 'ora.crf' on 'rac1'succeeded [root@rac1 ~]# crsctl stat res -t -init -------------------------------------------------------------------------------- Name Target State Server Statedetails -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.asm 1 ONLINE ONLINE rac1 Started,STABLE ora.cluster_interconnect.haip 1 ONLINE ONLINE rac1 STABLE ora.crf 1 ONLINE ONLINE rac1 STABLE ora.crsd 1 ONLINE ONLINE rac1 STABLE

我们对CHM 资源的启动和停止,只影响是否手机CHM的数据,不会对GI和DB 产生影响。

2.2 CHM 的管理工具和命令

Oracle 的CHM也有自己专用的管理工具和命令。

2.2.1 CHMOSG工具

图形化的管理工具是CHMOSG(CHM/OSGraphical User Interface),默认没有安装,需要单独从OTN上下载。

?

CHMOSG 工具会已图形化的方式详细的展示相关数据。

?

\

?

具体的安装和使用参考官网的说明:

下载地址:

www.oracle.com/technetwork/products/clusterware/downloads/chm-os-ui-1554902.zip

2.2.2 oclumon 命令行工具

OCLUMON 命令行工具可以查询CHM仓库的相关信息。

如果是在安装GI时安装的,oclumon工具默认在$GI_HOME/bin下。 如:

[grid@rac1 ~]$ whichoclumon

/u01/gridsoft/12.1.0.2/bin/oclumon

如果是手工从OTN 上下载的,linux在/usr/lib/oracrf/bin 目录,Windows在C:\ProgramFiles\oracrf\bin目录。

具体命令使用参考命令帮助:

[grid@rac1 ~]$ oclumon -h

For help from command line : oclumon  -h

For help in interactive mode : -h

Currently supported verbs are :

dumpnodeview, manage, version, debug,analyze, quit, exit, and help



[grid@rac1 ~]$ oclumon dumpnodeview -h



dumpnodeview verb usage

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

The dumpnodeview command reports monitoredrecords in the text format. The

collection of metrics for a node at a givenpoint in time (a timestamp) is

called a node view.



* Usage

dumpnodeview [-allnodes | -n  ...] [-last |

-s  -e][-i ][-v]



*Where

-n ... = Dump node views forspecified nodes

-allnodes = Dump node viewsfor all nodes

-s = Specify start timefor range dump of node views

-e  = Specify end time for range dump of nodeviews

Absolute timestamp must bein "YYYY-MM-DD HH24:MI:SS"

format, for example"2007-11-12 23:05:00"

-last  = Dump the latest node views for a specifiedduration.

Duration must be in"HH24:MI:SS" format, for example

"00:45:00"

-v = Dump verbosenode views

-i = Dump node viewsseparated by the specified

interval in seconds. Mustbe a multiple of 5.



*Requirements and notes

Tostop continuous display, use Ctrl-C on Linux or UNIX and Esc on Windows.

-sand -e need to be specified together for range dumps of node views.

Thelocal System Monitor Service (osysmond) must be running to get dumps.

TheCluster Logger Service (ologgerd) must be running to get dumps.



*Defaults :

Mode : Continuous mode



*Example :

oclumon dumpnodeview -n node1 node2 node3 -last "12:00:00"

oclumon dumpnodeview -last "00:10:00" -i 30



[grid@rac1 ~]$

3 分析CHM 监控数据

?

所谓的分析,就是从CHM 仓库中,把我们需要的数据抽取出来,这里需要使用diagcollection.pl命令。

?

[grid@rac1 ~]$ diagcollection.pl -h

Production Copyright 2004, 2010,Oracle. All rights reserved

Cluster Ready Services (CRS) diagnosticcollection tool

diagcollection

--collect

[--crs] For collecting crs diagnostic information

[--adr] For collecting diagnostic information for ADR; specify ADRlocation

[-