分区表操作

--拆分分区表
ALTER TABLE MSRECORD1 SPLIT PARTITION PART_MARKETRECORD_2014_1 
AT (TO_DATE('2014-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS'))
INTO (PARTITION PART_MARKETRECORD_2013_1,PARTITION PART_MARKETRECORD_2014_1);



--合并分区表
ALTER TABLE MSRECORD1 
MERGE PARTITIONS PART_MARKETRECORD_2013_1, PART_MARKETRECORD_2014_1 INTO PARTITION PART_MARKETRECORD_2014_1
UPDATE INDEXES;

  

posted @ 2014-10-15 19:59  许志伟  阅读(188)  评论(0编辑  收藏  举报