移动smsg_logs 表的全部分区到PRODUCT表空间:
begin
for x in(select partition_name from dba_tab_partitions where table_name='SMSG_LOGS')
loop
execute immediate 'alter table smsg_logs move partition ' || x.partition_name || ' tablespace users';
end loop;
end;
/
for x in(select partition_name from dba_tab_partitions where table_name='SMSG_LOGS')
loop
execute immediate 'alter table smsg_logs move partition ' || x.partition_name || ' tablespace users';
end loop;
end;
/