RMAN Backups with retention policy to redundancy 1 doesn't work fine.

Hi experts,
I have a Oracle database with the following system backups:
Monday:       ArchiveLog Backup
Tuesday:      Full Backup
Wednesday:  ArchiveLog Backup
Thursday:     ArchiveLog Backup
Friday :         Full Backup
Saturday:      ArchiveLog Backup
Sunday:       ArchiveLog Backup
ArchiveLog Backup = backup tag  'ARCHIVELOG_BACKUP' device type disk archivelog all not backed up delete all input;
Full Backup = backup tag 'FULL_BACKUP'  device type disk database skip readonly  plus archivelog tag 'FULL_BACKUP_ARCHIVELOGS';
                     crosscheck backup;
                     crosscheck copy;
                     delete noprompt obsolete;    
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 8;
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 ARCHIVELOG DELETION POLICY TO NONE; # default
What this system has done until last two weeks? For example:
Tuesday :     Full Backup
Wednesday:  ArchiveLog Backup
Thursday:     ArchiveLog Backup
Friday :         Full Backup - > After that, Full backup from Tuesday and ArchiveLog backups from Wed, and Thurs, are deleted. (Thanks to Retention policy) .
What this system do now?
Tuesday :     Full Backup
Wednesday:  ArchiveLog Backup
Thursday:     ArchiveLog Backup
Friday :         Full Backup - > After that, Full backup from Tuesday are deleted but not ArchiveLog backups from Wed, and Thurs.
When I execute a crosscheck on RMAN return that all are AVAILABLE.
My question is: What is right? The system backups before or after?
Thanks for your help!

You are confused about the purpose of crosscheck.
There are two concepts for which you must grasp the distinction.
- Expired
- Obsolete
Expired
When an archive log is written, or rman makes a backup, a record of that archivelog or backupset is written to the repository in the control file.
Crosscheck simply checks the existence of the archivelogs or backupsets that are recorded in the repository.  If something went missing (say, if you used an OS command to delete archivelogs), the record of the missing file is marked as 'expired'.  If you follow the crosscheck command with a 'delete expired' command, the repository records that have been marked 'expired' are deleted from the repository, so rman has no more memory of those files.  Note that 'expired' has nothing to do with retention policy.  Also note that if you do not actually issue the 'delete expired' command, the expired records will remain in the repository. 
Obsolete
The retention policy deals with when a backupset is obsolete, meaning it is no longer needed to protect the retention period.  Backupset are not marked as obsolete.  They are evaluated for obsolescence at the time of a command that needs it -- "report obsolete" or "delete obsolete", or when FRA maintenance requires an implied 'delete obsolete'.

