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.
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
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.