查询过程
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