Вы находитесь на странице: 1из 7

AWR parser

==========
Purpose:
Read awr report from each instance for the same snap period and display them in a tabular format

NOTE: Attached a sample AWR report

First line in AWR report


PRDCDI 2128618549 prdcdi1 1 07-Sep-12 02:09 11.1.0.7.0 YES

2nd line:
pcdidb01 Solaris[tm] OE (64-bit) 48 24 8 251.59

// Capture the following info from the above lines:

// Host: pcdidb01 CPU: 48 Memory: 252 GB Database: PRDCDI Instance: prdcdi1 Version: 11.1.0.7.0

AWR
-------
Snap Id Snap Time Sessions Cursors/Session
Begin Snap: 95814 16-Sep-12 11:00:17 629 26.9
End Snap: 95815 16-Sep-12 12:00:17 619 26.8
Elapsed: 59.99 (mins)
DB Time: 912.75 (mins)

// capture following info from the above lines

Begin time: 16-Sep-12 11:00


End time: 16-Sep-12 12:00
Elapsed Time: 60 Minutes

Snap time: Sep 16, 2012 11:00 to 12:00 (60 minutes)

AWR
----
Begin End
Buffer Cache: 147,456M 147,456M Std Block Size: 8K
Shared Pool Size: 15,360M 15,360M Log Buffer: 211,992K

// Capture: Buffer Cache, Shared pool size, log buffer

Cluster wide AWR Summary


=======================

Database: PRDCDI
Snap time: Sep 16, 2012 11:00 to 12:00 (60 minutes)

Configuration:

Instance Host CPU Memory(G) Buffer Size(G) Shared Pool(G) PGA Size(G)
prdcdi1 pcdidb01 48 252 147 15 3.5
Prdcdi2 Pcdidb02 48 252 150 13 4.5

Get PGA target from the following info:


----------------------
PGA Aggr Target Stats
PGA Aggr Target(M) Auto PGA Target(M) PGA Mem Alloc(M) W/A PGA Used(M) %PGA W/A Mem %Auto W/A Mem
%Man W/A Mem Global Mem Bound(K)
B 3,584 2,080 2,044.18 1.22 0.06 100.00 0.00 419,430
E 3,584 2,091 2,029.74 0.00 0.00 0.00 0.00 419,430

PGA Size=3584M
Load Profile:

Load Type Instance1 Instance2 Instance3


Logons 5.8/sec 4.5/sec 13/sec
Transactions 84/sec 77/sec 92/sec
Executes
Rollbacks
Est. Network Traffic 44 MB/sec
Hard Parses
Soft Parses
User Calls
Logical Reads
Physical Reads
Redo Size
Physical Writes
Block Changes

// All the above info comes from Load Profile:

Load Profile

Per Second Per Transaction Per Exec Per Call


DB Time(s): 15.2 0.2 0.00 0.00
DB CPU(s): 3.3 0.0 0.00 0.00
Redo size: 460,166.7 5,180.9
Logical reads: 40,579.4 456.9
Block changes: 2,666.8 30.0
Physical reads: 1,267.6 14.3
Physical writes: 162.6 1.8
User calls: 5,294.5 59.6
Parses: 1,147.0 12.9
Hard parses: 0.0 0.0
W/A MB processed: 1,559,936.7 17,563.0
Logons: 0.8 0.0
Executes: 3,844.3 43.3
Rollbacks: 34.3 0.4
Transactions: 88.8

Hyperlink each load profile to detailed info.

Example:
Logical reads -> TOP segments by physical reads
Physical reads -> TOP segments by physical reads
Physical Writes -> TOP segments by physical writes
Block changes -> TOP segments by block changes

Segments by Logical Reads

 Total Logical Reads: 146,072,059


 Captured Segments account for 55.4% of Total

Tablespace Subobject Logical


Owner Object Name Obj. Type %Total
Name Name Reads
** ** **
AILABLE UNDEFINE
UNAVAILABLE UNAVAILABLE UNAVAILABLE 3,014,160 2.06
** D
** ** **
** ** **
AILABLE UNDEFINE
UNAVAILABLE UNAVAILABLE UNAVAILABLE 2,921,040 2.00
** D
** ** **
** ** **
AILABLE UNDEFINE
UNAVAILABLE UNAVAILABLE UNAVAILABLE 2,915,632 2.00
** D
** ** **
** ** **
AILABLE UNDEFINE
UNAVAILABLE UNAVAILABLE UNAVAILABLE 2,914,992 2.00
** D
** ** **
** ** **
AILABLE UNDEFINE
UNAVAILABLE UNAVAILABLE UNAVAILABLE 2,913,952 1.99
** D
** ** **

TOP Waits

Instance Wait Event # Waits Wait time Avg Wait % of DB time Wait Class

//The above table is populated from the following section of AWR report
Top 5 Timed Foreground Events

Event Waits Time(s) Avg wait (ms) % DB time Wait Class


db file sequential read 4,509,745 13,453 3 24.57 User I/O
DB CPU 11,774 21.50
enq: TX - row lock contention 5,439 10,984 2019 20.06 Application
gc cr block 2-way 5,210,322 5,423 1 9.90 Cluster
gc current block 2-way 2,445,230 2,595 1 4.74 Cluster

