Oracle Community Network
I have a very large table and I need to delete millions of rows from the table without the table fragmenting. I also need to use the best delete method, a best-practice way to delete large amounts of rows as fast as possible.
What are the options for deleting large amounts of rows from large tables?
Tags:
Replies are closed for this discussion.
The answer to the best way to delete rows from an Oracle table is: It depends! In a perfect world where you can take the table offline for maintenance, a complete reorganization is always best because it does the delete and places the table back into a pristine state. We will address the tools for doing large scale deletes and the appropriate methods for each environment.
Factors and tools for massive deletes
The choice of the delete methods depends on many factors:
There are many tools that you can use to delete from large tables:
If you must do the delete in a 24x7 environment you have limited methods for deleting the rows:
If you have a scheduled maintenance downtime window and you are able to take a consistent backup of the table immediately before the delete, you can use several methods:
© 2024 Created by Maisam Agha. Powered by