在Solaris 下使用Os Watcher 监控Oracle

简介:

在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,如需转载请自行联系原作者
目录
相关文章
|
1月前
|
弹性计算 监控 网络协议
ECS操作系统监控
ECS操作系统监控
16 2
|
6月前
|
存储 监控 Linux
《Linux操作系统编程》 第六章 Linux中的进程监控: fork函数的使用,以及父子进程间的关系,掌握exec系列函数
《Linux操作系统编程》 第六章 Linux中的进程监控: fork函数的使用,以及父子进程间的关系,掌握exec系列函数
95 0
|
11月前
|
SQL 存储 监控
使用AWR监控Oracle性能测试
这个 SQL 语句显示快照每小时采集一次,采集的数据保留 8天。要修改设置 – 例如,快照时间间隔为 30 分钟,保留时间为30天 ,可以发出以下命令。参数以分钟为单位。
|
11月前
|
SQL Prometheus 监控
意犹未尽的第2篇再次推出,继续讲解oracledb_exporter监控Oracle,一个入侵性极低的监控方案。
意犹未尽的第2篇再次推出,继续讲解oracledb_exporter监控Oracle,一个入侵性极低的监控方案。
338 0
|
11月前
|
Prometheus 监控 Oracle
oracledb_exporter监控Oracle,一个入侵性极低的监控方案。
oracledb_exporter监控Oracle,一个入侵性极低的监控方案。
619 0
|
SQL Oracle 关系型数据库
Oracle OS认证与密码文件认证(操作系统认证、口令文件认证、创建密码文件)
Oracle OS认证与密码文件认证(操作系统认证、口令文件认证、创建密码文件)
471 0
|
Oracle 关系型数据库 Linux
Oracle RAC:多路径配置Centos操作系统
Centos操作系统多路径配置
467 0
|
Oracle 关系型数据库 Windows
oracle学习29-检查操作系统版本和查询表中修改数据
oracle学习29-检查操作系统版本和查询表中修改数据
163 0
|
Oracle 关系型数据库 数据库
|
资源调度 运维 监控
LSF 集群全面监控!浅析 HPC 基于龙蜥操作系统的迁移替代解决方案
常青藤开源科技龙蜥社区完成基于龙蜥操作系统( Anolis OS )安装部署 HPCinsights 监控平台解决方案。
LSF 集群全面监控!浅析 HPC 基于龙蜥操作系统的迁移替代解决方案

推荐镜像

更多