Oracle_scripte/Tanel/aot/bh_private.sql
2014-09-17 13:23:48 +02:00

26 lines
505 B
SQL

col bhla_object head object for a40 truncate
col bhla_DBA head DBA for a20
col flg_lruflg head "FLAG:LRUFLAG"
select /*+ ORDERED */
trim(to_char(bh.flag, 'XXXXXXXX')) ||':'||
trim(to_char(bh.lru_flag, 'XXXXXXXX')) flg_lruflg,
bh.obj,
o.object_type,
o.owner||'.'||o.object_name bhla_object,
bh.tch,
file# ||' '||dbablk bhla_DBA,
bh.class,
bh.state,
bh.mode_held,
bh.dirty_queue DQ
from
x$bh bh,
dba_objects o
where
bh.obj = o.data_object_id
and bitand(flag,8)=8
order by
tch asc
/