[20161229]linux下使用oclumon命令(rac)
[20161229]linux下使用oclumon命令(rac).txt
--11G RAC下grid 存在一个命令oclumon可以了解监测群集健康.简单了解一下.
1.环境:
SYS@+ASM1> select * from v$version where rownum<=1;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
$ oclumon version
Cluster Health Monitor (OS), Version 11.2.0.4.0 - Production Copyright 2011 Oracle. All rights reserved.
-//真不知道为什么这样命名这个命令, o表示oracle,clu表示cluster. mon表示monitor.我的理解不知道是否正确.
2.测试与学习:
$ oclumon -h
For help from command line : oclumon <verb> -h
For help in interactive mode : <verb> -h
Currently supported verbs are :
showobjects, dumpnodeview, manage, version, debug, quit, exit, and help
--//这里verb我开始理解错误,以为是版本,实际上表示动词或者动作的意思.也就是你要看某个命令打入 oclumon showobjects -h.
$ oclumon version
Cluster Health Monitor (OS), Version 11.2.0.4.0 - Production Copyright 2011 Oracle. All rights reserved.
$ oclumon showobjects
Following nodes are attached to the loggerd
dm01dbadm01
dm01dbadm02
$ oclumon manage -h
MANAGE verb usage
=================
manage [[-repos {resize <time>|changesize <memsize>|reploc <new_loc> [[-maxtime <time>]|
[-maxspace <memsize>]] }]|[-get <key1> <key2>..]]
*Where
-repos = Required to specify Cluster Health Monitor repository related options
-get = Fetch manage information for one or more named keys
<key1> <key2>= <key> can be repsize, reppath, master, and replica
resize = Option for resizing Cluster Health Monitor repository
<time> = Size of Cluster Health Monitor repository in number of seconds
must be more than 3600 (1 hour) and less than 259200 (3 days)
changesize = Option for Change Cluster Health Monitor repository space limit
<memsize> = Size of Cluster Health Monitor repository in megabytes
reploc = Option for Change Repository Location
<new_loc> = Path to new directory e.g.: /opt/db
-maxtime = Option to specify Cluster Health Monitor repository size in terms of elapsed seconds of data capture for new location
-maxspace = Option to specify space limit for new Cluster Health Monitor repository location
*Requirements
The local system monitor service must be running to resize the Cluster Health Monitor repository.
The Cluster Logger Service must be running to resize Cluster Health Monitor repository.
*Example :
manage -get MASTER REPLICA
manage -repos resize 86400
manage -repos changesize 6000
manage -repos reploc /opt/oracrfdb
manage -repos reploc /opt/oracrfdb -maxtime 86400
manage -repos reploc /opt/oracrfdb -maxspace 6000
--//这个有点复杂,不敢乱用.语法怪怪的!!resize后面的应该是指时间长短. changesize后面的应该是大小.测试一下get什么意思..
-get = Fetch manage information for one or more named keys
<key1> <key2>= <key> can be repsize, reppath, master, and replica
--//仅仅支持后面4个参数repsize, reppath, master, and replica.看测试例子不区分大小写.
$ oclumon manage -get MASTER REPLICA
Master = dm01dbadm01
Replica = dm01dbadm02
Done
$ oclumon manage -get repsize reppath master replica
CHM Repository Path = /u01/app/11.2.0.4/grid/crf/db/dm01dbadm01
CHM Repository Size = 61511
Master = dm01dbadm01
Replica = dm01dbadm02
Done
--剩下dumpnodeview命令,推测应该是从CHM Repository Path = /u01/app/11.2.0.4/grid/crf/db/dm01dbadm01目录取信息.
$ cd /u01/app/11.2.0.4/grid/crf/db/dm01dbadm01
$ ls -l
total 254604
-rw-r--r-- 1 root root 1075900 2014-10-10 21:02:53 10-OCT-2014-21:02:53.txt
-rw-r--r-- 1 root root 1755175 2014-12-11 02:54:44 11-DEC-2014-02:54:44.txt
-rw-r--r-- 1 root root 1229318 2014-12-11 03:02:22 11-DEC-2014-03:02:22.txt
-rw-r--r-- 1 root root 2345265 2014-10-11 16:59:07 11-OCT-2014-16:59:07.txt
-rw-r--r-- 1 root root 1695640 2014-10-11 17:00:56 11-OCT-2014-17:00:56.txt
-rw-r--r-- 1 root root 1989345 2014-11-19 18:01:01 19-NOV-2014-18:01:01.txt
-rw-r--r-- 1 root root 1407927 2014-11-19 18:08:57 19-NOV-2014-18:08:57.txt
-rw-r----- 1 root root 7053312 2016-12-29 10:39:38 crfalert.bdb
-rw-r----- 1 root root 186449920 2016-12-29 10:39:38 crfclust.bdb
-rw-r----- 1 root root 8192 2014-12-11 03:02:22 crfconn.bdb
-rw-r----- 1 root root 11829248 2016-12-29 10:39:38 crfcpu.bdb
-rw-r----- 1 root root 5398528 2016-12-29 10:39:38 crfhosts.bdb
-rw-r----- 1 root root 4239360 2016-12-29 10:39:38 crfloclts.bdb
-rw-r----- 1 root root 5038080 2016-12-29 10:39:38 crfts.bdb
-rw-r----- 1 root root 24576 2014-12-11 02:54:43 __db.001
-rw-r----- 1 root root 401408 2016-12-29 10:40:23 __db.002
-rw-r----- 1 root root 2629632 2016-12-29 10:40:25 __db.003
-rw-r----- 1 root root 2162688 2016-12-29 10:40:25 __db.004
-rw-r----- 1 root root 1187840 2016-12-29 10:40:23 __db.005
-rw-r----- 1 root root 57344 2016-12-29 10:39:58 __db.006
-rw-r--r-- 1 root root 120000000 2016-12-29 10:08:26 dm01dbadm01.ldb
-rw-r----- 1 root root 16777216 2016-12-29 10:25:03 log.0000033985
-rw-r----- 1 root root 16777216 2016-12-29 10:39:38 log.0000033986
-rw-r----- 1 root root 8192 2014-12-11 02:54:43 repdhosts.bdb
--//视乎是一些类似数据库的信息.
$ oclumon dumpnodeview -h
dumpnodeview verb usage
=======================
The dumpnodeview command reports monitored records in the text format. The
collection of metrics for a node at a given point in time (a timestamp) is
called a node view.
* Usage
dumpnodeview [[-allnodes|-n <node1> ...] [-last <duration>|
-s <timestamp> -e <timestamp>][-v][-warning]]
*Where
-n <node1> ... = Dump node views for given nodes
-allnodes = Dump node views for all nodes
-s <timestamp> = Specify start time for range dump of node views
-e <timestamp> = Specify end time for range dump of node views
Absolute timestamp should be in "YYYY-MM-DD HH24:MI:SS"
format, for example "2007-11-12 23:05:00"
-warning = Print node views with warnings only
-last <duration> = Dump the latest node views for a specified duration
Duration should be in "HH24:MI:SS" format, for example
"00:45:00"
-v = Dump verbose node views
*Requirements and notes
To stop continuous display, use Ctrl-C on Linux or UNIX and Esc on Windows.
-s and -e need to be given together for range dumps of node views.
The local System Monitor Service (osysmond) should be running to get dumps.
The Cluster Logger Service (ologgerd) should be running to get dumps.
When -warning is used in continuous mode, the prompt waits until interrupted.
*Defaults :
Mode : Continuous mode
*Example :
oclumon dumpnodeview -n node1 node2 node3 -last "12:00:00"
$ oclumon dumpnodeview -n dm01dbadm01 dm01dbadm02 -last "12:00:00"
--输出1堆信息.
$ oclumon dumpnodeview -n dm01dbadm01 dm01dbadm02 -last "00:01:00" > aa.txt
.. //看不懂
3.可以支持交互模式.直接输入oclumon.
$ oclumon
query> version
Cluster Health Monitor (OS), Version 11.2.0.4.0 - Production Copyright 2011 Oracle. All rights reserved.
query> help
For help from command line : oclumon <verb> -h
For help in interactive mode : <verb> -h
Currently supported verbs are :
showobjects, dumpnodeview, manage, version, debug, quit, exit, and help
query> showobjects
Following nodes are attached to the loggerd
dm01dbadm01
dm01dbadm02
--//这个模式更上面区别不大.
4.补充oclumon showobjects:
]$ oclumon showobjects -h
showobjects verb usage
======================
showobjects [[-allnodes]|[-n <node> [[-disk]|[-proc]|[-nic]]]][-time <time> [-b <band>]]
*Where
-n = Show objects for given node
<node> = Node name for which objects need to be shown
-time = Time at which objects are required
<time> = Absolute time to be specified within quotes in
"YYYY-MM-DD HH24:MI:SS" format, like "2007-11-12 23:05:00"
-disk = To request list of disks
-nic = To request list of network interface cards
-proc = To request list of processes
-allnodes = Shows all the nodes which can be queried
-b = For specifying maximum look up around <time> in seconds
<band> = Size of band in seconds
*Requirements
Local System Monitor Service should be running to get objects.
Master loggerd should be running to get objects.
*Defaults :
Time : Current
Option : -allnodes
*Example :
showobjects -n stadn59 -disk -time "2008-02-20 02:01:48"
--//例子: -n 仅仅能输入1个节点,不能输入多个.后面的参数disk,nic,proc也是一样
$ oclumon showobjects -n dm01dbadm02 -disk -time '2016-12-29 10:00:00'
List of disks on dm01dbadm02
dm-3
dm-2
dm-1
dm-0
sda
sda3
sda2
sda1
$ oclumon showobjects -n dm01dbadm02 -nic -time '2016-12-29 10:00:00'
List of nics on dm01dbadm02
lo
eth0
eth3
ib0
ib1
bondeth0
$ oclumon showobjects -n dm01dbadm02 -proc -time '2016-12-29 10:00:00'
List of processes on dm01dbadm02
105939 oracledben2
20101 java
16733 osysmond.bin
106595 oracledben2
43515 top
23410 ora_lck0_dbcn2
14171 oracledben2
23223 ora_dia0_dbcn2
23205 ora_vktm_dbcn2
25557 ora_dia0_dben2
25541 ora_vktm_dben2
21219 asm_vktm_+ASM2
15234 oracledben2
40031 oracledben2
21988 tnslsnr
106125 oracledben2
23257 ora_lgwr_dbcn2
16815 ocssd.bin
16720 orarootagent.bi
23234 ora_lms1_dbcn2
23230 ora_lms0_dbcn2
22569 oraagent.bin
22020 tnslsnr
....
[20161229]linux下使用oclumon命令(rac)相关推荐
- Linux下视频截取命令
比如你有一个视频,然后你对其中某一段感兴趣,你想把他截取下来,并且不希望画面变差,(当然你也不想花钱买视频编辑软件),可以在Linux下使用如下命令: ffmpeg -ss 00:00:05 -t 0 ...
- linux命令输入错误怎么弄,Linux下用shopt命令来帮我们自动纠错输入cd 错误
下面是关于shopt命令的一些参数的用法 选项 含义 cdable_vars 如果给cd内置命令的参数不是一个目录,就假设它是一个变量名,变量的值是将要转换到的目录 cdspell 纠正cd命令中目录 ...
- linux查看设备内存代码,Linux下内存查看命令(示例代码)
在Linux下面,我们常用top命令来查看系统进程,top也能显示系统内存.我们常用的Linux下查看内容的专用工具是free命令. Linux下内存查看命令free详解: 在Linux下查看内存我们 ...
- linux下Vi编辑器命令大全
linux下Vi编辑器命令大全 /根目录下的文件夹 输入"/",回车 里面有很多文件夹,如:etc,home,lib,mnt等等 etc:存放用户名和密码 home:每个用户有个文 ...
- Linux下使用mail命令发送邮件
因为需要经常备份网站的数据,所以了解并学习了下linux下如何通过shell来发送邮件,这里以CentOS为例,使用mail命令来进行外部邮件的发送.mail命令的语法如下: Usage: mail ...
- 【Linux】5.linux下的export命令和环境变量
linux下的export命令和环境变量 linux中在 profile 或者 bashrc 或者其他类似的文件中设置环境变量时(比如PATH),如果没有export,那么只能在直接启动的shell中 ...
- |9 其他(linux特定的), 用来存放内核例行程序的文档.,Linux下的帮助命令
Linux下的帮助命令 一.内建命令与外部命令 内建命令实际上是 shell 程序的一部分,其中包含的是一些比较简单的 Linux 系统命令,这些命令是写在bash源码的builtins里面的,并由 ...
- 「SVN」Linux下svn使用命令
原文链接:https://blog.csdn.net/return9/article/details/89042359 Window下SVN安装以及使用 TortoiseSVN下载:https://w ...
- Linux下的FTP命令害死人
Binary模式不会对数据进行任何处理. Ascii模式会将回车换行转换为本机的回车字符. 做系统运维的记得长记性,在Linux下用ftp命令传输文件的时候,记得开启bin模式,要不然你的系统镜像会以 ...
最新文章
- 在CentOS 6.2上搭建vim开发环境
- Cell:重大突破!三位学术大咖,打造全新“DNA显微镜”
- 暮色森林模组_我的世界暮色森林mod全攻略,尤其是Boss击杀顺序,一定要牢记...
- Java 8 集合不完全一览
- html鼠标点击有手势出来,用原生js+css3撸的一个下拉手势事件插件
- Android recycleview使用详解,recycleview实现九宫格布局即横向排列,recycleview设置item占位数量大号item或小号item
- 浅析DDD(领域驱动设计)
- AD19无法生成PCB_对PCB印制线的传输线效应以及封装、连接器和电缆的频率响应进行全面分析...
- python执行原理是什么意思_简述Python程序的执行原理。
- 漫谈GUI开发—各种平台UI开发概况
- MVPArms官方首发一键生成组件化,体验纯傻瓜式组件化开发
- APUE代码运行环境的搭建
- 日记、2021/9/30
- 数据库 课程设计 仓库管理系统
- vim中使用color_coded为c/cpp文件配色
- postgresql 10 的并行(parallel)简介
- 扫描文档SDK ocr识别技术
- element ui table实现考勤排班表
- matplotlib plt.lengend
- SHT-31温湿度传感器资料整理