ALTER TABLE simple_t MOVE TABLESPACE tblspace1; ALTER TABLE partitioned_t MOVE PARTITION p1 TABLESPACE tblspace1; ALTER TABLE subpartitioned_t MOVE SUBPARTITION s1 TABLESPACE tblspace1;When we move all the segments with must however change the default tablespace value on the table level and possibly on the partition level if it has a different value.
ALTER TABLE partitioned_t MODIFY DEFAULT ATTRIBUTES TABLESPACE tblspace1; ALTER TABLE subpartitioned_t MODIFY DEFAULT ATTRIBUTES FOR PARTITION p1 TABLESPACE tblspace1;ALTER TABLE t1 MODIFY DEFAULT ATTRIBUTES... is less known, but can be quite useful allowing for switching on and off Advanced Compression and some other segment parameters.
This applies at least to the version 11.2 (do not check other docs).
No comments:
Post a Comment