alter table exchange partition
- the answer. This command selects a section of a section with a table segment. It is at the speed of light, because it performs only some reference relationships. So, you need temporary tables, because AFAIK you cannot exchange them directly.
Sort of:
create table tmp_table(same columns); Add partition p_2011 in table ARCH_TABLE; ALTER TABLE CURR_TABLE EXCHANGE PARTITION P_2011 WITH TABLE tmp_table; ALTER TABLE ARCH_TABLE EXCHANGE PARTITION P_2011 WITH TABLE tmp_table;
Test your code before running.
source share