Splitting a Level-2 Partition for a Level-2 *-List Partitioned Table
You can run ALTER TABLE SPLIT SUBPARTITION to split a level-2 partition for a level-2 *-list partitioned table.
ALTER TABLE hash_list_sales SPLIT SUBPARTITION product2_channel2 VALUES ('6', '7', '8', '9') INTO ( SUBPARTITION product2_channel2_p1, -- The first partition range is ('6', '7', '8', '9'). SUBPARTITION product2_channel2_p2 -- The second partition range is DEFAULT. ) UPDATE GLOBAL INDEX;
ALTER TABLE hash_list_sales SPLIT SUBPARTITION product2_channel2 INTO ( SUBPARTITION product2_channel2_p1 VALUES ('6', '7', '8'), SUBPARTITION product2_channel2_p2 VALUES ('9', '10'), SUBPARTITION product2_channel2_p3 -- The third partition range is DEFAULT. ) UPDATE GLOBAL INDEX;
ALTER TABLE hash_list_sales SPLIT SUBPARTITION FOR (1200, '6') VALUES ('6', '7', '8', '9') INTO ( SUBPARTITION product2_channel2_p1, -- The first partition range is ('6', '7', '8', '9'). SUBPARTITION product2_channel2_p2 -- The second partition range is DEFAULT. ) UPDATE GLOBAL INDEX;
If the DEFAULT partition is split, the DEFAULT range cannot be declared for the first several partitions, and the last partition inherits the DEFAULT range.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot