Professional Documents
Culture Documents
Craig Shallahamer
craig@orapub.com
www.orapub.com/ppts
By doing hundreds of
time based analysis,
I’ve noticed there are a
few key ways many
DBAs invalidate their
AWR analysis.
6 (c)OraPub, Inc. AWR 10 Messups
About Me...
• Long time Oracle DBA
• Specialize in Oracle Database
performance and performance
engineering
• Performance researcher
• Blogger: A Wider View About Oracle
Performance Tuning
• Author: Oracle Performance Firefighting
and Forecasting Oracle Performance.
• Conference speaker
• Teacher and mentor
• Oracle ACE Director
• IOUG DBA Track Manager
7 (c)OraPub, Inc. AWR 10 Messups
OraPub
works with
Oracle DBAs
empowering
them to beat
bots, AI,
machine
learning and
autonomous
anything.
CPU Consumption
Exclusion
1/10
10 (c)OraPub, Inc. AWR 10 Messups
Who gets the major award?
CPU Consumption
Exclusion
1/10
12 (c)OraPub, Inc. AWR 10 Messups
Elapsed Time
Confusion
2/10
13 (c)OraPub, Inc. AWR 10 Messups
C W C W C
5 4 3 2 6
T I M E W O R K
CPU = 14
Non-Idle Wait = 6 300K LIOs
----------------------
Elapsed = DB time = 20
Idle Wait = 0
Single Serial
Experience = 20 Session
14 (c)OraPub, Inc. AWR 10 Messups
Oracle Time. What is it?
Database Time = CPU Time + Non-Idle Wait Time
C W C W C
5 4 3 2 6
T I M E W O R K
CPU = 14
Non-Idle Wait = 2 300K LIOs
----------------------
Elapsed = DB time = 16
Idle Wait = 4
Single Serial
Experience = 20 Session
15 (c)OraPub, Inc. AWR 10 Messups
Elapsed Time
Wall Time =
Parallelism
Yes!
Yes!
2/10
21 (c)OraPub, Inc. AWR 10 Messups
Focusing on the
insignificant
(looking for something interesting)
3/10
22 (c)OraPub, Inc. AWR 10 Messups
23 (c)OraPub, Inc. AWR 10 Messups
3/10
25 (c)OraPub, Inc. AWR 10 Messups
I’m A DBA
NOT
An OS Admin
4/10
26 (c)OraPub, Inc. AWR 10 Messups
It's more than just Oracle.
Oracle O/S
Application
I’m A DBA
NOT
An OS Admin
4/10
32 (c)OraPub, Inc. AWR 10 Messups
When an AWR report
analysis is the wrong
analysis strategy
5/10
33 (c)OraPub, Inc. AWR 10 Messups
By design,
an AWR report focuses on
an Oracle instance or cluster.
34 (c)OraPub, Inc. AWR 10 Messups
35 (c)OraPub, Inc. AWR 10 Messups
5/10
38 (c)OraPub, Inc. AWR 10 Messups
Too
BIG or SMALL
snapshot interval
6/10
39 (c)OraPub, Inc. AWR 10 Messups
A
B
40 (c)OraPub, Inc. AWR 10 Messups
Which snapshot interval?
DB Activity The general strategy is to set the begin
and end snapshot IDs as closely as
possible around the peak problem time.
Good or bad?
DB Activity
A
Black: Process run time or peak load
Red : Snapshot begin and end times
A
Black: Process run time or peak load
Red : Snapshot begin and end times
Good or bad?
DB Activity
A
Black: Process run time or peak load
Red : Snapshot begin and end times
A
Black: Process run time or peak load
Red : Snapshot begin and end times
Too
BIG or SMALL
snapshot interval
6/10
46 (c)OraPub, Inc. AWR 10 Messups
Not Defining
Top SQL
7/10
Just look at my
“TOP SQL”
monitor!
51
?(c)OraPub, Inc. AWR 10 Messups
Just look at my
“TOP SQL”
Stop monitor!
And
Think
7/10
8/10
5 Gallons 5 Gallons
5M LIOs 5M LIOs
No PQ Yes PQ
increased IO
rate, but for a
shorter period Yes PQ
of time.
61 (c)OraPub, Inc. AWR 10 Messups
8/10
9/10
9/10
10/10
DB CPU = 48.4K
Non-Idle Wait = 14.2K
--------------------------
Derived DB time = 62.6K
Reported DB time = 86.3K
?
86.3K
69 (c)OraPub, Inc. AWR 10 Messups
7.8K
DB CPU = 5.3K
Non-Idle Wait = 7.8K
--------------------------
?
Derived DB time = 13.1K
Reported DB time = 18.0K
18.0K
70 (c)OraPub, Inc. AWR 10 Messups
Do the math. If it’s doesn’t match…
10/10
www.orapub.com/free-webinars
This occurs because the class is spread out over multiple weeks, each session
is 2 hours with a day in between, you do homework/activation on your real
systems and I personally work with you through the entire class.
Thank
You!
76 (c)OraPub, Inc. AWR 10 Messups
Top 10 Ways To
Totally Mess Up An AWR Analysis
https://www.orapub.com/ppts
Craig Shallahamer
craig@orapub.com
www.orapub.com/ppts