RE: RMAN - Rewind Backup to SCN/Point-in-Time

  • From: "Chitale, Hemant Krishnarao" <Hemant.Chitale@xxxxxx>
  • To: <asterger@xxxxxxxxxxxxx>
  • Date: Wed, 28 Sep 2011 14:21:06 +0800

*Whichever* backup method you use  (Cold Backup,  Scripted Hot Backup with 
ALTER DATABASE/TABLESPACE BEGIN BACKUP,  RMAN "consistent" or "inconsistent" 
backup),  if your backup was either
A.  Cold as of SCN 1001
B.  Hot where the start SCN was 998 and the end SCN was 1001  (i.e. 
transactions and internal operations incremented the SCN),

when you restore the backup, you *CANNOT* roll-it-back to any SCN below 1001.  
(whether you use RMAN or SQL for the RECOVER DATABASE command).

Even the Hot Backup cannot be rolled-back to SCN 998,999,1000.

Either Backup (A or B) can be used to restore and recover the database as of 
SCN 1001  *OR* any subsequent SCN if you have subsequent ArchiveLogs.


If you want to revert/rollback the database to SCN 998 or 999 or 1000, you need 
to restore a backup where the end-SCN was less than the desired SCN and then 
rollforward *that* restore using ArchiveLogs that captured the 
transactions/operations to the target SCN.



  
Hemant K Chitale 

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Alan Sterger
Sent: Wednesday, September 28, 2011 10:53 AM
To: oracle-l@xxxxxxxxxxxxx
Subject: Re: RMAN - Rewind Backup to SCN/Point-in-Time

Hello List,

I've been a DBA since Oracle 7 on enterprise class systems.  Back then, 
there was no RMAN.  Most backups where done cold, using Backup Exec, 
Veritas, ...  Even when RMAN was released, most enterprises were happy 
with their big iron tape robots or had advanced to hot, split mirror 
backups.  So yes, my knowledge of RMAN is stunted.

Robert I did buy your 10g RMAN book and have read it.  I was hoping for 
more recovery scenarios but alas, a book can't be all things to all people.

Yes, I want to recover to an earlier SCN or point-in-time than is 
contained within an incremental level 0 backup.  The point is to 
recover, the tool or method is not important.  How about SQLPlus?  How 
about Log Miner?

Cheers,

-- Alan Sterger

On 9/27/2011 9:12 PM, Alan Sterger wrote:
> Hello List,
>
> To add more information:
>
> Client once asked to restore the whole database to sometime the day 
> before the last full RMAN incremental level 0 backup.  All datafiles, 
> control files and redo were on-line.  The level 0 backup was 
> successful with 'archivelog all delete input', so there are no 
> archivelogs to rewind.
>
> Its all in the RMAN backup.
>
> I was thinking incomplete recovery to SCN or point-in-time with 
> RESETLOGS might do it.  I'm building a test database to try various 
> recovery scenarios.
>
> To reiterate: Can an entire database be recovered to an SCN or 
> point-in_time using UNTIL SCN or UNTIL TIME clause from just an 
> incremental level 0 backup?
>
> Cheers,
>
> -- Alan Sterger
>
> On 9/27/2011 3:18 PM, Alan Sterger wrote:
>> Hello List,
>>
>> Is it possible to take an RMAN backup (full or incremental level 0) 
>> and rewind it, rollback to a SCN or point-in-time within the 
>> controlfile's CONTROL_FILE_RECORD_KEEP_TIME window?
>>
>> Database is 9.2.0.8 and in Archivelog mode.
>>
>> Cheers,
>>
>> -- Alan Sterger
>>
>>
--
//www.freelists.org/webpage/oracle-l



This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.
--
//www.freelists.org/webpage/oracle-l


Other related posts: