I have a table which has two partitions (by range): first_half and second_half based on a column "INSERT_DAY".
I need to add subpartitions "SUCCESS" and "NONSUCCESS" based on the values of another column "STATUS" (subpartition by list) i.e. I need to transform my range partition to composite (range-list) partition.
I do not wish to drop existing tables or partitions. What is the ALTER query for this?
PS: The database is Oracle 9i
No alter query for adding subpartitions as far as i know. To get the desired result performe the folowing steps
create as select
with the partitions and the sub partitions.you can also explore the use of dbms_Redefinition
but if you have a luxury of a littel downtime it's not worth it.