Oracle Error ORA-42019: partition cannot be redefined online because of incompatible partitioning of interim table

Oracle Error Message

ORA-42019: partition cannot be redefined online because of incompatible partitioning of interim table

Reason for the Error

both original and interim tables are partitioned, or original table is composite-partitioned but interim table is non-partitioned.

Solution

Ensure that the interim table has compatible partitioning with the original table. For example, if the original table is partitioned, the interim table should be non-partitioned. If the original table is composite-partitioned, the interim table should be partitioned.