Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

REDO LOGS

Oracle ManiacDec 25 2012 — edited Jan 2 2013
hello friends ...Merry Christmas to every one.


Uncommitted records are kept in the UNDO tablespace .The moment we issue a commit , the committed records get written to online redo log files. From there the DBWn process keeps on writing these committed records to the datafiles based on the occurence of checkpoints . In case any failure occurs before the committed records are written to the datafiles , those records can be updated from the redo logs. This is what i know .


The lines from docs.oracle.com "Theonline redo logis a set of two or moreonline redo log filesthat record all changes made to the database, including both uncommitted and committed changes. Redo entries are temporarily stored in redo log buffers of the system global area, and the background process LGWR writes the redo entries sequentially to an online redo log file. LGWR writes redo entries continually, and it also writes a commit record every time a user process commits a transaction."


Now i need to know ..

1) Why does oracle bother about uncommitted changes ? Uncommitted changes are already in undo tablespace so why does it need to write it to the redo logs.

2) what do we mean by " it also writes a commit record every time a user process commits a transaction."


3) Also , is it a fact that the UNDO tablespace data survives even if the database is restarted ?
This post has been answered by Aman.... on Dec 25 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2013
Added on Dec 25 2012
15 comments
596 views