I have some tables with data like this:
CREATE TABLE "PARTTEST4"
("year" number(4,0) NOT NULL ENABLE)
PARTITION BY RANGE ("year")
(PARTITION "P_OLD" VALUES LESS THAN (2010),
PARTITION "P_2020" VALUES LESS THAN (2020),
PARTITION "P_MAX" VALUES LESS THAN (MAXVALUE));
insert into parttest4 values (2005);
insert into parttest4 values (2015);
insert into parttest4 values (2025);
...in very simplified terms. Some of the tables also have some partitioned global/local indexes. I wish to drop the maxvalue partition (to use SET INTERVAL instead) but:
DROP PARTITION --causes data loss. Unacceptable
MERGE PARTITION --violates "VALUES LESS THAN (2020)" if I try to merge the P_2020 + P_MAX
What should I do? Split the P_MAX? What precautions should I take?
Thanks