Database Administration (MOSC)

MOSC Banner

How to archive a partition (11.2.0.3)

edited Apr 23, 2014 3:42PM in Database Administration (MOSC) 2 commentsAnswered ✓


Hello

I am trying to implement an archivng process for some of my tables. I have a TABLEA which is interval partitioned by day and I have a TABLEA_ARCH which is also interval partitioned by day. What I want to do is to move a partition from TABLEA to TABLEA_ARCH after, say 60 days. My plan was to create a nonpartitioned table XCHG_TABLEA and then do

truncate XCHG_TABLEA

alter table TABLEA exchange partition (for to_date('2014-02-09',yyyy-mm-dd')) with table XHCGTABLEA

at this point the partition in TABLEA is empty and XCHG_TABLEA stores all the data from that partition

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center