如何查看一个表的块使用状况
dbms_space.space_usage(
segment_owner=>'SCOTT', segment_name=>'tab001', segment_type=>'TABLE',
unformatted_blocks=>k_unformatted_blocks, unformatted_bytes=>k_unformatted_bytes,
fs1_blocks=>k_fs1_blocks, fs1_bytes=>k_fs1_bytes,
fs2_blocks=>k_fs2_blocks, fs2_bytes=>k_fs2_bytes,
fs3_blocks=>k_fs3_blocks, fs3_bytes=>k_fs3_bytes,
fs4_blocks=>k_fs4_blocks, fs4_bytes=>k_fs4_bytes,
full_blocks=>k_full_blocks, full_bytes=>kfull_bytes
);
dbms_output.put_line('Unformatted Blocks = '||k_unformatted_blocks);
dbms_output.put_line('0 - 25% free blocks= '||k_fs1_blocks);
dbms_output.put_line('25- 50% free blocks= '||k_fs2_blocks);
dbms_output.put_line('50- 75% free blocks= '||k_fs3_blocks);
dbms_output.put_line('75-100% free blocks= '||k_fs4_blocks);
dbms_output.put_line('Full Blocks = '||k_full_blocks);