Move to another tablespace


1. To move a TABLE TO another TABLESPACE, issue the following command:

ALTER TABLE <table_name> MOVE TABLESPACE <new_tablespace>;

2. To move an INDEX, use the following command:

ALTER INDEX <index_name> REBUILD TABLESPACE <new_tablespace>;

3. To move the LOB when moving the table, use the following:

ALTER TABLE <table_name> MOVE TABLESPACE <new_tablespace> LOB (lob_item) STORE AS (TABLESPACE      <another_new_tablespace>);

4. To move the PARTITION TABLE to another TABLESPACE, use:
ALTER TABLE <table_name> MOVE PARTITION <partition_name> TABLESPACE <new_tablespace>;

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: