Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Roll forward using Archive Logs

Re: Roll forward using Archive Logs

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Tue, 16 May 2006 00:25:44 +0200
Message-ID: <e4av57$dqb$02$1@news.t-online.com>


Chintu schrieb:
> docs -> Backup and Recovery Concepts pg 48 says
> " crash or instance reecovery use only online redo logs and never
> require use of archive log "
>
> My question is how will it rollforward if the redo for pending
> transaction are in archive logs ???
>
> Thanks
>
> Chintu
>

Redo can be archived only after the log switch, switch cause a checkpoint which in turn force dbwr to write all dirty buffers to the datafiles. By doing so oracle synchronize the versions of data blocks in cache and in datafiles. This means, if you do an update emp set ename='ELLISON' where ename = 'KING' and do a logswitch, then corresponding block in datafile will contain the version with 'ELLISON' ( if not overwritten by more recent change ). So, if you do rollforward, you don't need to start with an very old version of block ( information of which may be contained in archived log), but with almost recent version of it. In other words, Oracle makes it sure, that changes, which should be applied to the data block from datafile to bring it up on the most recent state, is contained in online redo logs.

I would also recommend to read an excellent post from Tanel Põder, which relates to the question you are interested in http://www.freelists.org/archives/oracle-l/12-2005/msg00537.html

Best regards

Maxim Received on Mon May 15 2006 - 17:25:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US