Differential incremental backup for RAC

I inherited a CAR of two nodes (11r2 on RHEL 5.8 tikanga) with a shared network directory to be used as a backup location. He is the current backup strategy.

RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TESTdb are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;  # default
CONFIGURE BACKUP OPTIMIZATION OFF;  # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK;  # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF;  # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';  # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;  # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;  # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;  # default
CONFIGURE MAXSETSIZE TO UNLIMITED;  # default
CONFIGURE ENCRYPTION FOR DATABASE OFF;  # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128';  # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;  # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;  # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_testdb1.f';  # default

The above is for the node 1, node 2 is identical except for line 17 (he refers to the "_testdb2.f").

The backup script is below.

run
{
recovery copy of database with tag 'ORA_OEM_LVL0_TESTdb_PRIM' until time 'SYSDATE-7';
backup check logical incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LVL0_TESTdb_PRIM' database;
backup check logical archivelog all tag 'ORA_OEM_ARCH_TESTdb_PRIM';
}
allocate channel for maintenance device disk type;
crosscheck backupset;
crosscheck archivelog all;
delete noprompt obsolete device type disk;

I'm a relatively new DBA, but I think that the strategy above maybe even does not work like the "db_recovery_file_dest" SQLPLUS references + FRA (not the shared network directory) and the two places (both FRA directories) and shared network directory without large amounts of data in them.  I think that the previous owners of this CAR may not had adequate support DBA.

In any case, I thought to change the configuration as such:

RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TESTdb are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON; 
CONFIGURE DEFAULT DEVICE TYPE TO DISK;  # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';  # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/SharedNetworkDrive/ora_df%t_s%s_s%p';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;  # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;  # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;  # default
CONFIGURE MAXSETSIZE TO UNLIMITED;  # default
CONFIGURE ENCRYPTION FOR DATABASE OFF;  # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128';  # default
CONFIGURE COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;  # default
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_testdb1.f';  # default

RUN
{
RECOVER COPY OF DATABASE WITH TAG 'incr_update' UNTIL TIME 'SYSDATE - 7';
BACKUP INCREMENTAL LEVEL 1  FOR RECOVER OF COPY WITH TAG 'incr_update' DATABASE PLUS ARCHIVELOG;
DELETE ARCHIVELOG ALL;
}

I don't know that miss me a few things in my backup strategy. Any advice is greatly appreciated!

Thank you

PS - Yes, we have a license for compression

Good point about ARCHIVELOG ALL DELETE. Your suggestion would be to replace it with DELETE NOPROMPT OBSOLETE? Do I need to perform a cross-checking beforehand or Oracle already know from the backup?

  1. CONFIGURE ARCHIVELOG DELETION POLICY TO SAVED 1 TIME TO THE DISK.
  2. INCREMENTAL BACKUP LEVEL 1 for BACK OF COPY WITH TAG "incr_update" DATABASE MORE ARCHIVELOG;
  3. DELETE ARCHIVELOG ALL;

As you have Setup CONFIGURE the STRATEGY of DELETING ARCHIVELOG RMAN will not delete archivelog until archivelog backup 1 time on the disc.

But HemantKChitale have a good point, if for some reason any person clearly that the configuration you'll probably ARCHIVELOG DELETE without backup, do your backup is inconsistent.

So is advised 'INCREMENTAL BACKUP of LEVEL 1 TO RETRIEVE COPY WITH TAG "incr_update" base of DATA PLUS ARCHIVELOG DELETE INPUT' or 'BACKUP ARCHIVELOG ALL DELETE INPUT';

You can avoid delete the archivelogs without backup, because RMAN will only remove saved ARCHIVELOGS.

Tags: Database

