How to Use Interval Partitioning with a Rolling Partition Window and Avoid ORA-14758 (Doc ID 1590833.1)

Last updated on AUGUST 02, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Goal

You want to use interval partitioning for a specific number of partitions (N) and then drop the oldest one with you get to N+1.  For example, you have created a partitioned table with interval partitioning using an interval of 1 day.  You want to keep 30 days of data and on day 31, drop the oldest partition.   However, when you do that, you get an "ORA-14758: Last partition in the range section cannot be dropped."

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms