I would like to switch from Range Partition to Range-Interval, but my current table has a partition on MAXVALUE
, and the column used for partitioning allows zero values: (
For example: Let's say we have:
create table a (b number) partition by range (b) ( PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (50), PARTITION p2 VALUES LESS THAN (MAXVALUE) );
Then we fill in:
INSERT INTO a(b) VALUES (1); INSERT INTO a(b) VALUES (11); INSERT INTO a(b) VALUES (51); INSERT INTO a(b) VALUES (null);
To go to the interval, we need to delete the section with MAXVALUE
, so the other values must be transferred to the new section.
51 is not a problem, I would create a section where with VALUES LESS than 100
, but what about NULL
units?
I was thinking about moving on to something like a section on a range (NVL(b,0))
, but I'm afraid that I will have to process the whole table (not possible, the real table has a lot of data).
Any idea?
source share