So i have this partition which makes an error because i search on google it said mostly like "the value is bigger than the partition"
PARTITION BY LIST (BUSINESS_DATE)
(PARTITION D20200326 VALUES (TO_DATE('26/03/2020','DD/MM/YYYY'))
PCTFREE 10 INITRANS 1 MAXTRANS 255
STORAGE ( BUFFER_POOL DEFAULT)
TABLESPACE DWH LOGGING NOCOMPRESS)
GO
This is the partition with the date '26/03/2020', but i wanted to make the partition is dynamic, so i have this ETL jobs, if the ETL jobs run on '27/03/2020' my ETL job error and doesn't want to insert, so i have to change the partition into 27/03/2020.
But how do i do this dynamically?
PARTITION BY LIST (INSERT_DATE)
(PARTITION D20200326 VALUES (TO_DATE(SYSDATE))
PCTFREE 10 INITRANS 1 MAXTRANS 255
STORAGE ( BUFFER_POOL DEFAULT)
TABLESPACE DWH LOGGING NOCOMPRESS)
GO
i've tried with changing SYSDATE but only gave me an error
ORA-14308: partition bound element must be one of: string, datetime or interval literal, number, or NULL Script line 23, statement line 23, column 47