博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Solaris 下使用Os Watcher 监控Oracle
阅读量:7210 次
发布时间:2019-06-29

本文共 3219 字,大约阅读时间需要 10 分钟。

在Solaris 下使用Os Watcher

 

系统环境:Solaris 10

 DB环境: Oracle 10g
 
1、安装
 
[oracle@sun soft]$ls
bind-9.7.4-P1                         named.root.txt                        samba-3.4.2-sol10-sparc-local.gz
bind-9.7.4p1.tar                      openldap-2.4.24-sol10-sparc-local.gz sasl-2.1.21-sol10-sparc-local.gz
expat-2.0.1-sol10-sparc-local.gz      openssl-1.0.0d-sol10-sparc-local.gz   sun
gcc-3.4.6-sol10-sparc-local.gz        oswbb                                 sun.tar
libgcc-3.4.6-sol10-sparc-local.gz     oswbb4.0.tar                          top-3.6.1.tar
libiconv-1.11.tar.gz                  raw.txt                               x86
libiconv-1.13.1-sol10-sparc-local.gz rlwrap-0.30.tar                       zlib-1.2.5-sol10-sparc-local.gz
[oracle@sun soft]$tar xvf oswbb4.0.tar
--------只需要解压即可,不需要安装
 
2、使用
 
----------------启动oswatcher
 
[oracle@sun oswbb]$vi OSWatcher.sh
 
typeset -i cpu_count=1                       //设置cpu的个数为1
 
[oracle@sun oswbb]$./startOSWbb.sh  
(可以在后面跟连个参数 :$1 :采样的间隔时间(s);$2:存储数据的保留时间(hour),如不指定默认的为30,48)
[oracle@sun oswbb]$
Info...You did not enter a value for snapshotInterval.
Info...Using default value = 30
Info...You did not enter a value for archiveInterval.
Info...Using default value = 48
 
Testing for discovery of OS Utilities...
VMSTAT found on your system.
IOSTAT found on your system.
MPSTAT found on your system.
NETSTAT found on your system.
TOP found on your system.
 
Maunal override of CPU COUNT in effect
CPU COUNT = 1
 
Discovery completed.
 
Starting OSWatcher Black Box v4.0   on Tuesday, April 24, 2012 05:54:05 PM CST
With SnapshotInterval = 30
With ArchiveInterval = 48
 
OSWatcher Black Box - Written by Carl Davis, Center of Expertise, Oracle Corporation
For questions on install/usage please go to MOS (Note:301137.1)
If you need further assistance or have comments or enhancement
requests you can email me Carl.Davis@Oracle.com
 
Starting Data Collection...
 
oswbb heartbeat:Tuesday, April 24, 2012 05:54:10 PM CST
 
 
2、启动图形监控
 
----------测试java (一般安装oracle数据库后,会安装java环境)
 
[oracle@sun ~]$java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)
[oracle@sun ~]$
 
----------启动图形
 
[oracle@sun oswbb]$java -jar oswbba.jar -i /export/home/oracle/soft/oswbb/archive
 
Starting OSW Black Box Analyzer V4.0
OSWatcher Black Box Analyzer Written by Oracle Center of Expertise
Copyright (c) 2012 by Oracle Corporation
 
Parsing Data. Please Wait...
 
Parsing file sun_iostat_12.04.24.1700.dat ...
Invalid data found on line 551
Invalid data found on line 640
Invalid data found on line 707
Invalid data found on line 774
 
Parsing file sun_vmstat_12.04.24.1700.dat ...
 
Parsing file sun_top_12.04.24.1700.dat ...
 
Parsing Completed.
 
Enter 1 to Display CPU Process Queue Graphs
Enter 2 to Display CPU Utilization Graphs
Enter 3 to Display CPU Other Graphs
Enter 4 to Display Memory Graphs
Enter 5 to Display Disk IO Graphs
 
Enter 6 to Generate All CPU Gif Files
Enter 7 to Generate All Memory Gif Files
Enter 8 to Generate All Disk Gif Files
 
Enter L to Specify Alternate Location of Gif Directory
Enter T to Specify Different Time Scale
Enter D to Return to Default Time Scale
Enter R to Remove Currently Displayed Graphs
Enter P to Generate A Profile
Enter A to Analyze Data
Enter Q to Quit Program
 
Please Select an Option:
 
如下图所示:

3、停止oswatcher

 

[oracle@sun oswbb]$./stopOSWbb.sh

本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/843375,如需转载请自行联系原作者
你可能感兴趣的文章
《Linux内核设计与实现》读书笔记(十九)- 可移植性
查看>>
都是假期惹的祸,该如何安慰自己?
查看>>
从零开始学JavaScript二(基本概念)
查看>>
Android AlarmManager(全局定时器/闹钟)指定时长或以周期形式执行某项操作
查看>>
js中的var
查看>>
年终知识分享——移动应用开发
查看>>
Centos 5.5 安装Mysql5.5过程
查看>>
网络爬虫基本原理(二)
查看>>
AndroidUI组件之ListView小技巧
查看>>
使用ThinkPHP框架高速开发站点(多图)
查看>>
解决iframe缓存
查看>>
mysql事物
查看>>
微软开源代码
查看>>
ssh 实体关系分析确立(ER图-实体关系图)
查看>>
shell语法简单介绍
查看>>
iOS捕获异常,常用的异常处理方法
查看>>
Struts2(九)OGNL标签一与Struts2标签
查看>>
双网卡绑定-bond0
查看>>
利用扩展事件进行调优和Troubleshooting PPT分享
查看>>
finger-guessing game:1场景搭建
查看>>