oratop 轻量级实时监控工具, 它不需要安装在被监控的数据库服务器上,只要有 oracle 的客户端就行了,可以采用类似 sqlplus 的方式连接被监控的数据库。oratop 适用于 12CR2 - 21C 只需配置环境变量即可使用,11gR2 和 12cR1 需单独安装,最低支持 11gR2(11.2.0.3, 11.2.0.4)。
export ORACLE_SID=JiekeCDB
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/suptools/oratop:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
Oratop 工具允许有特权的用户监视 Oracle 数据库活动。它几乎实时地动态运行,并为正在运行的数据库提供一个活动窗口。
oratop -h
oratop / as sysdba


Oracle 支持的最低版本是 11gR2。 MOS Note(Doc ID 1500864.1) 中提供了与 11gR2 和
12cR1 Oracle 版本兼容的独立 oratop 下载。 对于以后的 Oracle 版本, 它位于文件夹
$Oracle_HOME/suptools/oratop 下。 此外, 它还与 Oracle 跟踪文件分析器(TFA) 捆绑
在一起。
Key motivations include(主要监控):
监控当前的数据库活动,
Monitoring current database activities,
监控数据库性能,
Database performance,
识别争用和瓶颈。
Identifying contentions and bottleneck
Features Highlights(特色亮点)
进程和 SQL 监视
Process & SQL Monitoring
实时等待事件监控
Real time wait events
支持 ADG 监控
Active Data Guard support
支持多租户数据库(CDB) (仅种子级)
Multitenant Database (CDB) support (seed level only)
orato p现在已经和 Trace File Analyzer Collector (TFA)以及支持工具包中的其他工具一起发布和集成了。因此,获得 oratop 的首选方法不是单独下载 oratop,而是下载 TFA 的最新版本。这种集成方式任何时候 TFA 升级(电源,从MOS等下载),最新版本的 oratop 和其他支持工具包也将获得。如果您的 GI 版本是11.2.0.4 或 12.1.0.2,那么将自动安装 TFA。在任何一种情况下,我们建议 TFA 安装是从 TFA Collector -增强诊断收集工具(Doc ID 1513912.1)升级到最新版本,以便获得支持工具第一次与 TFA 版本 12.1.2.3.0绑定的捆绑包,以及各种其他新特性、bug 修复和优化。
不过,我这里也下载了: 11gR2 on Linux x86-64 oratop.RDBMS_11.2_LINUX_X64
11gR2 on Linux x86-64 here.
https://www.modb.pro/download/39702
[oracle@JiekeXu ~]$ export ORACLE_SID=JiekeXu
[oracle@JiekeXu ~]$ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/suptools/oratop:$PATH
[oracle@JiekeXu ~]$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
[oracle@JiekeXu ~]$
[oracle@JiekeXu ~]$ ll oratop.RDBMS_11.2_LINUX_X64
-rwxr-xr-x 1 oracle oinstall 132K Nov 24 03:48 oratop.RDBMS_11.2_LINUX_X64
[oracle@JiekeXu ~]$
[oracle@JiekeXu ~]$ ./oratop.RDBMS_11.2_LINUX_X64 -h
oratop: Release 14.1.2
Usage:
oratop [ [Options] [Logon] ]
Logon:
{username[/password][@connect_identifier] | / }
[AS {SYSDBA|SYSOPER}]
connect_identifier:
o Net Service Name, (TNS) or
o Easy Connect (host[:port]/[service_name])
Options:
-d : real-time (RT) wait events, section 3 (default is Cumulative)
-k : FILE#:BLOCK#, section 4 lt is (EVENT/LATCH)
-m : MODULE/ACTION, section 4 (default is USERNAME/PROGRAM)
-s : SQL mode, section 4 (default is process mode)
-c : database service mode (default is connect string)
-f : detailed format, 132 columns (default: standard, 80 columns)
-b : batch mode (default is text-based user interface)
-n : maximum number of iterations (requires number)
-i : interval delay, requires value in seconds (default: 5s)
-v : oratop release version number
-h : this help
[oracle@JiekeXu ~]$ ./oratop.RDBMS_11.2_LINUX_X64 / as sysdba
oratop: Release 14.1.2 Production on Tue Nov 24 04:02:17 2020
Copyright (c) 2011, Oracle. All rights reserved.
Connecting ...
Oracle 11g - Jie 04:02:47 up: 59s, 1 ins, 0 sn, 0 us, 644M mt, 2.2% db
ID %CPU LOAD %DCU AAS ASC ASI ASW AST IOPS %FR PGA UTPS UCPS SSRT %DBT
EVENT (C) TOT WAITS TIME(s) AVG_MS PCT WAIT_CLASS
db file sequential read 5305 59 11.3 66 User I/O
DB CPU 14 16
db file scattered read 418 7 18.9 9 User I/O
log file parallel write 183 4 25.2 5 System I/O
control file heartbeat 1 4 4000.5 4 Other
ID SID SPID USR PROG S PGA SQLID/BLOCKER OPN E/T STA STE EVENT/*LA W/T
[oracle@JiekeXu ~]$
更多内容参考:oratop - Utility for Near Real-time Monitoring of Databases, RAC and Single Instance(Doc ID 1500864.1)
================================================================
以下是 Doc 2550798.1 中关于 AHF 的一点简单介绍:
Autonomous Health Framework (AHF) - Including TFA and ORAchk/EXAChk (Doc ID 2550798.1)
Get Proactive with Oracle Database Diagnostic Tools (Doc ID 1459344.1)
Best Practices
最佳实践
ORAchk — Take Action
ORAchk replaces the popular RACcheck tool, extending the coverage based on prioritization of top issues reported by users, to proactively scan for known problems including Database area. ORAchk scans and provides a high level report showing your system health risks with the ability to drill down into specific problems and understand their resolutions.
ORAchk -采取行动
ORAchk取代了流行的RACcheck工具,基于用户报告的最重要问题的优先级扩展了覆盖范围,可以主动扫描已知的问题,包括数据库区域。ORAchk扫描并提供一个高层次的报告,显示您的系统健康风险,并具有深入研究特定问题并理解其解决方案的能力。
SQL Tuning Health Check (SQLHC) — Take Action | Learn
Identify and address potential Database Performance problems and ensure that your environment remains healthy.
SQL调优运行状况检查(SQLHC) -采取|学习操作
确定并解决潜在的数据库性能问题,并确保环境保持健康。
Oracle Performance Diagnostic Guide (OPDG) — Take Action
This guide is intended to help you resolve query tuning, hang/locking, and slow database issues. The guide is not an automated tool but rather seeks to show methodologies, techniques, common causes, and solutions to performance problems.
Oracle性能诊断指南(OPDG) -采取行动
本指南旨在帮助您解决查询调优、挂起/锁定和慢速数据库问题。该指南不是一个自动化工具,而是试图展示方法、技术、常见原因和性能问题的解决方案。
Best Practices - Proactive Data Collection for Performance — Take Action
Leverage proactive best practice recommendations to assist in the diagnosis of Database performance problems.
最佳实践-主动收集绩效数据-采取行动
利用主动的最佳实践建议来帮助诊断数据库性能问题。
Best Practices for Leveraging Oracle Diagnostic and Patching Features — Take Action
This presentation provides an overview of the proven best practices to help you diagnose issues more efficiently, proactively resolve patch conflicts and effectively manage risk. Topics include remote diagnostics and software maintenance strategies.
利用Oracle诊断和补丁特性的最佳实践-采取行动
本演示提供了已证实的最佳实践的概述,以帮助您更有效地诊断问题,主动解决补丁冲突和有效地管理风险。主题包括远程诊断和软件维护策略。
CRS Diagnostic Data Gathering: A Summary of Common tools and their Usage — Take Action
Quick guide to the tools used to investigate CRS/GRID issues.
CRS诊断数据收集:常用工具及其使用的总结-采取行动
用于调查CRS/网格问题的工具的快速指南。