Similar Questions

  • Is slow makes differential incremental backup restore?

    DB version: 11.2
    Platform: Unix/Unix

    Lets say we have a 1 TB database and we have 2 GB of change every day.

    For a differential incremental backup
    Sunday -->     Level 0 backup
    
    Monday -->     Level 1 backup  --------> Monday's Backup piece size of    2gb
    Tuesday-->     Level 1 backup  --------> Tuesday's Backup piece size of   2gb
    Wednesday-->     Level 1 backup  --------> Wednesday's Backup piece size of 2gb
    Thursday-->     Level 1 backup  --------> Thursday's Backup piece size of  2gb
    Friday-->     Level 1 backup  --------> Friday's Backup piece size of    2gb
    Saturday-->      Level 1 backup  --------> Saturday's Backup piece size of  2gb
    For a cumulative incremental backup, all changes Sunday will be saved for each LEVEL 1 run
    Sunday -->     Level 0 backup
    
    Monday -->     Level 1 backup  --------> Monday's Backup piece size of    2gb 
    Tuesday-->     Level 1 backup  --------> Tuesday's Backup piece size of   4gb (monday + tuesday)
    Wednesday-->     Level 1 backup  --------> Wednesday's Backup piece size of 6gb (monday + tuesday + Wednesday)
    Thursday-->     Level 1 backup  --------> Thursday's Backup piece size of  8gb (monday + tuesday + Wednesday+Thursday)
    Friday-->     Level 1 backup  --------> Friday's Backup piece size of    10gb .
    Saturday-->      Level 1 backup  --------> Saturday's Backup piece size of  12gb .
    Lets say after the backup of LEVEL 1 of Friday (incremental or cumulative), we want to restore from a backup.

    For the award of
    ================
    RMAN will take backup of level 0 Sunday and apply all differential incremental backups (2 GB) until Friday.


    For Cumulative
    ================
    RMAN will take the level 0 of the Sunday backup and apply the latest cumulative backup taken on Friday (10 GB).


    The only delay (if any) for the restoration of the differential backup is that RMAN should check all elements of backup that was created after the Sunday level 0. But y at - he's going to be a noticeable delay for RMAN in the follow-up of these elements of backup? Just search the catalog to find who are the backup items created by LEVEL 1 runs after Sunday LEVEL 0. This should take only milliseconds. Right?

    Identify the backuppieces may not take a lot of time (However if you have a lot of data files and the data files by backupset, you would still have much backupsets every day!)

    But if from your backups on tape, restore each day may have to be reading a different tape - library will pass some time 'mix tapes'.

    Hemant K Collette

  • EM12c create non-cumulative incremental backups (level 1) against target DB

    It is not available? It seems that we can create only cumulative backups RMAN incremental by Cloud 12 c (it's against a 11 GR 2 DB). No cumulative incremental are no longer supported?

    When planning a backup via the wizard, the last step shows the RMAN script, the wizard has generated for you. Have you tried clicking "Edit Script RMAN" and delete the word "cascade" of the generated script?

    I run backups using scripts stored in the recovery catalog so I do not use the Backup Wizard clicks, but it not lead to a differential incremental backup if you edit the script?

  • Importing incremental backup full

    Hello

    I would like to know if it is possible to do an increment / cumulative import export complete.

    The thing is, I have a complete backup of all the days of the week and let's say I have a problem in my DB Wednesday so I would like to import a complete backup from Tuesday and a differential from Tuesday until now. Is this possible?


    (Oracle 9i)

    Thank you.

    Best regards
    Hugo

    Data pump does not have an incremental backup for export or import. What if all you have are full dump files, then you can add filters if you know what you need, but Data Pump Import can not figure this out for you. This information is not stored in the dumpfile.

    Dean

  • Merger of the RMAN incremental backups

    Hi all

    I have a confusion.

    Sunday I L0 scheduled backup (backup as compressed).
    Then next 6 days (MON - sat) I incremental backup Level1 (differential).

    So let's assume that if I need to restore the Thursday, I need Sunday L0 and L1 of (MON, TUE, WED).

    Is it possible to merge L0 and L1 (until WEDNESDAY).

    Please specify.

    Thanks in advance.

    Kind regards
    Bikram

    As long as you use differential incremental backups, you need all of them between the last level 0 backup and recovery at the time point. It is exactly the concept of cumulative incremental backups to change this behavior. In the case of cumulative backups you would only need the full backup and the incremental backup from Wednesday.

    Werner

  • Unlike cumulative and incremental backups in RMAN premium

    Could someone please explain with example on Cumulative and differential incremental backups in RMAN... ?

    It is true that in Oracle 10 g, we have only level 0 and level 1 incremental backups?

    -Yasser

    incremental backup diffrentail backup of the blocks that have changed since the last level or same level backup IE

    SAT             L0     (include blocks which ever been used block 1,2,3)
    after that             block changed only 3
    SUN             L1     (block 3)
    after that             block changed occur 2
    MON             L1     (include block only 2)
    Mon (night)     L2     (include those block which modified after Monday L1 backup)
    
    Cumulative will take backup with its level (n-1)
    
    SAT             L0     (include blocks which ever been used block 1,2,3)
    after that             block changed only 3
    SUN             L1     (here n is 1 then n-1=0 include block 1,2,3)
    MON             L1     (here n is 1 then n-1=0 include block  1,2,3)
    Mon (night)     L2     (here n is 2 then n-1=1 include those block which modified after Monday L1 backup)
    

    Khurram

  • What is the right tag for level 1 incremental backup?

    We have a level 0 backup Sunday like this:

    Run {}

    Compressed backupset backup

    filesperset 1

    database incremental level 0

    tag = "LEVEL_0_BACKUP."

    include current controlfile

    more entered archivelog delete;

    SQL 'alter database backup controlfile to trace. "

    }

    And level 1 incremental backup Monday Saturday like this:

    Run {}

    Compressed backupset backup

    database incremental level 1

    tag = "LEVEL_1_BACKUP."

    include current controlfile

    more entered archivelog delete;

    SQL 'alter database backup controlfile to trace. "

    }

    These scripts exist some time ago. I wonder if the level 1 tag must be same as level 0 to all combined together?

    Please advice kindly.

    849425 wrote:

    Thanks for all your response.

    What, in my opinion, is with block change tracking turned on, is that the differential must roll in the full backup of level 0?

    What makes you think that?  Block change tracking allows simply to rman avoid having to analyze each block to see if it needs to be saved.

    I've never heard of a differential (level 1) 'random' in level 0.

    Recovery begins by restoring the files of level 0.  Followed by the restoration of the blocks from level 1.  Follow up by applying archived redo changes.  Follow-up (if necessary) changes it again online.

    As stated previously, the tags are just user-defined labels.  Use however seems them appropriate - after fully understand what they are and what they are not. Tags specified by the user are not even necessary. I'd be cautious about change in a system already set up and running.

  • Win 7: incrementing error backup and restore previous "Windows backup has not been implemented" and that "Windows cannot find a backup for this computer".

    * - Title original - Win 7: incrementing previous backup and restore

    Last week, I did a "backup and recovery" on my Win 7 64 bit computer, create a folder WindowsImageBackup 118 GB on an external HARD drive.

    I like incremental backup the same material on a base weekly, I tried to do the first incremental backup this morning.
    However, my "Backup and Restore" menu control configuration\systeme and securite\ tells me that "Windows backup was not put in place" and that "Windows cannot find a backup for this computer", even if the external HARD disk is attached and recognized.
    How can I set B R & to realize progressively the same backup that I did last week?  I don't want the schedule to run regularly, but will do it manually.
    Thank you
    Colin

    Hello

    Did recent changes to the computer?

    I suggest you to refer to these articles and check if they can help you.

    What backup settings should I use to maximize my disk space? : http://windows.microsoft.com/en-NZ/windows7/What-backup-settings-should-I-use-to-maximize-my-disk-space

    Backup and restore: frequently asked questions: http://windows.microsoft.com/en-us/windows7/back-up-and-restore-frequently-asked-questions

    For more information:

    Windows backup does not an incremental backup media when the Windows Media Player Network Sharing Service is enabled in Windows 7: http://support.microsoft.com/kb/981470

    I hope this helps.

  • How to find sizes backupset for full and incremental backups

    How can I get the exact sizes of backupsets, full and incremental backups RMAN? In addition, it would be nice to separate the backupset size in data and archiving logs files.

    Don't know exactly what you can include in your output, but the following is an example:

    SQL> select ctime "Date"
      2       , decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type
      3       , bsize "Size MB"
      4  from (select trunc(bp.completion_time) ctime
      5          , backup_type
      6          , round(sum(bp.bytes/1024/1024),2) bsize
      7     from v$backup_set bs, v$backup_piece bp
      8     where bs.set_stamp = bp.set_stamp
      9     and bs.set_count  = bp.set_count
     10     and bp.status = 'A'
     11     group by trunc(bp.completion_time), backup_type)
     12  order by 1, 2;
    
    Date      BACKUP_TYPE    Size MB
    --------- ----------- ----------
    03-JUL-10 Archive Log       7.31
    03-JUL-10 Full             29.81
    03-JUL-10 Incremental    2853.85
    04-JUL-10 Archive Log       3.59
    04-JUL-10 Full              7.45
    04-JUL-10 Incremental       3.05
    
    6 rows selected.
    
  • Incremental backup

    Hello

    I have a problem with incremental backups RMAN level 1 "too big (50-75% of the total DB dimensions, including the archive logs).

    Attempted to change the cumulative incr to differential backups to limit the data to back up.

    So, I would like to confirm that I actually run differential backups and not be combined during the days of the week.

    Anyone have a query which can check the type of backup that I used?

    It s an OLTP database running Oracle 11.2.

    Sorry for not adding the view all and everything but I m at home after working hours, try to understand this.

    See you soon

    Hello

    User RMAN must use a name in the 'format' or 'tag' option or two to show

    type of backup was made.  For example:

    database backup incremental level 0 format 'c:\temp\diff_incr_zero_%U.bak ';

    or

    database backup incremental level 0 tag diff_incr_zero;

    Without the tag, or format clauses specifying the type of backup performed.

    It is not possible to use the RMAN list or any point of view RMAN command to determine

    the difference of these two types of backups.

    Thank you

  • Unable to perform an incremental backup

    I am trying to perform an incremental backup.  I have an old full backup and I did another full backup yesterday.  The last full backup was successful.

    When I try to load the full backup for the gradual process, 13 items will just a State does not.  I tried several times with two backups and her resut is always the same. 

    I don't see too many questions like that.

    Solutions or causes?

    Thank you

    Weird.  Tried to backup full and a differential still at night last with the largest catalog.  Alll worked well this time.

  • Case of level 1 RMAN incremental backup failure...

    Hello

    I have a question. If the incremental level 1 RMAN backup fails, the next level 1 backup attempt will have backup all changes since the last backup of level 0 OR level 1 successful?

    Best regards

    Hello

    I have a question. If the incremental level 1 RMAN backup fails, the next level 1 backup attempt will have backup all changes since the last backup of level 0 OR level 1 successful?

    Check the dictionary BACKUP_SET V$ to confirm if the last backup has been affected by the data dictionary. If incremental backup failed is picked up then the last incremental backup will be required in the case of the next LEVEL 1 DIFFERENTIAL INCREMENTIELLE backup.

    But to be on the safe side, it is recommended that you take a LEVEL 01 CUMILATIVE INCREMENTAL backup of level 0 up to this day. For the recovery process can go through even if the previous backup is not valid.

    Thank you &

    Best regards

  • Cumulative incremental backup solution?

    Hi all,

    I want to use the backup strategy incremental cumulative rman i.e.I want to take a full backup Level0 every week (Sunday) and a cumulative LEVEL1 database incremental backup every day.

    RMAN configuration parameters are:
    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default
    CONFIGURE BACKUP OPTIMIZATION * / / I did this to avoid making backup on the same archivelogs files, in this case RMAN backs up only files that were not saved in amont.*
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default value
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO "%F", # default value
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SNCFORCL. ORA'; # by default

    Here's my RMAN scripts:

    Weekly.RMAN
    -------------------
    + race {+
    ACE OF COMPRESSED BACKUPSET BACKUP
    ADDITIONAL = 0 CUMULATIVE
    DEVICE DISC TYPE
    TAG = "LEVEL0-SUNDAY.
    FORMAT 'D:\RMAN_BACKUP\DB_%d_%u_%s_%T '.
    DATABASE;
    overlap archivelog all;
    remove expired archivelog all;
    AS to COMPRESSED BACKUPSET ARCHIVELOG BACKUP ALL FORMAT 'D:\RMAN_BACKUP\arch_%d_%u_%s_%T ';
    CROSS-CHECKING OF BACKUP;
    DELETE NOPROMPT OBSOLETE; Delete the backup (Level0 and LEVEL1) and archivelogs files because RETENTION POLICY to REDUNDANCY 1 and to offer a free space for new backup Level0.
    DELETE THE EXPIRED NOPROMPT BACKUP;
    overlap archivelog all;
    remove expired archivelog all;
    DELETE NOPROMPT ARCHIVELOG until 'SYSDATE-3 ";
    +}+

    Daily.RMAN
    -------------
    + race {+
    ACE OF COMPRESSED BACKUPSET BACKUP
    ADDITIONAL = 1 CUMULATIVE
    DEVICE DISC TYPE
    TAG = "LEVEL1-MONDAY.
    FORMAT 'D:\RMAN_BACKUP\DB_%d_%u_%s_%T '.
    DATABASE;
    AS to COMPRESSED BACKUPSET ARCHIVELOG BACKUP ALL FORMAT 'D:\RMAN_BACKUP\arch_%d_%u_%s_%T ';
    overlap archivelog all;
    remove expired archivelog all;
    DELETE NOPROMPT ARCHIVELOG until 'SYSDATE-3'; * //To remove archivelog files more elders that 3 days, I don't have enough space to store files to archive all the weekly
    +}+

    What do you think of the RMAN scripts?
    You have a better solution?

    Thanks in advance for any proposal or suggestion!

    Scripts look good. But why use "cross check archivelog all; and delete all; expired archivelog' several times?

  • READYNAS using Readycloud Desktop App - incremental backup?

    Hi guys,.

    Have been using my ReadNAS for some time and it is great, just recently tried the application backup on ReadyCloud and the conclusion that it is always indexing or download.

    Just test it with a single file that contains the data of 6 GB. I wish a backup where only files updated the incremental was saved but it seems index of all of the directory and then download the entire dam every time thing!

    Am I missing something here?

    I use Windows Desktop App 10.

    If the ReadyCloud desktop application can't make incremental backups, to suggestions for an alternative?

    Thank you.

    Of course, just used Windows file historical, not good for off site however as a NAS device is in the same office, it is fine for now.

    See you soon

  • Slow windows Server2008 no incremental backup?

    Hi I am trying to get a Windows 2008 R2 server backup to work at an acceptable level.

    Functioning as a virtual guest operating system assigned to 4 cores and 10 GB RAM.

    I want to save my 155 GB of files on a connected USB drive.

    I plan to run a backup, and it takes about 10 hours to complete!

    When the next calendar ran I expected to back up only the files that have changed...

    However, it seems to run a full backup once more as her about 10 hours to complete...

    does not the incremental backups or something?

    I tried to change the performance setting that indicates that it would be only for backup files that have been changed...

    has not made a difference.

    The Task Manager does not display to the test server...

    any ideas?

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    Hope this information is useful.

