Professional Documents
Culture Documents
Actions
Remarks
db file
sequential
reads
OPTIMIZER_INDEX_CACHING
initialization parameters can influence the
index lookups?
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
1/8
8/4/2014
blocks visited
parallel
generated
write
on disk
I/O wait on sub system holding the online
redo log files
log file
sync
125269.1[6]
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
2/8
8/4/2014
waits
system
Data Blocks
application.
higher
the block
Segment Header
block)
Increase of number of FREELISTs
and FREELIST GROUPs
Undo Header
Increase the number of Rollback
Segments
free buffer This means we are waiting for a free buffer
waits
but there are none available in the cache
because there are too many dirty buffers in
the cache
Either the buffer cache is too small or the
DBWR is slow in writing modified buffers to
disk
S
e
td
i
s
k
_
a
s
y
n
c
h
_
i
o=t
r
u
es
e
t
I
fn
o
tu
s
i
n
ga
s
y
n
c
h
r
o
n
o
u
sI
/
O
i
n
c
r
e
a
s
et
h
en
u
m
b
e
ro
fd
bw
r
i
t
e
r
3/8
8/4/2014
disk controllers
waits
mode.
lock
parameter.
problems
issues
Note# 102925.1[15]
Details of V$LOCK view and lock modes
Note:29787.1[16]
key columns.
Ge
n
er
all
yd
uetoap
plic
ati
onis
sue
s,
pa
r
ti
cul
arl
yi
ff
or
eignke
yc
on
str
ain
tshav
e
contention
in your database:
no
tb
eenin
dex
ed.
STlo
ck
U
s
el
o
c
a
l
l
ym
a
n
a
g
e
dt
a
b
l
e
s
p
a
c
e
s
Da
t
ab
aseac
tio
nsth
atm
odi
fyth
eU
ET$(u
sed
ex
t
en
t)andFE
T$(f
reeext
ent
)tab
lesre
qui
re
th
eS
Tl
ock
,w
hic
hincl
ude
sa
ct
ion
ss
uchas
dr
o
p,tr
unc
ate
,a
ndcoa
les
ce.
Co
n
te
nti
onforth
eSTl
ockin
di
cat
esthe
rear
e
mu
l
ti
plese
ssi
onsa
ctiv
elype
rf
orm
ing
dy
n
am
icdis
ks
pac
eallo
cat
iono
rd
eal
loc
ati
on
indi
cti
ona
ryman
ag
edt
abl
esp
ac
es
Cache
This latch is acquired when searching
buffer
chain latch for data blocks
Buffer cache is a chain of blocks and
each chain is protected by a child
latch when it needs to be scanned
Hot blocks are another common
cause of cache buffers chains latch
contention. This happens when
multiple sessions repeatedly access
one or more blocks that are
protected by the same child cache
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
4/8
8/4/2014
Cache
parameter DB_BLOCK_LRU_LATCHES
cache.
Co
m
pe
tit
ionfo
rt
hecac
hebuf
fe
rslruch
ain
la
t
chissy
mpt
oma
ti
cofin
ten
sebu
ffe
rc
ach
e
ac
t
iv
ityca
use
db
yinef
fic
ien
tSQL
st
a
te
men
ts.St
ate
me
ntstha
tr
ep
eat
edl
ys
can
la
r
geun
sel
ect
ivei
ndex
esorpe
rfo
rmful
l
ta
b
lesc
ansar
et
hepri
mecul
pr
its
.
He
a
vyco
nte
nti
onfo
rth
islat
chisge
ner
all
y
du
et
oh
eav
yb
uff
ercac
heact
iv
itywh
ich
ca
nb
ec
aus
ed,fo
rexam
ple
,b
y:
Re
p
ea
ted
lysca
nni
nglar
geuns
el
ect
ive
in
d
ex
es
Check for IO heavy sessions / SQL and Larger HASH_AREA_SIZE will influence
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
5/8
8/4/2014
The "direct path read" and "direct path write" see if the amount of IO can be
reduced.
nested loops
Hidden parameter
normal
WORKAREA_SIZE_POLICY = AUTO)
However, for an OLTP system these waits are Or set *_area_size manually (like
significant
statements?[19]
MANUAL
sorts, such as ORDER BY, GROUP BY, UNION, instead of HASH JOIN.
DISTINCT, and ROLLUP, write sort runs to
the temporary tablespace when the input size Make sure the optimizer selects the
is larger than the work area in the PGA
Direct
tablespaces
Direct load operations (eg: Create Table as
Select (CTAS) may use this)
Parallel DML operations
Sort IO (when a sort does not fit in memory
Ensure
<Parameter:DISK_ASYNCH_IO> is
TRUE . This is unlikely to reduce wait
times from the wait event timings but
may reduce sessions elapsed times
(as synchronous direct IO is not
accounted for in wait event timings).
Ensure the OS asynchronous IO is
configured correctly.
Ensure no disks are IO bound
Latch Free
Waits
If the TIME spent waiting for latches is A latch is a kind of low level lock.
significant then it is best to determine
which latches are suffering from
Latches apply only to memory
contention
structures in the SGA. They do not
apply to database objects. An Oracle
SGA has many latches, and they
exist to protect various memory
structures from potential corruption
by concurrent access.
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
6/8
8/4/2014
Library
Latch is to ensure that the application Larger shared pools tend to have
is reusing as much as possible SQL
statement representation. Use bind
the
application
pool latch
You can reduce the library cache
latch hold time by properly setting
the
SESSION_CACHED_CURSORS
latch considerably
parameter
pool latch
to
must be re-executed
initialization parameter
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
7/8
8/4/2014
1. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=223117.1
2. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=34559.1
3. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=34558.1
4. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=34583.1
5. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=34592.1
6. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=125269.1
7. http://metalink.oracle.com/metalink/plsql/showdoc?db=Not&id=147471.1
8. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=34405.1
9. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=155971.1
10. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=62172.1
11. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=62172.1
12. http://gavinsoorma.com/wpcontent/uploads/2009/07/Documents%20and%20Settings/bb17120/Local%20Settings/Temp/notes9248D0/ml2_documents.showDocument%3fp_database_id=NOT&p_id=163424.1
13. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=163424.1
14. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=34566.1
15. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=102925.1
16. http://metalink.oracle.com/metalink/plsql/showdoc?db=Not&id=29787.1
17. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=22908.1
18. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=22908.1
19. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=232443.1
20. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=22908.1
21. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=267887.1
22. http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=62143.1
http://gavinsoorma.com/wp-content/uploads/2011/12/Resolving-common-Oracle-Wait-Events-using-the-Wait-Interface.htm
8/8