By submitting my Email address I confirm that I have read and accepted the Terms of Use and Declaration of Consent.

By submitting your personal information, you agree to receive emails regarding relevant products and special offers from TechTarget and its partners. You also agree that your personal information may be transferred and processed in the United States, and that you have read and agree to the Terms of Use and the Privacy Policy.

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.

0 comments

E-Mail

Username / Password

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