delete是不释放表占用空间的,只能截断表,再倒入数据。
如:
create table tab1_bak as select * from tab1;
truncate table tab1;
insert into tab1 select * from tab1_bak;
或
exp .....
drop table tab1 ;
imp .....
如:
create table tab1_bak as select * from tab1;
truncate table tab1;
insert into tab1 select * from tab1_bak;
或
exp .....
drop table tab1 ;
imp .....
比较简单的方法是先导出数据;truncate表;然后import。索引也要rebuild。-----------------
by fuyuncatwww.HelloDBA.com
alter table tablename move tablespace tablespacename
也可以降低hmw
不过索引也要rebuild;