Maybe you are looking for

  • Satellite A200-1TJ - no audio device recognized by Vista

    After restoring my system with the recovery dvd from Toshiba, teas (Windows - Vista Home 32-bit) system no longer recognizes the games. It is neiter indicated in the hardware Manager is not possible to select the sound icon. The taskbar shows a speak

  • Why doesn't my iTouch store docs mail not sent in the drafts folder?

    I write a letter with the address and subject and sometimes do not have time to finish the composition. I click on the Cancel button and a screen aska, "Delete project", 'Save draft', or 'Cancel'. I click on "save the project." A warning appears and

  • HP deskjet all-in-one 1515

    Hello my name is Bughy and I have a little problem with my hp 1515: This isn't copiyng or printing anithyng amd, at the same time, it doesn't show me error. Until now, when I had a problem there where a few buttons that showed me that was the problem

  • can I safely delete "unused desktop shortcuts" from my office?

    my computer is slow, and I'm trying to remove as much junk I can of my C drive, as it got very crowded.  something appeared on my desktop-"unused desktop shortcuts" and it has more than 1,900 items.  can I safely remove this?  I have windows XP home

  • Unable to connect wireless computer

    Title of the Moose: Wireless problemsI have a WLAN put in place and have had 2 computers on it for some time, now it won't connect to the internet, while the other still has no problems and is connected the same way with the same OS...  It connects l