多种方法可以降低 HWM:
移动表
收缩表
导入导出表
在线重定义表
Shrink 方法,也叫段重组,表收缩的底层实现的是通过匹配的 INSERT 和 DELETE 操作
SYS@PROD> create table scott.t3 as select * from dba_objects;
SYS@PROD> select count(*) from scott.t3;
analyze table scott.t3 compute statistics;
select k.table_name,k.blocks,k.empty_blocks,num_rows from dba_tables k
where k.owner =‘SCOTT’
and k.table_name =‘T3’