Oracle 11.2.0.2 , AIX 6.1
包含LOB SEGMENT的表lob字段可以update为NULL , 更新后需要move LOB 释放空间:
update applsys.fnd_lobs set file_data = null where .... ;
alter table applsys.fnd_lobs enable row movement ;
alter table applsys.fnd_lobs move lob(file_data) store as (TABLESPACE AOLBG);
alter table applsys.fnd_lobs disable row movement ;
update hwcust.HW_FND_LOBS_TI set file_data = null where ..... ;
alter table hwcust.HW_FND_LOBS_TI enable row movement ;
alter table hwcust.HW_FND_LOBS_TI move lob(file_data) store as (TABLESPACE AOLBG);
alter table hwcust.HW_FND_LOBS_TI disable row movement ;
更新为null 后 lob字段要求的空间比较小 , move 动作也非常快,300多万的表,move 也需要50多秒 。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-1188797/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-1188797/