I have a table (say, AUDIT) with data going back 10 years. Data older than 1 year is queried rarely, and full backups are starting to take too long. So, I decided to employ table partitioning and partial backups, so if (when!) I need to restore the database, I can restore the oft-queried data first, then get the old data restored later.
I partitioned the AUDIT table on it's datetime column (AUDIT_DT), segmenting the most recent 12 months from the older data. The PRIMARY partition holds the most recent 12 months, and the OLD_AUDIT_ARCHIVE (read-only) partition holds all data older than that.
I have gotten this far.
So, a month from now, I want to repartition the data similarly, while minimizing data movement. I think I need to create a staging table, and switch a month of data into it, but how do I switch the staging table data into the OLD_AUDIT_ARCHIVE partition? My goal is to move the boundary date between PRIMARY and OLD_AUDIT_ARCHIVE one month forward (say, from Feb 1, 2013 to Mar 1, 2013), while minimizing data movement.