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?

    Requires Free Membership to View

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 first published in April 2007

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: