Hi
infact the below code is initial version of the code and it is taking 1 hour to delete
0.7 million records.
delete from crpi.CRPI_INVENTORY_HIST
WHERE inventory_date < (to_date('06-30-2009','MM-
and rownum < 1000;
*******************
to tune the statement further i have incorporated ROWIDS.
hope you have got better idea of the problem
Thanks
Mallik
Main Topics
Browse All Topics





by: billprewPosted on 2009-10-03 at 08:29:59ID: 25485689
Why aren't you just doing the following inside the commit loop, why are you using rowids?
DD-YYYY') - 60)
delete from crpi.CRPI_INVENTORY_HIST
WHERE inventory_date < (to_date('06-30-2009','MM-
and rownum < 1000;
~bp