Question on Differential Incremental Backup script.

Version:11g
OS : AIX 5.3
I only have theoretical knowledge of RMAN. I am planning to implement Differential Incremental Backup for my database. My strategy is
a. Weekly level 0 backup at Sunday morning 2:00 am
b. Daily Level 1 Differential Incremental Backups at 2:00 am from Monday to Saturday.
c. Backup all archived log filesFirst script to perform level 0 backup -- This script will be run by a cron job every Sunday morning 2:00 am
==================================================================
run {
allocate channel ch1 device type disk;
backup incremental level 0 format '/u07/rman_backup/FULL_%d_%u' database tag "weekly_full";
backup format '/u07/rman_backup/RMAN_CTL%s:%t:%p.bkp' current controlfile;
release channel ch1;
allocate channel ch1 device type disk;
backup (archivelog all  format='/u08/rman_backup/archbkp_dir/ARCH_%d_%T_%u_s%s_p%p' DELETE INPUT TAG "archivelogs");
release channel ch1;
}The below script is to perform level 1 Differential Incremental Backups for the next 6 days. This script will be run daily
at 2:00 am monday to saturday by a cronjob. I'll create 6 scripts like below, the only difference being the TAG "Monday-level1","Tuesday-level1"...etc.
=======================================================
run {
allocate channel ch1 device type disk;
backup incremental level 1 format '/u07/rman_backup/RMAN_DBF_%s:%t:%p.bkp' database tag "Monday-level1";
backup format '/u07/rman_backup/RMAN_CTL<%s:%t:%p>.bkp' current controlfile;
release channel ch1;
allocate channel ch1 device type disk;
backup (archivelog all  format='/u08/rman_backup/archbkp_dir/ARCH_%d_%T_%u_s%s_p%p' delete input tag "archivelogs");
release channel ch1;
}Question 1.
Is my level 1 script correct ?
Question2.
Will the above scripts for level 0 and level 1 automatically delete the
obsolete level 0 and level 1 backup files when a new weekly cycle starts?
Any more enhancements(or corrections) you gurus want to suggest?

Above scripts seems to be correct.
Why you don't test it on test environment?
These codes don't delete obsolete backups of the database. Then just delete backed up archived redo log files due to DELETE INPUT command
If you use retention policy to recovery window of 7 days, to delete obsolete backups you need to run CROSSCHECK command and then DELETE OBSOLETE to delete all obsolete backups
My suggestions
- Practice it on test environment
- Read documentation before performing any tests
- Try to understand each line of these scripts based on documentation

