To add a partition at the beginning or in the middle of a table, use the SPLIT PARTITION clause. For example, consider the table, sales , which contains data for the current month in addition to the previous 12 months.
Range partitioning is a convenient method for partitioning historical data. The boundaries of range partitions define the ordering of the partitions in the tables or indexes. Interval partitioning is an extension to range partitioning in which, beyond a point in time, partitions are defined by an interval.
Use the ALTER TABLE ADD PARTITION statement to add a new partition to the "high" end (the point after the last existing partition). To add a partition at the beginning or in the middle of a table, use the SPLIT PARTITION clause.
2.1 Partitioning Overview. Partitioning provides a technique to subdivide objects into smaller pieces. Partitioning allows a table, index, or index-organized table to be subdivided into smaller pieces, where each piece of such a database object is called a partition.
Subpartitioning—also known as composite partitioning—is the further division of each partition in a partitioned table.
You can remove multiple partitions or subpartitions from a range or list partitioned table with the DROP PARTITION and DROP SUBPARTITION clauses of the SQL ALTER TABLE statement. For example, the following SQL statement drops multiple partitions from the range-partitioned table sales .
EXCHANGE PARTITION command can exchange partitions in a LIST , RANGE or HASH partitioned table. The structure of the source_table must match the structure of the target_table in that both tables must have matching columns and data types. The data in the table must adhere to the partitioning constraints.
You cannot explicitly add a partition to an interval-partitioned table. The database automatically creates a partition for an interval when data for that interval is inserted.
ORA-14097: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION Cause: The corresponding columns in the tables specified in the ALTER TABLE EXCHANGE PARTITION are of different type or size Action: Ensure that the two tables have the same number of columns with the same type and size.