I have sales table and currently sales table have interval partition by month.
I changed partition type to month to day;
ALTER TABLE sales set interval (NUMTOYMINTERVAL(1, 'DAY'));
However current data still in Month partitions.
How can i change partition type with existing data on table?
Best Answer
The above affects only partitions created in the future.
If you want to change your monthly partitions into daily partitions, you can use:
ALTER TABLE ... SPLIT PARTITION ...
Example:
More examples: https://oracle-base.com/articles/12c/online-split-partition-and-subpartition-12cr2