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);
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/p/3702543.html,如需转载请自行联系原作者