Change a table’s default tablespace

July 18th, 2011 Posted in Oracle How-To

Do you need to change a table’s default tablespace? It’s pretty simple:

ALTER TABLE {OWNER}.{TABLE NAME}
MODIFY DEFAULT ATTRIBUTES TABLESPACE {NEW TABLESPACE NAME};

This does not move the table it only changes the attribute for the default tablespace. This is helpful if you are adding partitions, but not specifying the tablespace.

Tags: ,

Leave a Reply