Problem solve Get help with specific problems with your technologies, process and projects.

"Delete from emp" without "where" condition

What's happening in the redo logs when I do a "delete from emp;" without a "where" condition?

I'd like to know what's happening in the redo logs when I do a "delete from emp;" without a "where" condition? Do all the deleted lines get logged or only the delete order or both?
If you were to mine the redo logs for the DELETE statement, you would see that a multi-row DELETE statement is logged as individual DELETE operations. These individual operations will have "WHERE ROWID='......'" appended to them. Oracle deletes the specific rows by figuring out which ROWID points to that row. When you delete more than one row in a single DELETE statement, Oracle still breaks this down in to mutiple DELETE statements, one for each row.
This was last published in April 2007

Dig Deeper on Oracle database backup and recovery

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.