Move a partitioned table from one tablespace to another tablespaces


select 
'ALTER TABLE '||TABLE_OWNER ||'.'||table_name||' MOVE PARTITION '||partition_name||' TABLESPACE tbs_NEW PARALLEL(DEGREE 4) NOLOGGING;' 
from 
 dba_tab_partitions 
where 
 TABLESPACE_NAME = 'tablespace_old';

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: