What is stored in the redo log?

What is stored in the redo log?

My question is regarding the contents of the redo log. When I perform any DML operation, does my DML (insert/update/delete) statement get stored directly into the redo log? My undersatnding of things is that any of the DML statments get stored in the redo log as such (say Insert into emp values(10) ), likewise in sql_redo of redo log and inverse statement to this in sql_undo. In the undo segment, only values get stored. If I am not correct, please explain in full detail or give me the exact link where I can get the answer satifactorily.

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

What is stored in the redo log? You get both the redo (the statement that was executed) and undo (a reversing statement). LogMiner provides a great way to look at the contents of the redo logs (see v$logmnr_contents for a list of all the values LogMiner "mines" from the redo logs).

If you want to get more info on what the redo logs store, see the Oracle Concepts Guide and also most documentation/papers on LogMiner gives a good overview of redo. You can get the Oracle docs at http://technet.oracle.com and a google.com search will provide you with numerous links for info on LogMiner.

For More Information


This was first published in January 2003

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.