2. 2 where s.statistic#=n.statistic# and n.name in ('session logical reads', 'db block gets',
'consistent gets');
3.
4. NAME VALUE
5. --------------------------------------------------- ----------
6. session logical reads 21827727
7. db block gets 7786654
8. consistent gets 14041073
HELLODBA.COM>select kcbwhdes, sum(why0+why1+why2), sum(other_wait)
2. 2 from sys.x$kcbwh w, sys.x$kcbsw s
3. 3 where w.indx=s.indx and w.inst_id=s.inst_id
4. 4 group by kcbwhdes
5. 5 having sum(why0+why1+why2)>0 or sum(other_wait)>0;
7. KCBWHDES SUM(WHY0+WHY1+WHY2) SUM(OTHER_WAIT)
8. ------------------------ ------------------- ---------------
9. kcbwh2: kcbchg1 1702 0
10. kcbzwh1: kcbbdrv 4 0
11. kdcwh02: kdcgcs 64 0
12. ... ...
1. HELLODBA.COM>select block#, class# from v$bh where file#=5 and status != 'free'; //free表示块是空的,未使用的;v$bh,表示block header
2.
3. BLOCK# CLASS#
4. ---------- ----------
5. 58957 1
6. 58959 1
7. 58960 1
8. 58958 1
9. 58955 4 //4表示表段或是索引段的段头块
10. 58956 1 //1表示表段或是索引段的数据块
11.
12. 6 rows selected.