[转帖]oracle OSWatcher安装部署
Oswatch是oracle官方提供,用于收集操作系统性能的小工具,oswatch的安装与使用也比较简单,直接解压就可以使用。oswatch是通过调用系统的命令完成信息的收集,如:ps ,top ,mpstat ,iostat,netstat ,traceroute vmstat 。支持的操作系统包括AIX,Solaris ,Linux等 。
1、解压oswbb软件到指定的目录
-
######这里我使用的是v8.4的版本,直接放到root目录下
-
[root@oracle19c ~]# tar xvf oswbb840.tar
-
oswbb/
-
oswbb/uncpr.bat
-
oswbb/sarsub.sh
-
oswbb/psmemsub.sh
-
oswbb/stopOSWbb.sh
-
oswbb/analysis/
-
oswbb/piddsub.sh
-
oswbb/arpsub.sh
-
oswbb/docs/
-
oswbb/docs/OSWatcher/
-
oswbb/docs/OSWatcher/oswbb_README.txt
2、安装jdk8.0以上版本,oswbba需要调用
-
#####解压jdk8.0版本到指定目录
-
[root@oracle19c archive]# tar xzvf jdk1.8.0_11.tar.gz
-
#####设置java home环境变量
-
vi .bash_profile
-
JAVA_HOME=/root/jdk1.8.0_11
-
PATH=$JAVA_HOME/bin:$HOME/bin
3、启动Oswatcher收集系统资源状态
-
######设置lang环境变量
-
[root@oracle19c oswbb]# export LANG=zh_US
-
[root@oracle19c oswbb]# date
-
Fri Aug 27 15:44:39 CST 2021
-
[root@oracle19c oswbb]#
-
#####示例:启动oswbb.sh 以5秒钟一次并删除1个小时前的归档数据,收集的数据存放在archive目录,默认1个小时进行归档
-
[root@oracle19c oswbb]# ./startOSWbb.sh 5 1 gzip /root/oswbb/archive/
-
[root@oracle19c oswbb]# Info...Zip option IS specified.
-
Info...OSW will use /root/oswbb/archive/ to compress files.
-
Setting the archive log directory to/root/oswbb/archive
-
Testing for discovery of OS Utilities...
-
VMSTAT found on your system.
-
IOSTAT found on your system.
-
MPSTAT found on your system.
-
IP found on your system.
-
TOP found on your system.
-
PIDSTAT found on your system.
-
NFSIOSTAT found on your system.
-
TRACEROUTE found on your system.
-
Discovery of CPU CORE COUNT
-
CPU CORE COUNT will be used by oswbba to automatically look for cpu problems
-
CPU CORE COUNT = 4
-
VCPUS/THREADS = 4
-
Discovery completed.
-
Starting OSWatcher v8.4.0 on Fri Aug 27 15:10:59 CST 2021
-
With SnapshotInterval = 5
-
With ArchiveInterval = 1
-
OSWatcher - Written by Carl Davis, Center of Expertise,
-
Oracle Corporation
-
For questions on install/usage please go to MOS (Note:301137.1)
-
Data is stored in directory: /root/oswbb/archive
-
Starting Data Collection...
-
oswbb heartbeat:Fri Aug 27 15:24:50 CST 2021
-
oswbb heartbeat:Fri Aug 27 15:24:55 CST 2021
-
oswbb heartbeat:Fri Aug 27 15:25:00 CST 2021
-
............
4、到archive目录,看到到已经收集到的系统状态
-
#####进入到archive,查看已经收集到的数据
-
[root@oracle19c oswbb]# cd archive/
-
[root@oracle19c archive]# ls
-
oswarp oswcpuinfo oswifconfig oswiostat oswmeminfo oswmpstat oswnetstat oswnfsiostat oswpidstat oswpidstatd oswprvtnet oswps oswslabinfo oswtop oswvmstat oswxentop
-
[root@oracle19c archive]#
-
#######查看已经收集到的磁盘io信息
-
[root@oracle19c archive]# cd oswiostat/
-
[root@oracle19c oswiostat]#
-
[root@oracle19c oswiostat]#
-
[root@oracle19c oswiostat]# cat oracle19c_iostat_21.08.27.1500.dat |more
-
Linux OSWbb v8.4.0
-
zzz ***Fri Aug 27 15:24:50 CST 2021
-
avg-cpu: %user %nice %system %iowait %steal %idle
-
0.25 0.00 1.01 0.00 0.00 98.74
-
-
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
-
sda 0.00 2.00 0.00 11.00 0.00 98.50 17.91 0.01 0.82 0.00 0.82 0.09 0.10
-
sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
-
-
zzz ***Fri Aug 27 15:24:55 CST 2021
-
avg-cpu: %user %nice %system %iowait %steal %idle
-
0.50 0.00 1.51 0.00 0.00 97.98
-
-
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
-
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
-
sdb 0.00 0.00 0.00 2.00 0.00 32.00 32.00 0.00 0.00 0.00 0.00 0.00 0.00
-
-
zzz ***Fri Aug 27 15:25:00 CST 2021
-
avg-cpu: %user %nice %system %iowait %steal %idle
-
0.25 0.00 1.26 0.00 0.00 98.49
-
-
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
-
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
-
sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
-
-
-
#####查看已收集到的top信息
-
[root@oracle19c archive]# cd oswtop/
-
[root@oracle19c oswtop]# ls
-
oracle19c_top_21.08.27.1500.dat
-
[root@oracle19c oswtop]# cat oracle19c_top_21.08.27.1500.dat |more
-
Linux OSWbb v8.4.0
-
zzz ***Fri Aug 27 15:25:21 CST 2021
-
top - 15:25:22 up 57 min, 3 users, load average: 0.90, 1.54, 1.37
-
Tasks: 289 total, 14 running, 275 sleeping, 0 stopped, 0 zombie
-
%Cpu(s): 2.2 us, 5.2 sy, 0.0 ni, 27.4 id, 59.3 wa, 0.0 hi, 5.9 si, 0.0 st
-
KiB Mem : 5780284 total, 2805832 free, 773836 used, 2200616 buff/cache
-
KiB Swap: 2047996 total, 2047996 free, 0 used. 1829288 avail Mem
-
-
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
-
19 root 20 0 0 0 0 S 55.6 0.0 0:43.76 ksoftirqd/2
-
24 root 20 0 0 0 0 R 50.9 0.0 0:33.38 ksoftirqd/3
-
406 root 0 -20 0 0 0 S 44.4 0.0 0:01.36 kworker/2:1H
-
405 root 20 0 0 0 0 R 43.5 0.0 0:07.08 xfsaild/sda2
-
865 root 20 0 250744 8372 4680 R 19.4 0.1 1:22.31 vmtoolsd
-
13 root rt 0 0 0 0 S 18.5 0.0 0:06.99 migration/1
-
61270 root 20 0 58544 2324 1528 R 5.6 0.0 0:00.06 top
-
53917 oracle 20 0 2051652 33636 29708 S 3.7 0.6 0:01.08 ora_m002_orcl
-
33319 root 20 0 0 0 0 R 2.8 0.0 1:07.99 kworker/u256:2
-
35576 root 20 0 0 0 0 S 2.8 0.0 0:04.65 kworker/0:0
-
61237 root 20 0 4964 1264 656 S 2.8 0.0 0:00.05 pidstat
-
61239 root 20 0 4964 1264 656 S 2.8 0.0 0:00.04 pidstat
-
52752 oracle -2 0 2050060 20348 17272 R 1.9 0.4 0:11.47 ora_vktm_orcl
-
61188 oracle 20 0 109132 1404 544 R 1.9 0.0 0:00.65 dd
-
61219 root 20 0 4396 760 632 S 1.9 0.0 0:00.02 mpstat
-
42985 root 20 0 0 0 0 S 0.9 0.0 0:03.32 kworker/u256:1
-
1 root 20 0 191272 4236 2588 S 0.0 0.1 0:11.09 systemd
-
2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd
5、使用oswbba查看收集的信息
-
#####Oracle 提供了OSWbba(OS Watcher Black Box Analyzer)工具,可以分析收集的数据并用图表展示出来。
-
[root@oracle19c oswbb]# java -jar oswbba.jar -i /root/oswbb/archive/
-
Starting OSW Analyzer V8.4.0
-
OSWatcher Analyzer Written by Oracle Center of Expertise
-
Copyright (c) 2019 by Oracle Corporation
-
Parsing Data. Please Wait...
-
WARNING. oswbba has detected at least some of the files in you
-
archive have been compressed. These files will not be analyzed.
-
You must uncompress all the files in the archive for full
-
analysis and graphing capabilities.
-
Scanning file headers for version and platform info...
-
Compressed file found. Ignoring oracle19c_iostat_21.08.27.1500.dat.gz ...
-
Compressed file found. Ignoring oracle19c_pidstat_21.08.27.1500.dat.gz ...
-
Parsing file oracle19c_pidstat_21.08.27.1600.dat ...
-
Compressed file found. Ignoring oracle19c_iostat_21.08.27.1500.dat.gz ...
-
Parsing file oracle19c_iostat_21.08.27.1600.dat ...
-
This directory already exists. Rewriting...
-
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 61 to Display Individual OS Process I/O RPS Graphs
-
Enter 62 to Display Individual OS Process I/O WPS Graphs
-
Enter 63 to Display Individual OS Process Percent User CPU Graphs
-
Enter 64 to Display Individual OS Process Percent System CPU Graphs
-
Enter 65 to Display Individual OS Process Percent Total CPU (User + System) Graphs
-
Enter 66 to Display Individual OS Process Percent Memory Graphs
-
-
Enter GP to Generate Individual Process Profile
-
Enter GC to Generate All CPU Gif Files
-
Enter GM to Generate All Memory Gif Files
-
Enter GD to Generate All Disk Gif Files
-
-
Enter L to Specify Alternate Location of Gif Directory
-
Enter Z to Zoom Graph Time Scale (Does not change analysis dataset)
-
Enter B to Returns to Baseline Graph Time Scale (Does not change analysis dataset)
-
Enter R to Remove Currently Displayed Graphs
-
-
Enter X to Export Parsed Data to Flat File
-
Enter S to Analyze Subset of Data(Changes analysis dataset including graph time scale)
-
Enter A to Analyze Data
-
Enter D to Generate DashBoard
-
-
Enter Q to Quit Program
-
-
Please Select an Option:5
-
Device Name Average Wait Times in Milliseconds
-
-
sda 87.03
-
sdb 150.21
-
Specify A Case Sensitive Device Name to View (Q to exit): sdb
-
#####
-
备注:图表示例:展示的是sdb磁盘等待时间及繁忙状态

