r***@in.ibm.com
2007-09-18 09:55:50 UTC
Hello,
I am trying to delete a huge table based upon record creation date. My deletion statement was -
"delete from <table_name> where record_created < current timestamp - 60 days"
There were 191 million records for deletion. My DB supports infinite logging, with logsecond -1. The total no. of records in the table is 420 millions.
I ran the query for 6 hours, more than 80 secondary log files generated, but still it did not complete. Finally, I have to cancel it.
Do you have any other better solution through which
- I can have control on the progress of deletion
- I can breakup the deletion in smaller chunk and run sequentially.
*** Pls.note that I can not drop the table, as it is required for report generation purpose.
I am trying to delete a huge table based upon record creation date. My deletion statement was -
"delete from <table_name> where record_created < current timestamp - 60 days"
There were 191 million records for deletion. My DB supports infinite logging, with logsecond -1. The total no. of records in the table is 420 millions.
I ran the query for 6 hours, more than 80 secondary log files generated, but still it did not complete. Finally, I have to cancel it.
Do you have any other better solution through which
- I can have control on the progress of deletion
- I can breakup the deletion in smaller chunk and run sequentially.
*** Pls.note that I can not drop the table, as it is required for report generation purpose.