Latch是簡單的
A
B
A
B
檢查latch free是不是主要的wait event
Select * from v$system_event order by time_waited;
檢查latch的使用情況
Select * from v$latch:
與willing
與immediate請求有關的列
Gets: number of successful willing
Misses: number of times an initial wiling
Sleeps: number of times a process waited after an initial willing
Wait_time: number of milliseconds waited after willing
Cwait_time: a measure of the cumulative wait time including the time spent spinning and sleeping
Spin_gets: gets that misses first try but succeed after spinning
Immediate_gets: number of successful immediate requests for each latch;
Immediate_misss: number of unsuccessful immediate requests for each latch;
一般無需調整latch
A
B
C
Select * from v$latch where name like
如果競爭是在shared pool或library cache上
A
Select sql_text from v$sqlarea where executions=
B
SELECT sql_text
C
From:http://tw.wingwit.com/Article/program/Oracle/201311/16824.html