如何查得 latch: cache buffers chains address 执块争用所属的OBJ

 

查询过程

v$session 查得p1RAW   ---> x$bh HLADDR 查得OBJ -->DBA_OBJECTS

 

 

-------------------

 

select owner,object_name,subobject_name,object_id,object_type from dba_objects where object_id='738884';

SQL> select sql_id,event,p1text,p1,p1raw from v$session where sid ='1054';
 
SQL_ID        EVENT                                                            P1TEXT                                                                   P1 P1RAW
------------- ----------------------------------------------------- ----------- ---------------------------------------------------------------- ---------- ----------------
d14muz6j4t9kc latch: cache buffers chains                                      address                                                          1.38350581 C00000101EA875D0

 

---根据P1RAW 查到OBJ ID 排序 order by TCH desc

 

SQL> select OBJ from x$bh where HLaddr='C000000C222B2C70';

 

 

 

SQL> select OBJ,tch from x$bh where HLaddr='C000000C222B2C70' order by TCH desc;
 
       OBJ        TCH
---------- ----------
    738884        296
   5763425         43
   5705408         17
   5763241         13
   5592113          4
   5775169          3
   5592113          2
    690936          2
    543148          2
   1914891          1
   2402382          1
   5775114          1
 
12 rows selected

 

 

--查询TCH最高的OBJ 为分区表的某个分区

SQL> select owner,object_name,subobject_name,object_id,object_type from dba_objects where object_id='738884';
 
OWNER                          OBJECT_NAME                                                                      SUBOBJECT_NAME                  OBJECT_ID OBJECT_TYPE
------------------------------ -------------------------------------------------------------------------------- ------------------------------ ---------- ---------------------------------------------------------
SGPM                           ARC_R_PLAN                                                                       P200801                            738884 TABLE PARTITION

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值