Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Performance Incidents
Using ASH
Craig Shallahamer
craig@orapub.com
OraPub
works
closely with
DBAs who
want to take
their Oracle
tuning skills
to the next
level.
craig@orapub.com
@OraPubInc
Incident Analysis
The Challenge
7 (c)OraPub, Inc ASH - Incident
AWR report says
physical read IO is
the heart of the
issue.
Users say their
screen randomly
locks for a minute.
Solution Process
@ Be aware when the instance profile doesn’t match
a user(s) experience... the needle...
@ The incident can also be a BIG needle.
@ Use clues to direct us into the incident:
– date and time range
– user experience; random, functional, repeatable
– Think: merge user experience, wait events, OS and
application situation
– logs of all kinds, especially the Alert Log file.
@ Increasingly converge towards the incident core
@ Timeline linear situations
@ Chart complex relationships
9 (c)OraPub, Inc ASH - Incident
> orapub.com
>resources
> tools
Demo
ASH-TX-Demo-Craig-Steps.txt
The Situation
The database time is set 9 hours ahead of user location
because of the data center location. So we are looking
for incident time at around 11pm.
One of the DBAs said that the Oracle alert log had a
deadlock message posted at 11:12pm.
Let The
Typing
Begin
ASH-TX-Demo-Craig-Steps.txt
1 of 2
Observations
@ No table level locks, only row
@ Lock duration not crazy long
@ Sessions are not blocked by the same
session
@ The same SQL IDs are involved
@ Dead lock is clearly seen three times!
Lessons learned
@ Be extremely careful about killing sessions,
especially in a batch environment when
programs may automatically be set to
restart.
@ Why locks occurring? Look at sql_id,
module, program and bind variables for
clues.
@ ASH data is invaluable for seeing detail
not shown anywhere else.
@ An Oracle time-based analysis would not
have solved this mystery.
28 (c)OraPub, Inc ASH - Incident
Moving
To The
Next Level
R,
visual,
ash,
incident
Resource listing
@ Craig’s Blog & Website – Search: “otba”, “ash”
@ Toolkits – BloodHound, ASH Scratch Pad, OSM
@ Presentations – Search OraPub.com: “otba”,”ash”, etc.
@ Books
– Oracle Performance Firefighting.
– Forecasting Oracle Performance.
@ OraPub Membership for premium content
– Webinars – one or two each month
– Video Seminars – any device, any time, high quality
– Learning paths, assessments and certificates, priority response
– Community SLACK team
@ Live Virtual Training – Multiple 2 hours sessions with daily break
– Oracle Tuning Fastpath
– Tuning Oracle Using An AWR Report
– Tuning Oracle Using Advanced ASH Strategies
– Oracle Buffer Cache Performance Analysis & Tuning
48 (c)OraPub, Inc ASH - Incident
Thank
50
You! (c)OraPub, Inc ASH - Incident
Performance Incidents
Using ASH
Craig Shallahamer
craig@orapub.com