- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
6#
发表于 2012-3-31 21:06:22
X$BH ==> HLADDR RAW(4) Hash Chain Latch Address
SQL> select name,parameter1,parameter2,parameter3 from v$event_name where name = 'latch: cache buffers chains';
NAME PARAMETER1 PARAMETER2
---------------------------------------------------------------- ---------------------------------------------------------------- ----------------------------------------------------------------
PARAMETER3
----------------------------------------------------------------
latch: cache buffers chains address number
tries
latch: cache buffers chains
p1 the address of the latch for the cbc latch wait.
select
count(*),
lpad(replace(to_char(p1,'XXXXXXXXX'),' ','0'),16,0) laddr
from v$active_session_history
where event='latch: cache buffers chains'
group by p1
order by count(*);
COUNT(*) LADDR
---------- ----------------
4933 00000004D8108330
select o.name, bh.dbarfil, bh.dbablk, bh.tch
from x$bh bh, obj$ o
where tch > 5
and hladdr='00000004D8108330'
and o.obj#=bh.obj
order by tch
NAME DBARFIL DBABLK TCH
----------- ------- ------ ----
EMP_CLUSTER 4 394 120
可以使用 lpad(replace(to_char(p1,'XXXXXXXXX'),' ','0'),16,0) laddr 来转换p1 为16进制 地址
或者直接使用 V$SESSION的 P1RAW |
|