Database VLDB and Partitioning Guide
ContentsOpens a new window
Opens a new window
Page 186 of 478

Exchanging a Range, Hash, or List Partition

To exchange a partition of a range, hash, or list-partitioned table with a nonpartitioned table, or the reverse, use the ALTER TABLE EXCHANGE PARTITION statement. An example of converting a partition into a nonpartitioned table follows. In this example, table stocks can be range, hash, or list partitioned.

ALTER TABLE stocks
    EXCHANGE PARTITION p3 WITH TABLE stock_table_3;
Previous PageOpens a new window
Page 186 of 478
Next PageOpens a new window