I am trying to add sub Partitions to an existing partition but i am getting this error:
Oracle Error: ORA-14158
Error Description: Too many subpartition descriptions
Error Cause: CREATE TABLE or CREATE INDEX contained too many subpartition descriptions; maximum number of subpartitions is 1048575.
Action: Reduce number of subpartitions to not exceed 1024K-1.
If i try to add one sub partition to the existing it works with this query:
ALTER TABLE table_name MODIFY PARTITION partition_name ADD
SUBPARTITION subpartition_name VALUES LESS THAN (TO_DATE('01-03-2018' , 'DD-MM-YYYY'));
But if i try to add more than one sub partition to this existing partition it gives the error mentioned above:
Here is the query for it:
ALTER TABLE table_name MODIFY PARTITION partition_name ADD
SUBPARTITION subpartition_name1 VALUES LESS THAN (TO_DATE('01-03-2018' , 'DD-MM-YYYY')),
SUBPARTITION subpartition_name2 VALUES LESS THAN (TO_DATE('01-04-2018' , 'DD-MM-YYYY'));
Even though i am not creating more than 1024K-1 subpartitions still i am getting this too many subpartitions description error.
Here is the Create Table Statement:
**CREATE TABLE HTL_ALLOTMENT_TRACE (
allotmentTraceID NUMBER(19) NOT NULL,
organizationID NUMBER(19) NOT NULL,
locationID NUMBER(10) NOT NULL,
traceBusinessDate DATE NOT NULL
)
PARTITION BY LIST (organizationID)
SUBPARTITION BY RANGE (traceBusinessDate)
(
PARTITION HALMTTRC_1 VALUES (1)
)**
If anyone has a suggestion please let me know.