AWR Report
AWR Report
Introduction
Statspack was introduced in Oracle 8.1.7
1. cd $ORACLE_HOME/rdbms/admin/
4. Enter the default tablespace (tools) for the PERFSTAT user when prompted.
5. Enter the temporary tablespace (temp) for the PERFSTAT user when prompted.
AWR (Automatic Workload Repository) came out in Oracle10g and is the next evolution
of statspack utility.
Modify a Snapshot:
Drop a Snapshot:
Baselines
A baseline is a pair of snapshots that represents a specific period of usage.
Once baselines are defined they can be used to compare current performance
against similar periods in the past.
Types of Baselines:
Fixed Baseline - corresponds to a fixed, contiguous time period in the past that you
specify.
Moving Window Baseline - corresponds to all AWR data that exists within the AWR
retention period. Oracle Database automatically maintains a system-defined
moving window baseline. The default window size is the current AWR retention
period, which by default is 8 days. Useful when using adaptive thresholds.
Baseline Template – used to create baselines for a contiguous time period. There
are two types of baseline templates: single and repeating.
Drop a Baseline:
1. Login to the database and from the sql command prompt enter the
below command:
SQL> @?/rdbms/admin/awrrpt.sql
Current Instance
--------------------------------
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
929422019 DWDEVL2 1 dwdevl2
Entering the number of days (n) will result in the most recent (n) days of
snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
Enter value for num_days: 1
Listing the last day's Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
dwdevl2 DWDEVL2 72214 09 Dec 2014 00:00 1
72215 09 Dec 2014 01:00 1
72216 09 Dec 2014 02:01 1
72217 09 Dec 2014 03:00 1
6. Use the below command to mail the awr report to any specific email id:
awrrpt_1_72215_72216.html
How to analyze the AWR report
Load Profile: a section for monitoring the throughput.
Block changes: The number of blocks modified during the sample interval.
Physical Reads: The number of requests for a block that caused a physical I/O operation.
Hard Parses: The parses requiring a completely new parse of the SQL statement. These consume both
latches and shared pool area.
Soft Parses: Soft parses are not listed but derived by subtracting the hard parses from parses. A soft
parse reuses a previous hard parse; hence it consumes far fewer resources.
Hit ratios only provide additional information to help the DBA understand how
the instance is operating.
Wai
Event Time(s) Avg Wait(ms) % Total Call Time Wait Class
ts