Migrating data from existing unpartitioned tables to partitioned tables
- Last Updated: December 12, 2014
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
Migrating data from existing unpartitioned tables to partitioned tables
You can use the ALTER TABLE statement to migrate data of an unpartitioned
table to a partitioned table. The ALTER TABLE statement for table
partitioning functions similarly as the CREATE TABLE statement, except that
the ALTER TABLE statement creates only the partition definition and points
them to the current table partition (composite initial partition).
USING INDEX clause are known as composite indexes; Partition-aligned
indexes are indexes that use partitioned key columns as the leading
prefix components.Data access from the new partition definition is automatically redirected to the composite initial partition, which is then gradually split into new actual partitions using a database utility.
NO SPACE partition cannot be marked as a read-only
partition.Migrating data of an unpartitioned table to a partitioned table involves the following steps:
- Enabling a table for partitioning
- Marking partitions as split targets
- Moving the physical data from the composite initial partition to its respective partitions
Examples
Marking a composite partition as a read-only partition while migrating data of an unpartitioned table to a partitioned table
|
Marking a composite partition as a read-write partition while migrating data of an unpartitioned table to a partitioned table
|
Marking a composite partition as a read-only partition
The following example illustrates an alternative syntax for marking a composite partition as a read-only partition:
|
Marking a composite partition as a read-write partition
The following example illustrates an alternative syntax for marking a composite partition as a read-write partition:
|