Similar Messages

  • Differential Incremental Backup or Incrementally Updated Backup?

    DB Version:11g
    DB Size:450Gb
    DB type: OLTP (storing retail warehouse transactions)
    To implement a proper backup strategy, we are currently weighing the Pros and Cons of Differential Incremental Backup and Incrementally Updated Backup.
    I understand that , for Incrementally Updated Backup , the level 0 backup must be stored in FRA. We don't want to configure FRA as of now.
    Which backup strategy would you choose for a similair environment?

    I don't think that 11g RMAN level 0 backup need to use FRA: can you provide us the link to Oracle doc ?
    When designing your backup strategy you need to define:
    RTO: recovery time objective
    RPO: recovery point objective.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14210/hadesign.htm
    To meet a low RTO objective, you may need to use incrementally updated backup because it should be faster to recover from incrementally updated backup compared to differential incremental backup.

  • Incremental Backup Script ?

    I'm plannig to implement INcremental level backup policy with Incrmental backup every day and full backup every week on Sunday.
    plz can anybody help with the basic script of this backup policy.
    do we will have 2 different script each for Incremental and Full backup or the common one?
    Thanx
    Gagan

    duplicate thread as m.kaur has already given you script over here.
    Script for daily Incremental Backup with Weekly full back?
    AFAIK  you will have two diffrent script cause both has two backed up on diffrent days.
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • RMAN weekly full backup and daily incremental backup script.

    Hallo! I would like to implement an Oracle 10g database backup policy where every Sunday night at 10 pm, a hot full compressed database backup is done, for every other day i.e. Monday to Saturday, a daily incremental compressed backup is done also at 10 pm.
    If anyone as an RMAN script that can perform such a backup, please provide me with it.
    Thanks.

    4joey1 wrote:
    Hallo! I would like to implement an Oracle 10g database backup policy where every Sunday night at 10 pm, a hot full compressed database backup is done, for every other day i.e. Monday to Saturday, a daily incremental compressed backup is done also at 10 pm.
    If anyone as an RMAN script that can perform such a backup, please provide me with it.
    Thanks.I would suggest you to try it by your own
    Use DBMS_SCHEDULER or cron job (I hope you're using Linux) to create a schedule which invokes rman script to take backup you want
    Try it and we'll help you
    "Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime"
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Production server Incremental Backup is restoring in Testing server

    Dear All,
    Currently our Production database is running in windows 2003 server , Oracle version is 10.2.0.4.0
    Now my question is daily incremental backup of production server will be restored in testing server (same configuration in production server
    and testing server ) how can i achieve this .....
    Regards,
    S.Arun

    Hi Oradba,
         Thanks for your response. I went through the link and we need this only for testing purpose and not for reporting.
    We need to take incremental backup and restore it in testing server. Is it possible to do this without RMAN.(Due to some Business reasons)
    Thanks & Regards,
    S.Arun

  • Can we take Incremental backups without Level 0 backups

    Kindly share the procedure if any by which we can initiate an incremental backup without Level 0 backup

    Kindly share the procedure if any by which we can initiate an incremental backup without Level 0 backup
    There is NO such procedure.
    You can't 'increment' something that doesn't exist can you?
    Please increment the previous number by 1. Can you do that? Of course not because there IS no previous number.
    BY DEFINITION (see the doc) an incremental backup for any level but 0 REQUIRES a previous backup:
    an incremental backup copies only those data blocks that have changed since a previous backup
    A level 1 incremental backup can be either of the following types:
      A differential incremental backup, which backs up all blocks changed after the most recent incremental backup at level 1 or 0
      A cumulative incremental backup, which backs up all blocks changed after the most recent incremental backup at level 0
    Incremental backups are differential by default.

  • Incremental backups

    Hi,
    I'm looking for an incremental backup script. I lookled in Oracle® Database
    Backup and Recovery Advanced User’s Guide10g Release 2 (10.2)B14191-02but I did not found. I wonder if this one is correct :
    run { 
    allocate channel Channel1 type disk format 'E:\oracle\product\10.2.0\Backup\bd1/bck_bd1_INC_%u_%p_%c';
    backup incremental level 1
    ( database include current controlfile );
    backup ( archivelog all delete input );
    allocate channel for maintenance device type disk;
    delete obsolete device type disk;
    Many thanks.

    thank you, In my LEVEL 0 script I have
    backup ( archivelog ALL DELETE input );
    then I delete the same line in LEVEL 1 script ?
    Regards.

  • Mix Incremental Backups?

    Hi all,
    can I mix incremental backups. for example, some days do differential incremental backups and other days do cumulative incremental backups?
    thanks!!!!

    Up to which point in time do you want to restore? If you have a failure after the differential backup on Thursday and you want to perform a complete recovery, RMAN needs the level 0 backup, the cumulative backup from Wednesday and the differential backup from Thursday. RMAN ignores the differential backups from Monday and Tuesday.
    For a point in time recovery before the Wednesday cumulative backup, RMAN would need the level 0 backup and both differential backups from Monday and Tuesday.
    That's the principle,if there's a cumulative backup available,all differential backups made before this backup are not needed for recovery AFTER the cumulative backup was made.
    Werner

  • Windows Server backup script won't do differential/incremental

    What follows is a script that doesn't seem to do backups on an incremental basis so it is creating full backups each time.
    ++++++++++
    param(
      [string]$volLetter,
      [string]$scriptStorageLocation
    function prepare-disk($checkDiskCriteria,$diskOrVolume){
        if($diskOrVolume -eq 'disk'){
        $disks = Get-WBDisk
        $selected = $disks|?{$_.DiskName -match $checkDiskCriteria}
        elseif($diskOrVolume -eq 'volume' ){
        $allVolumes = Get-WBVolume -AllVolumes
        $selected = $allVolumes|?{$_.MountPath -match $checkDiskCriteria}
    return $selected
    function add-volumeMountPoint($policyAdd,$mountPoint){
        $matchVolumes = Get-WBVolume -AllVolumes
        $correctVolume = $matchVolumes | ?{ $_.MountPoint -eq $mountPoint}
        Add-WBVolume -Policy $policyAdd -Volume $correctVolume;
        return $policyAdd
    function add-VMToWB($policyAdd,$vmName){
    $vmObject = Get-WBVirtualMachine |?{ $_.VMName -eq $vmName}
    $vmobject='PCLaw';'2012CORPEXCHANGE';'File Server';'DC1'
    Add-WBVirtualMachine $policyAdd -VirtualMachine $vmObject
    return $policyAdd
    function remove-policy(){
    $policy = get-wbpolicy -editable
    $policy|export-clixml 'backup.xml'
    remove-wbpolicy $policy -force
    function restore-policy($wbBackupTarget){
    $policyRestore = import-clixml 'backup.xml'
    $global:newPolicy = new-wbpolicy
    Set-WBSchedule -Policy $newPolicy -Schedule $policyRestore.Schedule
    $VolumeBackupLocation = New-WBBackupTarget -Volume $wbBackupTarget
    Add-WBBackupTarget -Policy $newPolicy -Target $VolumeBackupLocation
    if($([string]$policyRestore.VssBackupOptions) -match 'VssFullBackup' ){Set-WBVssBackupOptions $global:newPolicy -VssFullBackup;write-host 'foundFull'}
    else{Set-WBVssBackupOptions $global:newPolicy -VssFullBackup;write-host 'FoundCopy'}
    $newPolicyBound = $policyRestore.VolumesToBackup|%{add-volumeMountPoint $global:newPolicy $_.MountPoint;}
    $global:newPolicy = $newPolicyBound[-1]
    if($policyRestore.BMR){Add-WBBareMetalRecovery $global:newPolicy}
    if($policyRestore.SystemState){Add-WBSystemState $global:newPolicy}
    $newPolicyBound = $policyRestore.ComponentsToBackup | %{ add-VMToWB $global:newPolicy $_.VMName}
    $global:newPolicy = $newPolicyBound[-1]
    write-host -fore cyan 'Final Policy'
    $global:newPolicy
    Set-WBPolicy $global:newPolicy
    function rename-WIB($pathWIB,$dateOfBackup){
    if(test-path $pathWIB){
        $newName = "WIB_"+$dateOfBackup
        rename-item $pathWIB -newName $newName
    Add-WBBackupTarget -Policy $newPolicy
    Set-WBPolicy $newPolicy
    if(!($scriptStorageLocation)){
    $scriptStorageLocation = 'C:\Techbase\WindowsBackupRecreationScript';}
    $volCheck = $volLetter+":";
    $pathNew = $volLetter+":\WindowsImageBackup";
    $dateOfBackup = Get-Date -UFormat "%Y_%m_%d";
    $volName = $volLetter+":";
    if(!(test-path "$scriptStorageLocation\WBfile.txt")){
    $diskOrVolumeInput = Read-host 'Are you using a disk or a volume (type d or v)?'
    $diskOrVolumeInput = $diskOrVolumeInput.ToLower();
        if(($diskOrVolumeInput -eq 'v') -or ($diskOrVolumeInput -eq 'd')){
            New-Item "$scriptStorageLocation\WBfile.txt" -type file
            Add-content "$scriptStorageLocation\WBfile.txt" $diskOrVolumeInput        
                if($diskOrVolumeInput -eq 'd'){
                    disk
                    $diskNum= Read-host 'Please select the disk number ?'
                    Add-content "$scriptStorageLocation\WBfile.txt" $diskNum
                elseif($diskOrVolumeInput -eq 'v'){
                    $allVolumes = Get-WBVolume -AllVolumes;
                    $allVolumes|Select  *;
                    $diskVol= Read-host 'Please type in the letter of the Mountpath you would like to use (Only type in the letter)?'
                    $diskVol = $diskVol.ToUpper();
                    Add-content "$scriptStorageLocation\WBfile.txt" $diskVol
        else{
            Write-host -fore red 'Sorry the input was not an available option.'
    else{
    write-host 'Your configuration file was ready when this script is executed.';
    $info = gc "$scriptStorageLocation\WBfile.txt"
        if($info[0]='v'){
            write-host -fore cyan $info[1]
            $WB_Volume = prepare-disk $info[1] 'volume'
            $locationOfWIB = $info[1] +":\WindowsImageBackup";
            rename-WIB  $locationOfWIB $dateOfBackup
            remove-policy
            restore-policy $WB_Volume
        elseif($info[0]='d'){
            $WB_Disk = prepare-disk 'WD My Book 1230 USB Device' 'disk'
            $WB_Disk;
    +++++++++++
    Also what follows is the most recent backup policy.
    +++++++++++++++++++
    - <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
    - <Obj RefId="0">
    - <TN RefId="0">
      <T>Microsoft.Windows.ServerBackup.Commands.WBPolicy</T>
      <T>System.Object</T>
      </TN>
      <ToString>Microsoft.Windows.ServerBackup.Commands.WBPolicy</ToString>
    - <Props>
    - <Obj N="Schedule" RefId="1">
    - <TN RefId="1">
      <T>System.Collections.Generic.List`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</T>
      <T>System.Object</T>
      </TN>
    - <LST>
      <DT>2014-10-14T19:30:00</DT>
      </LST>
      </Obj>
    - <Obj N="BackupTargets" RefId="2">
    - <TN RefId="2">
      <T>System.Collections.Generic.List`1[[Microsoft.Windows.ServerBackup.Commands.WBBackupTarget, wsbcmdlet, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
      <T>System.Object</T>
      </TN>
    - <LST>
    - <Obj RefId="3">
    - <TN RefId="3">
      <T>Microsoft.Windows.ServerBackup.Commands.WBBackupTarget</T>
      <T>System.Object</T>
      </TN>
      <ToString>F:</ToString>
    - <Props>
      <S N="Label">3TB USB</S>
      <Nil N="WBDisk" />
      <S N="WBVolume">3TB USB (F:)</S>
      <S N="Path">\\?\Volume{7f5bcfe6-a050-44be-80c9-b056f0121819}</S>
      <S N="TargetType">Volume</S>
      <B N="InheritAcl">true</B>
      <B N="PreserveExistingBackup">true</B>
      </Props>
      </Obj>
      </LST>
      </Obj>
    - <Obj N="VolumesToBackup" RefId="4">
    - <TN RefId="4">
      <T>System.Collections.Generic.List`1[[Microsoft.Windows.ServerBackup.Commands.WBVolume, wsbcmdlet, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
      <T>System.Object</T>
      </TN>
      <LST />
      </Obj>
    - <Obj N="FilesSpecsToBackup" RefId="5">
    - <TN RefId="5">
      <T>System.Collections.Generic.List`1[[Microsoft.Windows.ServerBackup.Commands.WBFileSpec, wsbcmdlet, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
      <T>System.Object</T>
      </TN>
      <LST />
      </Obj>
    - <Obj N="FilesSpecsToExclude" RefId="6">
      <TNRef RefId="5" />
      <LST />
      </Obj>
    - <Obj N="ComponentsToBackup" RefId="7">
    - <TN RefId="6">
      <T>System.Collections.Generic.List`1[[Microsoft.Windows.ServerBackup.Commands.WBApplicationComponent, wsbcmdlet, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
      <T>System.Object</T>
      </TN>
    - <LST>
    - <Obj RefId="8">
    - <TN RefId="7">
      <T>Microsoft.Windows.ServerBackup.Commands.WBVirtualMachine</T>
      <T>Microsoft.Windows.ServerBackup.Commands.WBApplicationComponent</T>
      <T>System.Object</T>
      </TN>
      <ToString>0E91F216-553D-4C7C-8178-A09E5D081020\</ToString>
    - <Props>
      <S N="VMName">PCLaw 2008 R2</S>
      <S N="ComponentName">0E91F216-553D-4C7C-8178-A09E5D081020</S>
      <S N="LogicalPath" />
      <S N="Caption">Backup Using Saved State\PCLaw 2008 R2</S>
      <G N="WriterId">66841cd4-6ded-4f4b-8f17-fd23f8ddc3de</G>
      <G N="InstanceId">b0f4f239-bcc6-408f-9db6-b66d5de9458d</G>
      </Props>
      </Obj>
    - <Obj RefId="9">
      <TNRef RefId="7" />
      <ToString>12DCBB00-87D9-4660-82E1-E01245A5E011\</ToString>
    - <Props>
      <S N="VMName">2012CORPEXCHANGE</S>
      <S N="ComponentName">12DCBB00-87D9-4660-82E1-E01245A5E011</S>
      <S N="LogicalPath" />
      <S N="Caption">Backup Using Saved State\2012CORPEXCHANGE</S>
      <G N="WriterId">66841cd4-6ded-4f4b-8f17-fd23f8ddc3de</G>
      <G N="InstanceId">b0f4f239-bcc6-408f-9db6-b66d5de9458d</G>
      </Props>
      </Obj>
    - <Obj RefId="10">
      <TNRef RefId="7" />
      <ToString>8A769D3A-4B21-419A-8BA2-584EC3168C51\</ToString>
    - <Props>
      <S N="VMName">File Server</S>
      <S N="ComponentName">8A769D3A-4B21-419A-8BA2-584EC3168C51</S>
      <S N="LogicalPath" />
      <S N="Caption">Backup Using Saved State\File Server</S>
      <G N="WriterId">66841cd4-6ded-4f4b-8f17-fd23f8ddc3de</G>
      <G N="InstanceId">b0f4f239-bcc6-408f-9db6-b66d5de9458d</G>
      </Props>
      </Obj>
    - <Obj RefId="11">
      <TNRef RefId="7" />
      <ToString>A912807A-04FE-4AB6-981B-01D6489865D6\</ToString>
    - <Props>
      <S N="VMName">DC1</S>
      <S N="ComponentName">A912807A-04FE-4AB6-981B-01D6489865D6</S>
      <S N="LogicalPath" />
      <S N="Caption">Backup Using Saved State\DC1</S>
      <G N="WriterId">66841cd4-6ded-4f4b-8f17-fd23f8ddc3de</G>
      <G N="InstanceId">b0f4f239-bcc6-408f-9db6-b66d5de9458d</G>
      </Props>
      </Obj>
      </LST>
      </Obj>
      <B N="BMR">false</B>
      <B N="SystemState">false</B>
      <B N="OverwriteOldFormatVhd">false</B>
    - <Obj N="VssBackupOptions" RefId="12">
    - <TN RefId="8">
      <T>Microsoft.Windows.ServerBackup.Commands.VssBackupOptions</T>
      <T>System.Enum</T>
      <T>System.ValueType</T>
      <T>System.Object</T>
      </TN>
      <ToString>VssFullBackup</ToString>
      <I32>0</I32>
      </Obj>
      </Props>
      </Obj>
      </Objs>
    ++++++++
    +++++++++++++++++++++++++
    Script does everything perfect except for the backup not being incremental/differential - it just creates a different folder each iteration that it puts the backup into.
    I would appreciate if someone could go through and let me know what we might be doing wrong - why we are not able to get this job to be incremental/differential.
    Thanks in advance.

    Hre are all of the options for Windows Backup:
    http://technet.microsoft.com/en-us/library/ee706670.aspx
    If you can find an incremental backup naywhere in the options then I will admit I have missed something.
    The old Windows Backup, pre-2008, could do incremental backups.  The newer backup system is minimal and serves different purposes.
    The question about how to use a subsystem of Windows is NOT a scripting question.  It is a "how-to" for a Windows component.
    If you do not understand the scrip tyou posted then I recommend finding someone with sufficient understanding of Windows and the new backup Cmdlets to help you top understand how they work.
    Here is the Microsoft description of Windows Server Backup:
    Windows Server Backup consists of a Microsoft Management Console (MMC) snap-in, command-line tools, and Windows PowerShell cmdlets that provide a complete solution for your day-to-day backup and recovery needs. You can use Windows Server Backup to back
    up a full server (all volumes), selected volumes, the system state, or specific files or folders—and to create a backup that you can use for bare metal recovery. You can recover volumes, folders, files, certain applications, and the system state. And, in case
    of disasters like hard disk failures, you can perform a bare metal recovery. (To do this, you will need a backup of the full server or just the volumes that contain operating system files, and the Windows Recovery Environment—this will restore your complete
    system onto your old system or a new hard disk.)
    You can use Windows Server Backup to create and manage backups for the local computer or a remote computer. And, you can schedule backups to run automatically.
    Windows Server Backup is intended for use by everyone who needs a basic backup solution—from small business to large enterprises—but is even suited for smaller organizations or individuals who are not IT professionals.
    It specifically states that only a full server or selected file,device backup is possible.  There is no statement of incremental backup.  Windows Server backup is intended for server recovery.
    If you type "help Set-WBVssBackupOptions
    -full" you will see that there are only two options "full" and "copy".
    Please post your issues in the WS2008 or the WS2012 forum to get more information on how the Windows Server backup service works.
    ¯\_(ツ)_/¯

  • Incremental Backups are Cumulative Vs Differential??

    Dear all,
    The followings are Weekly Full Backup and Daily Backup scripts:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    allocate channel ch1 type disk format '/u02/db/backup/RMAN/backup_%d_%t_%s_%p_%U.bck';
    backup incremental level 0 database plus archivelog delete all input;backup current controlfile;
    backup spfile;
    release channel ch1;
    Daily Backup:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    allocate channel ch1 type disk format '/u02/db/BACKUP/RMAN/backup_%d_%t_%s_%p_%U.bck';
    backup incremental level 1 cumulative database plus archivelog delete all input;delete noprompt obsolete;
    delete noprompt archivelog all backed up 2 times to disk;
    backup current controlfile;
    backup spfile;
    release channel ch1;
    I will do the full backup on Sunday and daily backup on Mon to Sat.
    Scenario 1:
    Incremental Backups are cumulative, I need of sunday full backup and tuesday daily backup to restore the database if crash on wednesday.
    Scenario 2:
    Incremental Backups are differential, then I need of sunday full backup and all incremental backups until crash.
    I am wondering which scenario (1 or 2) is for my scripts that I post on above? Because I have different answer from others.
    Best Regards,
    Amy

    Your scripts are following the scenario 1. Incremental backups are by default
    differential. Since you are using the keywork CUMULATIVE, it's the 1 scenario.
    What made you doubtfull? Scripts are straight forward.......

  • Script for daily Incremental Backup with Weekly full back?

    Hi Can abybody plz give me the scrip for the daily incremental backup and weekly full backup.
    Do we need 2 different scripts each for Incrmental and Full Backup or one will do.
    Thanx in advance
    Gagan

    I will suggest you always
    -backup archivelog daily when after yours backup database completion
    -keep two days archivelog out of yours database storage to others device or
    always take frequent archivelog to tape cartrideg after an hour depends yours
    database activity pace.
    You should also include archivelog backup within these backup scripts to others teriotry device i.e tape cartridge as well keep frequent archivelog backup if you think yours backup storage space is an issue or if you dont trust on yours backup storage media,keep an alternate tape cartridge for archivleog for frequent archivelog backup after every one hours depends the pace of yours database activity.Either backup archivelog frequently or multiplex the archvivelog to other devices.
    Now you probably may confuse thats why i need archivelog backup command within this script when i am going to take incremental/full backup, its due to some thing happened with yours last backup got corrupted then you have alternate to restore before last backup.
    Mon      Incremental + Archivelogs
    Tue       Incremental + Archvielogs
    Wed      Yours Database files got smokesWhat will you do
    You will restore Tue backup and will apply alls redo from archivelogs which are generated to other devices yours data chances to be lost is minumum.You may lose only the current archivelog which is not yet to be log switched.If yours archivelog destination devices may corrupt then you have alternate to restore from tape cartridge.
    If yours Tue backup cannot be restored even though you validate it after backup then you will have alternate to restore monday backup and you have backup of tue archivelog as well yours two days archivelog is also at another device then you may also recover the database till before crash.In this case you may lose only the current archivelog which is not yet to be log switched.
    You cannot pile up archivelog to others device cause they begin to take a serious issue on disk thats why i mentioned two days archivelog to other device.
    I hope now you clear why archivelog backup is essential with daily backup either its incremental or non incremental.
    Khurram

  • Question about using an incremental backup to update a standby

    We have a 2TB Oracle 10g database with a standby and the application that uses it is about to be updated.  We're using cumulative incremental backups with block change tracking to back it up with weekly level 0 backups.  The application upgrade will be making a lot of changes (several hundred GB) and we have stop the standby during the upgrade process as a quick way to get back (we don't have the space for a flashback recovery) in the event that there are issues with the upgrade.  We can just let the archivelogs back up and get them over to the standby and applied once they decide they like the upgrade but, it looks like it would be simpler and perhaps quicker to use an incremental backup to update the standby.  I probably won't but, If we do that, it looks like we can turn off archivelogs in the primary and not deal with them at all.  I've never tried this but, I do have some questions.
    Does it make sense to take this approach?
    If we were to turn off archivelogs in the primary, would that have any effect on block change tracking?  I don't see why it would but, had to ask.  Of course, we would turn archivelogs back on and take a level 1 backup after the upgrade.
    Thanks in advance for the education.

    Funny you should mention that rolling upgrade,  I'm actually planning to do that in another environment.  My testing says it works pretty well and I'll be able to move a 400GB database to new hardware and upgrade it to 11g with very little downtime.  However, in this case, the database is not being upgraded.  The application is.  It's just that, as part of that upgrade, there are a lot of updates and I'd just as soon not deal with the archivelogs for that. Here's what I was thinking about:
    Set logs shipping to defer in the primary.
    Stop log apply in the standby.
    Turn off archivelogs in the primary.
    Do the application update.
    If they like the results, turn archivelogs back on in the primary.
    Take an rman incremental backup from scn in the primary.
    Apply the incremental backup to the standby.
    Start log log apply in the standby.
    Start log shipping in the primary.
    The process for getting and using the incremental is described here:
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BGBCEBJG
    This isn't your regular incremental backup.
    So, am I the only crazy one?  Has anyone else tried this?

  • Unix Backup Script Question

    Hello -
    I want to compare file system dates (on AIX) for a backup script. For example, after the backup completes, I want to compare the timestamps on each backed up file with the the time the backup started. I should not see any timestamps prior to the start time of the backup.
    Does anyone know how to do this in Unix?
    Any help is greatly appreciated!
    Thanks,
    Mike

    At the beginning of your backup use the touch command on a flag file of some kind. This will set the modified date to the current system time.
    At the end of your backup compare the modified time of the flag file to the other files. Something like:
    touch flag.file
    < do your backup >
    filelist=`ls filespec for files of interest`
    for f in $filelist
    do
       if [ $f -nt flag.test ]; then
          report it
       fi
    done[pre]
    HTH
    John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Incremental Backup question

    Hi,
    I have a hot backup taken every wednesday and archive log backups taken every day. (using RMAN and netbackup). Oracle is 10.2.0.3 and OS is RHEL4.
    Do I still need or (will it be helpful to have ) incremental backups? What is its purpose? Will the recovery be faster if I have incremental backups? Please comment.
    Thank you,

    i guess this is a good best practice found in Expert Oracle Database by Sam Alapati
    "If you expect few changes in data, you are better off using incremental backups, since they
    won’t consume a lot of space. Incremental backups, as part of your backup strategy, will reduce the
    time required to apply redo during recovery. However, if most of your database blocks change frequently,
    your incremental backups will be quite large. In such a case, you are better off making a
    complete image copy of the database at regular intervals."
    Edited by: doro on Aug 19, 2011 1:57 PM

  • BRU incremental Backup Questions/Help

    Hello Ladies and Gents,
    I'm in desperate need of some help. I purchased Bru Le 1.3.0 about 2 weeks ago and going to use it for the clients Backup Strategy for over 2TB of data.
    I used retrospect in the past but retro has been giving them major issues and has been unreliable; therefore the reason to switch to Bru.
    Configuration: Xserve/XRAID backing up to Two sets of Lacie Drives 2x 1.8TB striped together = one single 3.6TB drive. One 3.6TB is daily and the Second is a weekly Off-site.
    Let me preface this with the understanding that I'm not super savvy with Command-line....
    The Goal is to Create incremental daily backup!
    I started by creating a Full Backup compression level 1, now I'm trying to change that to an Incremental Backup - But when I try to select the base (which I thought would be the Full Backup I created) - I get an Error "Incorrect Base Definition" -- Which means I did this Wrong.
    How do I Correctly create a proper Base Definition for an Incremental Backup?
    Thanks
    david
    XServe - XRAID   Mac OS X (10.4.10)   Bru LE - 1.3.0
    G5   Mac OS X (10.4.10)  

    Have you run a backup of the datafiles already?
    Looking the documentation it says the following:
    When using these commands, there must already exist an image copy of every datafile specified in the command. If there are multiple copies of a datafile, the latest one is used. RMAN issues an error if image copies of every datafile in the database or tablespace do not exist.From what you're saying this looks like the case with your backups.
    I suggest running a backup of the current datafiles, then running a backup copy and querying RMAN to check the copy exists.
    RMAN> List backup;Documenation Link: http://download.oracle.com/docs/cd/B13789_01/server.101/b10734/rcmconc1.htm
    Edited by: Kerri_Robberts on Aug 12, 2011 3:58 PM

Maybe you are looking for