I got the problem is when I run following command in Oracle, I encounter the error.
Truncate table mytable;
Errors:
A typical approach to delete many rows with many constraints is as follows:
mytable_new with all the columns but without constrains (or create constraints disabled);mytable to mytable_new.mytable_new to see that everything is ok.mytable to reference mytable_new instead and see that everything is ok.drop table mytable.alter table mytable_new rename to mytable.It's far faster than deleting a million records with many slow constraints.