[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, p 3 (default is Cumulative)
-k : FILE#:BLOCK#, p 4 lt is (EVENT/LATCH)
-m : MODULE/ACTION, p 4 (default is USERNAME/PROGRAM)
-s : SQL mode, p 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 ~]$
更多内容请参考 MOS 文档:oratop - Utility for Near Real-time Monitoring of Databases, RAC and Single Instance(Doc ID 1500864.1),关注公众号【Java技术迷】后台回复【210330】可一起获取本文档。
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取代了流行的RACcheck工具,基于用户报告的最重要问题的优先级扩展了覆盖范围,可以主动扫描已知的问题,包括数据库区域。ORAchk扫描并提供一个高层次的报告,显示您的系统健康风险,并具有深入研究特定问题并理解其解决方案的能力。