I am trying to restore one partition from a backup table. Both tables have partitions with the same name. My goal is to grab the data from the backup table partition x and put it in original table partition x. x is the name of the partition.
I have tried to do it by using an auxiliary table. Is there a way to exchange them directly or any other solution with better performance?
Best Answer
Have you seen this? https://community.oracle.com/thread/889338?start=0&tstart=0
It states you can only exchange partitions from a partitioned table to a non-partitioned table, or vice-versa.
You'd need to temporarily exchange the partition into an interim, non-partitioned, table, then into the target partitioned table.
There are some interesting wrinkles to the broadly stated rule above; see the following excerpt taken from the Oracle documentation: