This section discusses the maintenance operations that be performed on partitions, subpartitions, and index partitions.
Table 4-1 lists partition maintenance operations that can be performed on partitioned tables and composite partitioned tables
Table 4-2 lists subpartition maintenance operations that can be performed on composite partitioned tables
Table 4-3 lists maintenance operations that can be performed on index partitions, and indicates on which type of index (global or local) they can be performed
For each type of partitioning and subpartitioning in Table 4-1 and Table 4-2, the specific clause of the ALTER TABLE
statement that is used to perform that maintenance operation is listed.
Partition maintenance operations on multiple partitions are not supported on tables with domain indexes.
Table 4-1 ALTER TABLE Maintenance Operations for Table Partitions
Maintenance Operation | RangeComposite Range-* | IntervalComposite Interval-* | Hash | ListComposite List-* | Reference |
---|---|---|---|---|---|
Adding Partitions, see About Adding Partitions and Subpartitions |
|
N/A |
|
|
N/A |
Coalescing Partitions, see About Coalescing Partitions and Subpartitions |
N/A |
N/A |
|
N/A |
N/A1 |
Dropping Partitions, see About Dropping Partitions and Subpartitions |
|
|
N/A |
|
N/A1 |
Exchanging Partitions, see About Exchanging Partitions and Subpartitions |
|
|
|
|
|
Merging Partitions, see About Merging Partitions and Subpartitions |
|
|
N/A |
|
N/A1 |
|
|
|
|
|
|
|
|
|
|
|
|
N/A |
N/A |
N/A |
|
N/A |
|
N/A |
N/A |
N/A |
|
N/A |
|
Moving Partitions, see About Moving Partitions and Subpartitions |
|
|
|
|
|
Renaming Partitions, see About Renaming Partitions and Subpartitions |
|
|
|
|
|
Splitting Partitions, see About Splitting Partitions and Subpartitions |
|
|
N/A |
|
N/A1 |
Truncating Partitions, see About Truncating Partitions and Subpartitions |
|
|
|
|
|
Table 4-2 ALTER TABLE Maintenance Operations for Table Subpartitions
Maintenance Operation | Composite *-Range | Composite *-Hash | Composite *-List |
---|---|---|---|
Adding Subpartitions, see About Adding Partitions and Subpartitions |
|
|
|
Coalescing Subpartitions, see About Coalescing Partitions and Subpartitions |
N/A |
|
N/A |
Dropping Subpartitions, see About Dropping Partitions and Subpartitions |
|
N/A |
|
Exchanging Subpartitions, see About Exchanging Partitions and Subpartitions |
|
N/A |
|
Merging Subpartitions, see About Merging Partitions and Subpartitions |
|
N/A |
|
|
|
|
|
Modifying Real Attributes of Subpartitions, see About Modifying Real Attributes of Partitions |
|
|
|
Modifying List Subpartitions, see About Modifying List Partitions: Adding Values |
N/A |
N/A |
|
Modifying List Subpartitions, see About Modifying List Partitions: Dropping Values |
N/A |
N/A |
|
|
|
|
|
Moving Subpartitions, see About Moving Partitions and Subpartitions |
|
|
|
Renaming Subpartitions, see About Renaming Partitions and Subpartitions |
|
|
|
Splitting Subpartitions, see About Splitting Partitions and Subpartitions |
|
N/A |
|
Truncating Subpartitions, see About Truncating Partitions and Subpartitions |
|
|
|
The first time you use table compression to introduce a compressed partition into a partitioned table that has bitmap indexes and that currently contains only uncompressed partitions, you must do the following:
Either drop all existing bitmap indexes and bitmap index partitions, or mark them UNUSABLE
.
Set the table compression attribute.
Rebuild the indexes.
These actions are independent of whether any partitions contain data and of the operation that introduces the compressed partition.
This does not apply to partitioned tables with B-tree indexes or to partitioned index-organized tables.
Table 4-3 lists maintenance operations that can be performed on index partitions, and indicates on which type of index (global or local) they can be performed. The ALTER INDEX
clause used for the maintenance operation is shown.
Global indexes do not reflect the structure of the underlying table. If partitioned, they can be partitioned by range or hash.
Because local indexes reflect the underlying structure of the table, partitioning is maintained automatically when table partitions and subpartitions are affected by maintenance activity. Therefore, partition maintenance on local indexes is less necessary and there are fewer options.
Table 4-3 ALTER INDEX Maintenance Operations for Index Partitions
Maintenance Operation | Type of Index | Type of Index Partitioning | ||
---|---|---|---|---|
Range | Hash and List | Composite | ||
Global |
|
|
- |
|
Local |
N/A |
N/A |
N/A |
|
Global |
|
- |
- |
|
Local |
N/A |
N/A |
N/A |
|
Global |
|
- |
- |
|
Local |
|
|
|
|
Global |
|
- |
- |
|
Local |
|
|
|
|
Global |
|
- |
- |
|
Local |
|
|
|
|
Global |
|
- |
- |
|
Local |
|
|
|
|
Global |
|
- |
- |
|
Local |
N/A |
N/A |
N/A |
These operations cannot be performed on reference-partitioned tables. If performed on a parent table, then these operations cascade to all descendant tables.