使用方法:
_sys@FAKE> execdexter.show_space('BASICC3','T','AUTO','Y') ;
Total Blocks............................384
Total Bytes.............................3145728
Unused Blocks...........................18
Unused Bytes............................147456
Last Used Ext FileId....................4
Last Used Ext BlockId...................584704
Last Used Block.........................110
Thesegment is analyzed
0% -- 25% free spaceblocks..............0
0% -- 25% free spacebytes...............0
25% -- 50% free spaceblocks.............0
25% -- 50% free spacebytes..............0
50% -- 75% free spaceblocks.............0
50% -- 75% free spacebytes..............0
75% -- 100% free spaceblocks............43
75% -- 100% free spacebytes.............352256
Unused Blocks...........................0
Unused Bytes............................0
Total Blocks............................309
Total bytes.............................2531328
PL/SQL procedure successfully completed.
_sys@FAKE> exec dexter.show_space('BASICC2');
Total Blocks............................384
Total Bytes.............................3145728
Unused Blocks...........................54
Unused Bytes............................442368
Last Used Ext FileId....................4
Last Used Ext BlockId...................584320
Last Used Block.........................74
小脚本:
select table_name, compress_for, compression,PCT_FREE, PCT_USED
fromuser_tables
wheretable_name in ('BASICC', 'BASICC2');
注意,在创建compress压缩表的时候指定pct_free的值,不然结果不严谨。另外做测试的时候,大家可以放心使用
create table basicc2 tablespace users compressas select * from dba_objects ;
create table as select 的方式创建压缩表,因为它本身使用的是direct pathwrite/read。
附件2 ACO 白皮书
aco白皮书下载地址:
http://download.csdn.net/detail/renfengjun/7514403