--table 无lob字段
alter table 表名 move tablespace 表空间名
--table 有lob字段
alter table 表名 move tablespace 表空间名 lob(lob字段名1,lob字段名2) store as (tablespace 表空间名);
--normal index
alter index index_name rebuild tablespace 表空间名;
--lob index
随lob字段自动建立,自动同lob字段的表空间保持一致,不需手动移动
select 'alter table ' || t.TABLE_NAME || ' move tablespace xxxx;' from user_tables t;
alter table t_lob move tablespace xxxx lob(lob_content) store as (tablespace xxxx);
select 'alter index '|| t.segment_name ||' rebuild tablespace xxxx;' from user_segments t where t.segment_type = 'INDEX'