| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: why do you apply undo before redo?
Ryan wrote:
> "Jan Hidders" <jan.hidders_at_REMOVETHIS.pandora.be> wrote in message > news:Cwzgc.76768$nU5.5168180_at_phobos.telenet-ops.be... >
> > databases >>>>I didn't want to type it. Its 'Database Systems Concepts'. The one used
>>>>>are recovering undo is applied before redo.
>>>>
>>>>Any specific reason why you would like the title of the book to remain a
>>>>secret? :-)
>>>
> >>>>Not quite sure how the undo can conflict. You roll forward and apply all
>>>>>It doesn't say why. Does anyone know?
>>>>
>>>>Because some of the operations of the transactions of the UNDO list
>>>>might conflict with those in the REDO list. So if you did the undo-phase
>>>>last you might be erasing the result of some operations that you first
>>>>did in the redo-phase.
>>>
>>>don't quite get this. Oracle applies redo, then rollsback all open
>>>transactions? This is why that statement intrigued me since one database
>>>system does it the opposite way.
>>>
> > I do not see why this matters. It does not matter what the state of the > tuple is during recovery, only when it is complete.
That is what I'm talking about. What is the result of the field after recovery has completed in the two cases? The first case being first REDO and then UNDO and the second being the reverse.
> I'm at a loss on your statement. Also, oracle does it the opposite way?
I don't know enough about Oracle to comment on that.
![]() |
![]() |