oracle awr rpt

Oracle AWR Report是一种很有用的性能分析工具,可以帮助DBA和开发人员分析数据库的性能问题。它提供了全面的性能数据收集、分析和报告功能,可以帮助用户更深入地了解数据库性能瓶颈,以便更好地优化数据库。

AWR Report收集数据库运行状况信息,它可以使用一些SQL语句、存储过程和视图来获得数据,这些数据可以用于检测和改进数据库的性能。通过AWR Report可以了解哪些SQL导致了性能问题,哪些资源已经被使用,哪些资源没有得到充分利用,以及如何改进数据库环境。

AWR Report通过收集这些数据来生成性能分析报告,AWR Report报告是Oracle公司提供的一套标准性能分析工具,它非常实用。AWR Report收集的数据包括CPU使用率、内存使用情况、磁盘IO、网络IO、锁等,这些都是影响数据库性能的因素。

下面是一个AWR Report的一个示例,这是一个关闭数据库服务器后生成的报告:

----------------------------------------------------------------- Snap Id Snap Time Sessions ---- --------- -------- Begin Snap: 1 11-Feb-19 23 End Snap: 2 11-Feb-19 23 Elapsed: 0.20 (mins) DB Time: 0.00 (mins) Cache Sizes Begin End ---------- ---------- Buffer Cache: 24M 24M Std Block Size: 8K Shared Pool Size: 228M 228M Log Buffer: 702,545 702,545 Load Profile Per Second Per Transaction Per Exec Per Call ~~~~~~~~~~~~~~ ------------- --------------- --------- ---------- Redo size: 368.43 332,253.03 Logical reads: 661.54 596,149.42 Block changes: 9.23 8,325.05 Physical reads: 0.12 107.99 Physical writes: 0.05 44.20 User calls/sec: 0.14 128.29 Parses/sec: 0.05 46.65 Hard parses/sec: 0.02 19.98 Sorts/sec/sec: 0.00 0.00 Logons/sec logons: 0.00 0.04 Executes/sec execs: 0.00 16.94 Rollbacks/sec: 0.00 0.00 Transactions/sec: 0.00 0.00 Instance Efficiency Percentages (Target 100%) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 100.00 Buffer Hit %: 97.27 In-memory Sort %: 100.00 Library Hit %: 92.52 Soft Parse %: 86.05 Execute to Parse %: 66.08 Latch Hit %: 98.34 Parse CPU to Parse Elapsd %: 67.99 % Non-Parse CPU: 95.12 Shared Pool Statistics Begin End ------- ------- Memory Usage %: 73.17 95.13 % SQL with executions>1: 77.46 52.54 % Memory for SQL w/exec>1: 80.80 57.55 Top 5 Timed Events Avg %Total ~~~~~~~~~~~~~~~~~~ wait Call Event Waits Time (s) (ms) Time Wait Class ------------------------------ ------------ ----------- ------ ------ -------------- CPU time 1,672 99.6 control file sequential read 3,038 0 0 0.0 System I/O db file sequential read 6,503 0 0 0.0 User I/O os thread startup 2 0 0 0.0 Other os thread shutdown 2 0 0 0.0 Other