- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-6-5 23:00:15
ODM TEST;
SQL> select event,p1 from dba_hist_active_sess_history where event like 'latch%';
EVENT P1
---------------------------------------------------------------- ----------
latch free 1610657952
1610657952= 6000B0A0
SQL> oradebug setmypid;
Statement processed.
SQL> oradebug dump latches 10;
Statement processed.
SQL> oradebug tracefile_name;
/s01/admin/G10R25/udump/g10r25_ora_13843.trc
6000b0a0 slave class create level=0
Location from where latch is held: ksvcldel:
Context saved from call: 0
state=free, wlstate=free
gotten 782 times wait, failed first 26 sleeps 26
gotten 0 times nowait, failed: 0
SQL> select * from v$latch where addr='000000006000B0A0';
ADDR LATCH# LEVEL# NAME HASH GETS MISSES SLEEPS IMMEDIATE_GETS IMMEDIATE_MISSES WAITERS_WOKEN WAITS_HOLDING_LATCH
---------------- ---------- ---------- -------------------------------------------------- ---------- ---------- ---------- ---------- -------------- ---------------- ------------- -------------------
SPIN_GETS SLEEP1 SLEEP2 SLEEP3 SLEEP4 SLEEP5 SLEEP6 SLEEP7 SLEEP8 SLEEP9 SLEEP10 SLEEP11 WAIT_TIME
---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
000000006000B0A0 43 0 slave class create 165876364 790 27 27 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 250361
对于 latch:row cache objects 也可以类似方法 找到 |
|