Similar Messages

  • Backup with retention policy to recovery window of N days

    Hello,
    I've issued command to create database incremental backup with configuration:
    run
      configure retention policy to recovery window of 14 days;
      backup incremental level 1 cumulative
        tag daily_incr_14_days
        database
      plus archivelog delete all input;
    All parameters are set to their default values and database backups goes to FRA. I've got recovery catalog connected and all RC_ views at my disposal.
    1) Is there any way to find out, what recovery window was used for backup from any command in rman or query from RC_ views or local database views (information from control file)?
    2) If I use other recovery window setting with configure command what would rman crosscheck or report commands do?
    BR
    Patrycjusz.

    TenakaKhan wrote:
    Mahir,
    thanks for answer - this means that recovery window should be used mainly for maintenance purposes (crosscheck, delete obsolete, report need backup etc.) and it's not related to actual retention period with backup pieces like 'keep until' clause for backup ... database command (this information are saved with backup as I could check in rc_backup_set view from recovery catalog)?
    Yes it is.
    Maintaining RMAN Backups and Repository Records
    keepOption
    backup retention policy
    A user-defined policy for determining how long backups and archived logs must be retained for media recovery. You can define a retention policy in terms of backup redundancy or a recovery window.
    RMAN retains the data file backups required to satisfy the current retention policy, and any archived redo logs required for complete recovery of those data file backups.
    recovery window
    A recovery window is one type of RMAN backup retention policy, in which the DBA specifies a period of time and RMAN ensures retention of backups and archived redo logs required for point-in-time recovery to any time during the recovery window.
    The interval always ends with the current time and extends back in time for the number of days specified by the user. For example, if the retention policy is set for a recovery window of seven days, and the current time is 11:00 AM on Tuesday,
    RMAN retains the backups required to allow point-in-time recovery back to 11:00 AM on the previous Tuesday.
    Regards
    Mahir M. Quluzade

  • RMAN backup with smallest backup size

    Oralce 11g2 on Redhat 5. The diskspace is our tightest resource, and we want to an incremental backup with level0 on Sunday and level 1 every week days and Saturday. I am to use the comamnds to do the job--Sunday
    backup incremental level 0 tag 'level_0' database plus archivelog;
    --Other days
    backup incremental level 1 database plus archivelog delete all input;I do not think this is the best practice nor produce smallest backup files.
    What are you comments and opinions. Thanks

    Pavan, Thank you for reply. Here are the info requested
    what is size of DB ??
    ~250GB, including UNDO and TEMP. It is a dev database and not very big. But we have total 800GB disk space. After setting some housekeeoing folders, and allow some space for data growth, it leaves 180GB for flash_recovery_area.
    what would be max size of archive logs generated per day ??
    Variable from less than 1 GB to 12 GB
    Are you taking backups to tape or Disk ??
    Disk. In the 180GB flash_recovery_area, Current backup size is 152GB. If a backup fails to delete obsolete files, the next backup will fill the flash_recovery_area.
    Provide the Rman configuration information ??
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TDEV2 are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    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';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    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_tdev2.f'; # default

  • CONFIGURE RETENTION POLICY TO REDUNDANCY 0

    Our database is 11g R2, below is our RMAN script
    Presently our retention policy is 1, so 1 backup is retained along with the current backup.
    I Just want to have 1 backup, i.e RMAN should take the backup and delete the old bacup.
    Will it work if i change the retention policy to 0 ?
    RUN
      ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
      DELETE NOPROMPT OBSOLETE;
      BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
      SQL "ALTER SYSTEM ARCHIVE LOG CURRENT";
      BACKUP ARCHIVELOG ALL DELETE INPUT format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    RMAN> show all
    2> ;
    using target database control file instead of recovery catalog
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # defaultEdited by: user10243788 on Apr 24, 2012 1:14 AM

    user10243788 wrote:
    Our database is 11g R2, below is our RMAN script
    Presently our retention policy is 1, so 1 backup is retained along with the current backup.
    I Just want to have 1 backup, i.e RMAN should take the backup and delete the old bacup.
    Will it work if i change the retention policy to 0 ?You cannot set the retention policy to redundancy 0 because redundancy count must be greater than zero.
    >
    RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
    ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
    ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
    DELETE NOPROMPT OBSOLETE;
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    SQL "ALTER SYSTEM ARCHIVE LOG CURRENT";
    BACKUP ARCHIVELOG ALL DELETE INPUT format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    }Just switch the order of operation:
    use
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    DELETE NOPROMPT OBSOLETE;
    instead of
    DELETE NOPROMPT OBSOLETE;
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
    You can also exclude the operation SQL "ALTER SYSTEM ARCHIVE LOG CURRENT" because BACKUP ARCHIVELOG ALL implicitly switch logfile before archiving.

  • ASM and CONFIGURE RETENTION POLICY TO REDUNDANCY 1

    I have a 11gR2 database in Linux. ALL the database files (including ARCHIVELOGs) are in ASM. I'm configuing and using RMAN in order to backup the DB & ArchiveLogs.
    I have "CONFIGURE RETENTION POLICY TO REDUNDANCY 1" configured.
    Please help me understand its meaning and function within ASM.
    I thought that based on that configuation that my OBSOLETE ARCHIVELOG files within ASM would be automatically be deleted?
    So once I completed my second set of backups, when I executed, "DELETE NOPROMPT OBSOLETE" & "DELETE NOPROMPT EXPIRED ARCHIVELOG ALL", that the first second of ARCHIVELOG backups would be deleted?
    ...thanks in advance

    ASM has nothing to do with retention or deletion. You can find the definition of redundancy in the docs at http://tahiti.oracle.com

  • RETENTION POLICY TO REDUNDANCY value

    Hi,
    in 10g R2 on Win 2003,
    we do an incremental rman backup every night excepte sunday and every sunday a full rman backup. We want to be able to restore from last 3 weeks (I mean from 21 days before, if today is 25 of feb, to be able to restore/recover from 4 of Feb). Then what should be the value of RETENTION POLICY TO REDUNDANCY of RMAN catalog ?
    Many thanks.

    thank you . How about this :
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup005.htm#sthref261
    3.5.5.1 Configuring a Recovery Window-Based Retention Policy
    The RECOVERY WINDOW parameter of the CONFIGURE command specifies the number of days between the current time and the earliest point of recoverability. RMAN does not consider any full or level 0 incremental backup as obsolete if it falls within the recovery window. Additionally, RMAN retains all archived logs and level 1 incremental backups that are needed to recover to a random point within the window.
    Run the CONFIGURE RETENTION POLICY command at the RMAN prompt. This example ensures that you can recover the database to any point within the last week:
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    RMAN does not automatically delete backups rendered obsolete by the recovery window. Instead, RMAN shows them as OBSOLETE in the REPORT OBSOLETE output and in the OBSOLETE column of V$BACKUP_FILES. RMAN deletes obsolete files if you run the DELETE OBSOLETE command.
    3.5.5.2 Configuring a Redundancy-Based Retention Policy
    The REDUNDANCY parameter of the CONFIGURE RETENTION POLICY command specifies how many backups of each datafile and control file that RMAN should keep. In other words, if the number of backups for a specific datafile or control file exceeds the REDUNDANCY setting, then RMAN considers the extra backups as obsolete. The default retention policy is REDUNDANCY=1.
    As you produce more backups, RMAN keeps track of which ones to retain and which are obsolete. RMAN retains all archived logs and incremental backups that are needed to recover the nonobsolete backups.
    Assume that you make a backup of datafile 7 on Monday, Tuesday, Wednesday, and Thursday. You now have four backups of the datafile. If REDUNDANCY is 2, then the Monday and Tuesday backups are obsolete. If you make another backup on Friday, then the Wednesday backup becomes obsolete.
    Run the CONFIGURE RETENTION POLICY command at the RMAN prompt, as in the following example:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    3.5.5.3 Showing the Current Retention Policy
    RMAN> SHOW RETENTION POLICY;
    see V$RMAN_CONFIGURATION

  • Rman backup with  standby database

    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance

    726d07e6-b870-431f-8c22-a499c3ec4e0c wrote:
    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance
    "I scanned thru MOS but could find solutions for rman with active DG."
    Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode (Doc ID 1419923.1)

  • I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    There is no more LiveType with Motion 5.  You may want to go to the Final Cut Express forum, as that's the only place it's existed for the last few years.

  • MY IPOD APPEARS TO BE ZOOMED INTO THE SCREEN AT ALL TIMES, MAKING IT DIFFICULT TO DO SIMPLE TASKS SUCH AS GO BACK, OR SELECT A PLAYLIST, ETC. I'VE TRIED PULLING IT OUT WITH MY FINGERS BUT THAT DOESN'T WORK. PLEASE CAN YOU HELP!!! THANKS.

    I've got a touch iPod and for about a week now it's almost been permenently zoomed into the screen? I actually cannot get it to zoom back out. I've tried pulling the screen out with my fingers but that doesn't work. It's zoomed in on my home pages, on my music, settings everything! It makes simple things like deleting a number from my password login extreamly differcult. Please can someone help?!?! Thanks.

    Double tap the screen with three fingers to un-zoom.
    Then go to Settings > General > Accessibility > Zoom and turn this OFF.

  • I bought one Iphone a 3 weeks ago and I can´t listen what people speak with me, because de microphone doesn´t work, I need  to use the speaker, somebody know what I need to do?

    I bought one Iphone a 3 weeks ago and I can´t listen what people speak with me, because de microphone doesn´t work, I need  to use the speaker, somebody know what I need to do?

    Just thought that I'd report that I've decided on my solution.
    It seems that just making do with what I can find on the US store is the easiest and perhaps also the best way of going about it. All other methods mean trouble. I'm lucky that China hasn't outright blocked the US store, as they HAVE blocked iTunes music store in China already (something about a song about Tibet caused them to block the store entirely).
    So yeah, just going to deal with it I guess. I should be grateful I'm getting anything at all, considering the country I'm in. Still, I just feel so ripped off sometimes when I pay for expensive devices and I can't even get much out of them do to my region. iPhones cost around $700 in China because there's no company like AT&T that you can just sign a contract with to get one, so you have to pay up-front for the phone, and get less features out of it in the end. Makes buying smart phones look like a waste of time and money sometimes, since you can't use the device to do what it was built to do due to censorship and not having any content for your region (though they do have a lot of Chinese apps that I can't use due to not knowing Chinese).

  • I have ipad with IOS 7,  Some apps doesn' t work, safari not open some web site. What can I do?

    I have ipad with IOS 7,  Some apps doesn' t work, safari not open some web site. What can I do?

    Try this and see if it helps.
    Settings>Safari>Clear cookies and data.
    Now close Safari completely. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then "swipe up" or "drag up" on the app preview thumbnail to close it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Just bought my white iphone4 and after syncing with my computer the speaker doesn't work now. I tried reset and even restore and still does not work. Do I have to exchange?

    Just bought my white iphone4 and after syncing with my computer the speaker doesn't work now. I tried reset and even restore and still does not work. Do I have to exchange?

    Make sure the silent switch is not set to mute.  If you can see the red dot, it is on mute.
    It may think you have headphones plugged in, try plugging and unplugging a wired headset a few time.
    The next step would be to restore as new.
    If none of that works, a warranty exchange would be the resolution.    

  • I have internet optic fiber connection and I'm trying to configure it with my Airport Express but doesn't works, appears that I have IP and DNS, as I'm a computers dummy , who could help me to configuration it, please?

    I have internet optic fiber connection and I'm trying to configure it with my Airport Express but doesn't works, appears that I have IP and DNS, as I'm a computers dummy , who could help me to configuration it, please?

    You're welcome.
    Voicemail is left at your carrier's server. That will continue to work unless you report your iPhone as lost or stolen with your carrier.
    You may never find it again and you can't if the iPhone remains offline or out of service which means the iPhone is powered off or doesn't have cellular reception.

  • HT203177 My backups using Time Machine to my Time Capsule worked fine until a week ago. Since then it gets stuck on "Preparing ...". I have left it preparing overnight and it doesn't get past this stage.  What else can I do? Bob

    My backups using Time Machine to my Time Capsule worked fine until a week ago. Since then it gets stuck on "Preparing ...". I have left it preparing overnight and it doesn't get past this stage.  What else can I do?

    Mavericks does really nasty stuff..
    Try manually mounting the sparsebundle and extract the files you want.
    Yet another Pondini reference. http://pondini.org/TM/15.html
    We have avoided Mavericks you see knowing that it would cause these kinds of issues..
    You never ever load a new OS without doing a disk image beforehand.. TM is not reliable enough or trustworthy to be depended on.
    If none of the above work..
    I would get a USB drive on the computer and install Mountain Lion or whatever OS you had before you unfortunately upgraded to Mavericks.. Then use TM from that decent installation but mount the sparsebundle and choose the backup from a date well before mavericks was installed.
    Once you have extracted the files.. or even done a full restore you might be able to extract the files you want.

  • My Earpiece doesn't work fine. I tried restoring it on iTunes, work's for 2 days then problem came again. Help me on this thanks.

    My Earpiece doesn't work fine. I tried restoring it on iTunes, work's for 2 days then problem came again. Help me on this thanks.

    Go buy yourself a iPhone 5. Sync your iPhone 3GS to iTunes on you computer so you have a back up ready to put on the iPhone 5. If you want you can update your iPhone 3GS with iTunes on your computer, but this is not necessary.

Maybe you are looking for

  • Installed Lion from AppStore-looks like running Leopard & Lion-wierd

    I installed Lion from the AppStore- by all accounts- it's running Lion. Yet when my machine is turned off and powered back on, the Snow Leopard appears and I lose Lion background. I have a suspiscion it is running both somehow because my computer is

  • OSB : Restful proxy service with basic authentication

    Hi, We want to expose a restful webservice from OSB with Basic authentication (username and password). Let us know what is the procedure for the same. THanks,

  • Text is overriding above layer

    I have text in layer one (bottom) and i have a tooltip widget in the top layer, and the text from layer one is overriding the tooltip widget? What is going wrong?

  • LIS help needed : SD Extraction

    Hi Gurus I am fairly new to SD and am looking for some help regarding LIS I have setup a sales process which uses Inquiries > Quotation > Sales Order > Delivery Process. The Process is running fine. However when I am trying to get some basic reports

  • Microphone mute problem??

    I bought the original iphone 3G off ebay and replaced it to a refurb at Apple Store. After about 2 weeks, the microphone stops working from time to time (sometimes works sometimes not). I tried cleaning the jack, restart, reset, restore, plugging and