How To Introduce Interval Partitioning into a Range Partitioned Table
(Doc ID 854332.1)
Last updated on FEBRUARY 22, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 11.1.0.6 and laterOracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
Goal
This note tells you how to introduce interval partitioning into a table that was originally created as a range-partitioned table, without having to recreate the table from scratch.
The example illustrates how to use the ALTER TABLE command and the INTERVAL partition definition to automatically create future partitions with a range of 1 day, while the existing partitions have a range of 1 month.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
Create the range-partitioned table and insert data |
Alter the table to use a partitioning interval |
What if i have MAXVALUE partition or i would like the interval partitions to start from a lower high bound than the high bound of the last range partition |