Hyperlink the wait events to provide more detailed info. Example

Enq TX: row lock contention -> TOP segments by row lock waits and TOP segments by ITL waits and link to statistics ‘branch node splits’ and leaf
node splits’.

Gc cr block 2-way -> TOP Segments by CR blocks received


Gc current block 2-way ->TOP Segments by current blocks received

Statistics

Instance Statistics Average Time (ms)

The above table would be populated from the following section of the AWR

Global Cache and Enqueue Services - Workload Characteristics

Avg global enqueue get time (ms): 9.0


Avg global cache cr block receive time (ms): 1.3
Avg global cache current block receive time (ms): 1.7
Avg global cache cr block build time (ms): 0.0
Avg global cache cr block send time (ms): 0.1
Global cache log flushes for cr blocks served %: 5.4
Avg global cache cr block flush time (ms): 1.2
Avg global cache current block pin time (ms): 3.8
Avg global cache current block send time (ms): 0.1
Global cache log flushes for current blocks served %: 1.2
Avg global cache current block flush time (ms): 101.2

Global Cache and Enqueue Services - Messaging Statistics


Avg message sent queue time (ms): 36,737.4
Avg message sent queue time on ksxp (ms): 1.0
We will hyperlink these status to other info obtained from awr. Will provide that info later on

Latch misses

Instance Latch Name Latch miss source Get Requests Misses Sleeps
Inst1 Row cache objects

//The above info comes from the following sections of AWR report

Latch Sleep Breakdown

 ordered by misses desc

Latch Name Get Requests Misses Sleeps Spin Gets


row cache objects 44,861,341 1,210,957 24,510 1,186,594
cache buffers chains 288,503,129 897,094 286,511 627,154
gc element 69,086,592 270,975 45,022 226,861
mostly latch-free SCN 3,837,696 102,076 427 101,683
undo global data 16,712,108 59,776 53 59,724

Latch Miss Sources

 only latches with sleeps are shown


 ordered by name, sleeps desc

NoWait
Latch Name Where Sleeps Waiter Sleeps
Misses
DML lock allocation ktadmc 0 4 0
KJC message pool free kjcspfmbq: free vector of msg
0 293 0
list buffers
KJC message pool free
kjcsmpav: allocate a msg buffer 0 95 388
list

Database Wide Enqueue Activity

Inst Enq Type Req Succ gets Failed Gets Waits Wait time Avg wait
time
Enqueue Activity

 only enqueues with waits are shown


 Enqueue stats gathered prior to 10g should not be compared with 10g data
 ordered by Wait Time desc, Waits desc

Enqueue Type (Request Succ Failed Wt Time Av Wt


Requests Waits
Reason) Gets Gets (s) Time(ms)
TX-Transaction (row lock
5,942 5,936 0 5,443 11,279 2,072.21
contention)
TX-Transaction (index
7,699 7,677 0 6,451 66 10.28
contention)
PS-PX Process Reservation 12,512 12,027 485 4,408 5 1.19
WF-AWR Flush 22 22 0 14 4 319.64
FB-Format Block 1,196 1,196 0 762 1 1.27

Database wide Init parameters

Parameter Name Instance1 Instance2 Instance3


_always_anti_join Choose True choose

The above table comes from following section of the AWR report

init.ora Parameters

 if IP/Public/Source at End snap is different a '*' is displayed

Parameter Name Begin value End value (if different)


_always_anti_join CHOOSE
_always_semi_join CHOOSE
_b_tree_bitmap_plans TRUE

Sample AWR report attached

Appendix I ( future extension)


==========

Drive AWR parser off of a config file. Example

awr.config
==========
Index Stat|Event Threshold Resolution Function

1 Buffer Hit 90 % Increase buffer cache Size est_buffer_size


2 db file sequential read 10 ms Review IOSTAT data+CPU Usage+Run queue+SQL analyze_iostat,
analyze_cpu_usage,analyze_sql
3 db file scattered read 10 ms Review IOSTAT data+CPU Usage+Run queue+SQL analyze_iostat,
analyze_cpu_usage,analyze_sql
4 log file parallel write 10 ms Review IOSTAT data+CPU usage+Run queue+LGWR Delays analyze_iostat,analyze_cpu_usage,
5 Avg global cache cr block receive time
6 Avg global cache current block receive time
7 Avg global cache cr block build time
8 Avg global cache cr block send time
9 Avg global cache cr block flush time
10 Avg global cache current block pin time
11 Avg global cache current block send time
12 Avg global cache current block flush time
13 Avg message sent queue time on ksxp
14 enq: TX - row lock contention
15 gc cr block 2-way
16 gc current block 2-way
17 gc buffer busy acquire
18 gc current block busy
19 gc cr block busy
20 gc current grant busy
21 log file sync
22 enq: TX - index contention
23 cr request retry
24 buffer busy waits
25 latch: cache buffers chains
26 gc cr block lost
27 gc current multi block request
28 gc cr block lost
29 enq: TX - allocate ITL entry
30 library cache: mutex X
31 DFS lock handle
32 enq: TX - contention
33 gcs log flush sync
34 os thread startup
35 enq: HW - contention

Вам также может понравиться