This is my exisitng table:
PARTITION BY RANGE ("D0_CRD_RPT_DT") INTERVAL (NUMTOYMINTERVAL(1, 'MONTH'))
SUBPARTITION BY LIST ("TA_SRC_STM_CD","TA_OBJ_TP_CD")
SUBPARTITION TEMPLATE (
SUBPARTITION "SPTN_PRFL_LN_NL_LOC_AR" VALUES ( ( 'PRFL_LN_NL', 'LOC_AR' ) ),
SUBPARTITION "SPTN_PRFL_LN_NL_LOAN_AR" VALUES ( ( 'PRFL_LN_NL', 'LOAN_AR' ) ),
Now i want to update the subpartition to
PARTITION BY RANGE ("D0_CRD_RPT_DT") INTERVAL (NUMTOYMINTERVAL(1, 'MONTH'))
SUBPARTITION BY LIST ("TA_SRC_STM_CD","TA_OBJ_TP_CD")
SUBPARTITION TEMPLATE (
SUBPARTITION "SPTN_PRFL_LN_NL_LOC_AR" VALUES ( ( 'PRFL_LN_NL', '**AR_LOC_AR**' ) ),
SUBPARTITION "SPTN_PRFL_LN_NL_LOAN_AR" VALUES ( ( 'PRFL_LN_NL', '**AR_LOAN_AR**' ) ),
How can i do it with a lot of data in this table?
tried to work with creating temp tables which is a long process, any simpler methods?
You should be able to do it with a simple ALTER TABLE, which can also be done ONLINE, eg