oswatcher更为具体的使用方法,请参考docs内的OSWatcherOverview_840.pdf文档。
[转帖]oracle OSWatcher安装部署的更多相关文章
- Oracle RAC安装部署文档
1. 部署环境步骤 1.1 软件环境 操作系统:CentOS release 6.5(推荐使用5.*的系统)192.168.1.151 racnode1 192.168.1.152 ...
- Centos 下oracle 11g 安装部署及手动建库过程
Oracle 11g 手动建库,在虚拟环境中,不使用DBCA工具进行创建数据库 1.Linux环境的基本配置 2.ip 10.11.30.60 3.Oracle 11g安装过程 ---------- ...
- Oracle安装部署,版本升级,应用补丁快速参考
一.Oracle安装部署 1.1 单机环境 1.2 Oracle RAC环境 1.3 Oracle DataGuard环境 1.4 主机双机 1.5 客户端部署 二.Oracle版本升级 2.1 单机 ...
- Linux平台oracle 11g单实例 + ASM存储 安装部署 快速参考
操作环境:Citrix虚拟化环境中申请一个Linux6.4主机(模板)目标:创建单机11g + ASM存储 数据库 1. 主机准备 2. 创建ORACLE 用户和组成员 3. 创建以下目录并赋予对应权 ...
- Oracle Grid Infrastructure安装部署文档
1. 部署环境步骤 1.1 软件环境 操作系统: CentOS release 6.5 oracle安装包: linux.x64_11gR2_grid.zip linux.x64_11gR2_data ...
- Oracle 19C的下载和安装部署(图形安装和静默安装)
Oracle 19C的下载和安装部署(图形安装和静默安装) https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/ ...
- Linux平台Oracle 12.1.0.2 单实例安装部署
主题:Linux平台Oracle 12.1.0.2 单实例安装部署 环境:RHEL 6.5 + Oracle 12.1.0.2 需求:安装部署OEM 13.2需要Oracle 12.1.0.2版本作为 ...
- [转帖]VMware Vsphere 6.0安装部署 (三) vCenter Server安装
VMware Vsphere 6.0安装部署 (三) vCenter Server安装 2016年08月29日 14:59:14 dAng1r0Us 阅读数:72942 版权声明:本文为博主原创文 ...
- 1. Oracle安装部署文档
一. 部署环境步骤 1.1 软件环境 操作系统:CentOS release 6.5oracle安装包:linux.x64_11gR2_database_1of1.zip:linux.x64_11gR ...
- Oracle Grid control 11g及Active DataGuard 11g安装部署
Oracle Grid control 11g及Active DataGuard 11g安装部署(一) 原贴 http://blog.csdn.net/lichangzai/article/detai ...
随机推荐
- 《代码整洁之道 Clean Code》学习笔记 Part 2 - 写出优雅的函数的10条建议
大师级程序员把系统当作故事来讲,而不是当作程序来写. TLDR 短小(不超过 20 行.缩进不超过 2 层) 只做一件事 保持在同一抽象层级 用多态替代 switch 取个好的函数名 函数参数越少越好 ...
- 细说Python Lambda函数的用法,建议收藏!
摘要:今天我就和大家聊聊lambda函数,在Python编程中,大家习惯将其称为表达式. 名称是用于引用或寻址任何实体的约定.我们周围的几乎所有事物都有名字.编程领域也与此一致.但这是必须命名的吗?还 ...
- 超详细教程:SpringBoot整合MybatisPlus
摘要:本文为大家带来SpringBoot整合MybatisPlus的教程,实现SpringBoot项目中依赖数据模块进行数据操作,并进行简单测试. 本文分享自华为云社区<SpringBoot整合 ...
- 火山引擎DataLeap的Data Catalog系统公有云实践 (上)
更多技术交流.求职机会,欢迎关注字节跳动数据平台微信公众号,回复[1]进入官方交流群 前言 Data Catalog 通过汇总技术和业务元数据,解决大数据生产者组织梳理数据.数据消费者找数和理解数的业 ...
- 火山引擎数智平台VeDI荣获虎啸奖“年度最佳智能营销平台”奖项
近日,由中国商务协会数字营销专业委员会指导的第十四届虎啸奖正式公布获奖名单,火山引擎数智平台VeDI荣获技术平台/产品类奖项. 作为国内品牌营销领域兼具权威性.前瞻性以及创新性的赛事活动,第十四届 ...
- ByteBuffer 字节缓冲区
HeapByteBuffer 在jvm堆上面的一个buffer,底层的本质是一个数组 由于内容维护在jvm里,所以把内容写进buffer里速度会快些:并且,可以更容易回收 DirectB ...
- Intellij 查找排除JAR包的依赖关系(Maven Helper)
Intellij 查找排除JAR包的依赖关系(Maven Helper) 安装插件 Windows 类似
- python虚拟环境venv
Python3虚拟环境是为了在开发过程中隔离项目所需的 Python 环境.虚拟环境允许我们在同一台计算机上的不同项目中使用不同的 Python 版本和软件包,而不会相互干扰 首先创建一个虚拟环境的工 ...
- 机器人多目标包围问题(MECA)新算法:基于关系图深度强化学习
摘要:中科院自动化所蒲志强教授团队,提出一种基于关系图的深度强化学习方法,应用于多目标避碰包围问题(MECA),使用NOKOV度量动作捕捉系统获取多机器人位置信息,验证了方法的有效性和适应性.研究成果 ...
- drf-Response drf-request.data 序列化类的使用 反序列化新增、修改、删除数据
目录 APIView基本使用 使用原生Django写接口(View + JsonResponse) 使用drf写接口(APIView + drf Response) drf 两种导入View的方式 d ...