Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> NOT OT! - identify which logs are need to start recovery
You are right Rahul. Oracle determines if recovery is necessary by comparing the SCN of the datafiles with the control file. This is part of what goes on when a database opens. The log sequence numbers and the SCN range associated with each log file are stored in the control file also, I believe. List, please correct me if I am wrong.
Lisa
-----Original Message-----
From: Rahul [mailto:rahul_at_ratelindo.co.id]
Sent: Thursday, March 29, 2001 3:06 AM
To: 'Koivu, Lisa'; 'Oracle List I'
Subject: RE: identify which logs are need to start recovery
Lisa/List,
when we restore a datafile from a backup, oracle will check the change# in
the header of the datafile
and will try to match it with the one in the controlfile, correct ? that's
how oracle will know that the file
is out-of-sync, now oracle will prompt from the change# as well as the log
sequence number to apply !!
from where does it get the log sequence number ? is it sotred in each
datafile ? or oralce queries it
from v$log_history ?
Rahul
> ----------
> From: Koivu, Lisa[SMTP:lkoivu_at_qode.com]
> Sent: Thursday, March 29, 2001 12:02 PM
> To: 'ORACLE-L_at_fatcity.com'; 'rahul_at_ratelindo.co.id'
> Subject: RE: identify which logs are need to start recovery
>
> Hi Rahul,
>
> I'm not sure if there's a v$ view that will tell you, I remember looking
> for this myself.
> However if you initiate recovery it will ask for the appropriate arclog,
> and you can always cancel out. During testing, I found that it will ask
> for every single one since the backup set from which you restored your
> datafile, regardless of whether or not it needs it (in this case, the
> datafile that was lost didn't contain any tables that had changed since
> the last backup. Go figure).
>
> HTH
>
> > NeoMedia >
>
>
> Enter Your PaperClick Code Here! > >
> INET: rahul_at_ratelindo.co.id
![]() |
![]() |