Expired Backup

Hi all,
I am using RMAN as a primary tool for BAckup & Recovery. It is consistently syncronizing itself regarding my archived log filles and when I execute 'List Copy' command , it shows all the archived logs . One day I executed crosscheck command for archived logs and found that few are expired . so I wanted to delete them using 'Delete Expired' command . but it didn't worked . Moreover there is an error of validation fail for those expired archivelogs .
Please help me .
Thanks
Akhilesh

Unqualified LIST or CROSSCHECK commands are likely to take a long time when you have many days or weeks of archived logs on tape/disk. You need to learn some RMAN syntax. For example:
LIST BACKUP OF DATABASE COMPLETED AFTER "SYSDATE-1";
This will eliminate archived logs and restrict your query to the last 24 hours.
Expired backups need to be deleted in a special way. However, before offering further advice I would echo the request of the previous helper and ask you to post your error messages.
Chin up. We'll help you out here.
--Tony
http://tonyhasler.wordpress.com

Similar Messages

  • Time Machine deleted "expired" backups. Why?

    I want to know why Time Machine deleted some backups although the disk has plenty of free space available.
    02/05/15 09:46:39,191 com.apple.backupd[91015]: Starting automatic backup
    02/05/15 09:46:39,281 com.apple.backupd[91015]: Backing up to /dev/disk2s2: /Volumes/Backup2/Backups.backupdb
    02/05/15 09:46:42,900 com.apple.backupd[91015]: Will copy (429,3 MB) from SSD Boot
    02/05/15 09:46:42,968 com.apple.backupd[91015]: Will copy (1,45 GB) from USERS1
    02/05/15 09:46:42,969 com.apple.backupd[91015]: Found 1675 files (2,19 GB) needing backup
    02/05/15 09:46:42,980 com.apple.backupd[91015]: 8,51 GB required (including padding), 1,49 TB available
    02/05/15 09:47:21,437 com.apple.backupd[91015]: Copied 1665 items (440,8 MB) from volume SSD Boot. Linked 1991.
    02/05/15 09:50:03,429 com.apple.backupd[91015]: Copied 85 items (1,75 GB) from volume USERS1. Linked 2582.
    02/05/15 09:50:11,048 com.apple.backupd[91015]: Created new backup: 2015-05-02-095010
    02/05/15 09:50:11,753 com.apple.backupd[91015]: Starting post-backup thinning
    02/05/15 09:50:20,156 com.apple.backupd[91015]: Deleted /Volumes/Backup2/Backups.backupdb/iMac van Hans/2015-04-30-230300 (855,9 MB)
    02/05/15 09:50:22,363 com.apple.backupd[91015]: Deleted /Volumes/Backup2/Backups.backupdb/iMac van Hans/2015-04-30-215910 (308,4 MB)
    02/05/15 09:50:24,766 com.apple.backupd[91015]: Deleted /Volumes/Backup2/Backups.backupdb/iMac van Hans/2015-04-30-205523 (38,2 MB)
    02/05/15 09:50:25,756 com.apple.backupd[91015]: Deleted /Volumes/Backup2/Backups.backupdb/iMac van Hans/2015-04-30-195405 (36,8 MB)
    02/05/15 09:50:27,671 com.apple.backupd[91015]: Deleted /Volumes/Backup2/Backups.backupdb/iMac van Hans/2015-04-30-185319 (36,6 MB)
    02/05/15 09:50:27,672 com.apple.backupd[91015]: Post-backup thinning complete: 5 expired backups removed
    02/05/15 09:50:27,709 com.apple.backupd[91015]: Backup completed successfully.
    Backups are alright so it is not an important issue but I am wondering if something in my preferences set is wrong.
    Hans

    Time Machine keeps hourly backups for one day, then daily backups for a week, etc. What you are seeing is it deleting the daily backups form more than 24 hours ago. This is what it does, nothing to worry about.
    C.

  • How to find expired backup?

    Dear All,
    how to find expired RMAN backup?
    how it got expired?(according to which concept)
    expired RMAN backup not used to restore?
    If catalog database is their we need to register and then take backup?(is must?)
    sorry for easy questions..but i'm in situation to know?
    please help me :-)
    Note:oracle 9i
    Os:HP-UX
    regards,
    DB :-)
    Edited by: DB on Feb 9, 2013 2:42 PM

    Hello,
    Expired backups are those that are unavailable on the location that you had taken the backup (disk or tape). Running a "crosscheck backup" lists out the expired backups and also updates the repository saying that these backups have been expired. You can delete the expired backups using "delete expired backup".
    If you have the backups copied to a different location using OS commands and if the repository is not updated, then the crosscheck commands lists these backups to be expired. If these backups are required for a restoration purpose, then you can catalog them to the location where they are currently place using "catalog start with <path where the backup is stored>".
    Since you are on 9i, "catalog start with .." is not supported. May be you can use this DBMS_RCVMAN package but not sure about its usage.
    Regards,
    Shivananda

  • Need to keep the expired backup for 7 days extra

    Hi All,
    I need help from you guys.
    My problem is.
    1. As per backup schedule, I have to maintain the backups for 14 days (retention period in RMAN)
    2. Now the people are asking to keep the backups for 31 days.
    3. I changed the retention period for 31 days.
    4. When I checked with crosscheck backup, it is showing the backups older than 14 days as expired.
    5. How to recatalog (keep) the expired backups.
    regards,
    Kiran

    you can see the demo here..
    Re: control_file_record_keep_time vs retention policy
    Khurram                                                                                                                                                                                                                                                           

  • Deleting expired backup not working.

    Hi,
    I am cleaning up the backup by deleting all the expired backups. My OS is RHEL 4 and DB is 10.2.0.3 and the backup is Veritas Netbackup using RMAN
    Recovery Manager: Release 10.2.0.3.0 - Production on Mon Mar 28 12:51:16 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: WHSEPROD (DBID=2974933951)
    connected to recovery catalog database
    RMAN> delete expired backup;
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: sid=136 devtype=SBT_TAPE
    channel ORA_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 6.5 (2007072400)
    allocated channel: ORA_SBT_TAPE_2
    channel ORA_SBT_TAPE_2: sid=145 devtype=SBT_TAPE
    channel ORA_SBT_TAPE_2: Veritas NetBackup for Oracle - Release 6.5 (2007072400)
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=181 devtype=DISK
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    255513  255464  1   1   EXPIRED     SBT_TAPE    arch-s254-p1-t662126514
    484866  484825  1   1   EXPIRED     SBT_TAPE    arch-s5711-p1-t680801187
    1256712 1256637 1   1   EXPIRED     SBT_TAPE    arch-s257-p1-t724703694
    1433633 1433540 1   1   EXPIRED     SBT_TAPE    arch-s5681-p1-t733340847
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=arch-s254-p1-t662126514 recid=254 stamp=662126515
    deleted backup piece
    backup piece handle=arch-s5711-p1-t680801187 recid=5674 stamp=680801188
    deleted backup piece
    backup piece handle=arch-s257-p1-t724703694 recid=254 stamp=724703695
    deleted backup piece
    backup piece handle=arch-s5681-p1-t733340847 recid=5674 stamp=733340848
    Deleted 4 EXPIRED objects
    RMAN> delete expired backup;
    using channel ORA_SBT_TAPE_1
    using channel ORA_SBT_TAPE_2
    using channel ORA_DISK_1
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    255513  255464  1   1   EXPIRED     SBT_TAPE    arch-s254-p1-t662126514
    484866  484825  1   1   EXPIRED     SBT_TAPE    arch-s5711-p1-t680801187
    1256712 1256637 1   1   EXPIRED     SBT_TAPE    arch-s257-p1-t724703694
    1433633 1433540 1   1   EXPIRED     SBT_TAPE    arch-s5681-p1-t733340847
    Do you really want to delete the above objects (enter YES or NO)?Even after it says it deleted 4 EXPIRED objects, why does it show those same four pieces? How can I get rid of it? Obviously, it is EXPIRED, so I don't need it. I ran crosscheck command too. That didn't worked. I ran the delete with force and obsolete options too. They also did not worked. Please help. What am I missing?

    I tried that change command. But I am getting
    RMAN> change backupset completed before '01-Jan-2011' uncatalog;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of uncatalog command at 04/06/2011 12:55:34
    RMAN-06122: CHANGE .. UNCATALOG not supported for BACKUPSET
    The action change suggested was to use
    RMAN> change backupset ....  delete;
    This says deleted. But again when I list backup this shows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SAP DB2 TSM expired backup

    Hi Gurus,
    We are using TSM to taking SAP online backup weekly basis.Storage team wants to delete some old backup from TSM due to space constrain.Please let us know how to delete the old backup in TSM from DB2 level also provided the configuration details below,
    Number of database backups to retain   (NUM_DB_BACKUPS) = 12
    Recovery history retention (days)     (REC_HIS_RETENTN) = 60
    Auto deletion of recovery objects    (AUTO_DEL_REC_OBJ) = OFF
    Also when i execute LIST HISTORY BACKUP ALL FOR DB <SID>"  Showing old backup from 29th June. I able to see Timestamp+Sequence from 20140629043003001  - 20140629043003012. Why same backup image showing 12 sequence.Please help me on this.
    Number of matching file entries = 193
    Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log  Backup ID
      B  D  20140629043003001   N    O  S0111900.LOG S0112016.LOG
    Regards,
    MK

    Hi,
    Please let me know the use of below parameter.
    Number of database backups to retain   (NUM_DB_BACKUPS) = 12
    Recovery history retention (days)     (REC_HIS_RETENTN) = 60
    Auto deletion of recovery objects    (AUTO_DEL_REC_OBJ) = OFF
    Also how to delete expired backup in TSM.
    Regards,
    MK

  • How to find expired backups...

    What rman command to use to see which backups are expired..
    rman's crosscheck take stoo long.

    user632098 wrote:
    What rman command to use to see which backups are expired..
    rman's crosscheck take stoo long.
    [oracle@edmtr7p0-orcl ~]$ rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Nov 21 11:44:16 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ;sconnected to target database: ORCL (DBID=1327554174)
    RMANlist expired backup;
    using target database control file instead of recovery catalog
    specification does not match any backup in the repository
    RMAN> Aman....

  • Can't delete obsolete and expired backups.

    Every Sundays I create 0 level backup.
    Every Thuesdays I create 1 level comulative backup.
    Every other days I create 1 level incremental backup.
    Sometimes I need a free space for new backups and I try clean old backups.
    As I can understand, rman remove backups from 'list backup', but doens't delete physically from disk storage.
    SQL> select banner from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE     11.2.0.2.0     Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    0 level backup
    CONNECT TARGET / ;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u06/backup/df_%d_%s_%U';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u06/backup/cf_%F';
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u06/backup/snapcf.f';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE MAXSETSIZE TO 20G;
    BACKUP CURRENT CONTROLFILE;
    BACKUP INCREMENTAL LEVEL 0 DATABASE FILESPERSET 100 ;
    BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
    RESTORE VALIDATE DATABASE;
    RESTORE VALIDATE CONTROLFILE TO '$ORACLE_BASE/admin/rman_scripts/cf_tmp.ctl';
    RESTORE VALIDATE SPFILE TO '$ORACLE_BASE/admin/rman_scripts/spf_tmp.ora';
    RESTORE VALIDATE ARCHIVELOG FROM TIME 'SYSDATE-4';
    REPORT NEED BACKUP;
    DELETE OBSOLETE;
    LIST BACKUP;
    LIST BACKUP SUMMARY;
    1 level comulative backup
    CONNECT TARGET / ;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u06/backup/df_%d_%s_%U';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u06/backup/cf_%F';
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u06/backup/snapcf.f';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE MAXSETSIZE TO 20G;
    BACKUP CURRENT CONTROLFILE;
    BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE FILESPERSET 100;
    BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
    RESTORE VALIDATE DATABASE;
    RESTORE VALIDATE CONTROLFILE TO '$ORACLE_BASE/admin/rman_scripts/cf_tmp.ctl';
    RESTORE VALIDATE SPFILE TO '$ORACLE_BASE/admin/rman_scripts/spf_tmp.ora';
    RESTORE VALIDATE ARCHIVELOG FROM TIME 'SYSDATE-4';
    REPORT NEED BACKUP;
    DELETE OBSOLETE;
    LIST BACKUP;
    LIST BACKUP SUMMARY;
    1 level incremental backup
    CONNECT TARGET / ;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u06/backup/df_%d_%s_%U';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u06/backup/cf_%F';
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u06/backup/snapcf.f';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE MAXSETSIZE TO 20G;
    BACKUP CURRENT CONTROLFILE;
    BACKUP INCREMENTAL LEVEL 1 DATABASE FILESPERSET 100;
    BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
    RESTORE VALIDATE DATABASE;
    RESTORE VALIDATE CONTROLFILE TO '$ORACLE_BASE/admin/rman_scripts/cf_tmp.ctl';
    RESTORE VALIDATE SPFILE TO '$ORACLE_BASE/admin/rman_scripts/spf_tmp.ora';
    RESTORE VALIDATE ARCHIVELOG FROM TIME 'SYSDATE-4';
    REPORT NEED BACKUP;
    DELETE OBSOLETE;
    LIST BACKUP;
    LIST BACKUP SUMMARY;
    Try delete old backups:
    CONNECT TARGET / ;
    RMAN> CROSSCHECK BACKUP;
    Crosschecked 173 objects
    RMAN> DELETE EXPIRED BACKUP;
    using channel ORA_DISK_1
    specification does not match any backup in the repository
    RMAN> DELETE OBSOLETE;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 3 days
    using channel ORA_DISK_1
    no obsolete backups found
    RMAN>
    Edited by: 848540 on 31.10.2011 23:15

    I try to ask one more time.
    I make all backups in the folder \u06\backup.
    I make full backups every week.
    After command "crosscheck backup" all backups older 2 weeks must be mark as "OBSOLETE". This operation works correctly, becouse in "list backup" i look all backups for last two weeks and no older (for today they all made earlyer then 06/11/2011)!
    After crosscheck operation i try to delete old backups from HDD.
    RMAN> delete expired backup;
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=2 device type=DISK
    specification does not match any backup in the repository
    RMAN> delete obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 3 days
    using channel ORA_DISK_1
    no obsolete backups found
    But after this operation I look in my backup folder files since 02/10/2011. How to sync backups (delete obsolete backups from HDD) in rman list (command 'list backup') and in operation system list (command 'ls' in sun10)?
    Edited by: 848540 on 14.11.2011 0:32

  • RMAN OBULETE and Expired Backup

    HI Experts
    i need a query which can tell me about my expired backups and Obsolete backups . my recovery window is of 14 days
    My database version is 10g(10.2.0.4) on AIX 6.1
    regards,

    AMIABU wrote:
    HI Experts
    i need a query which can tell me about my expired backups and Obsolete backups . my recovery window is of 14 days
    My database version is 10g(10.2.0.4) on AIX 6.1
    regards,Use command:
    Rman > crosscheck backup;
    Rman > crosscheck archivelog all;
    Rman > list backup;
    Rman > list archive logall;
    Expired Backup: List Expired
    Then use report obsolete command it show the backup that you dont need it and after that use Delete obsolete command
    It will delete the backup that you dont need it.
    The term obsolete does not mean the same as expired. In short obsolete means "not needed " whereas expired means "not found."
    reference: http://download.oracle.com/docs/cd/B14117_01/server.101/b10734/rcmconc3.htm
    http://www.geekinterview.com/question_details/66392

  • Delete expired backup;

    Hi expert,
    i want delete expired backup of databae
    CONFIGURE RETENTION POLICY TO REDUNDANCY 7
    this is my RMAN Database setting
    how can delete RMAN backup ,
    i have take backup of every day.
    delete backup 'sysdate -2';
    but how can delete it?

    I think you are confusing the things.
    If you set a policy of REDUNDANCY = 7, then you want to keep 7 copies of the files in the backups.
    And that is excluded with DELETE OBSOLETE clause and not to DELETE EXPIRED clause.
    And also, if you define REDUNDANCY = 7, you may not use a DELETE SYSDATE-2, because there may be a file that was not backuped 7 times.

  • I want to delete expired backups

    Hey, I had manually deleted some backups, I didn't know about the "delete obsolete" command at the time. So when I do a "report obsolete" the expired backups are still showing and when I do a delete expired, it wont delete them since they were already deleted, but they are still showing up when i do a crosscheck and report obsolete.
    So, my question is, is there anyway to tell rman that they have already been deleted? So they wont show up anymore?

    Can you tell the output of CROSSCHECK and DELETE EXPIRED statements. RMAN marks backups and copies as expired when you run a CROSSCHECK command and the files are absent or inaccessible.

  • Rman expired backup

    Hi
    Rman expired backupset i need to restore and recovery ?
    Any procedure i need to follow ? or what are the steps to do it.
    pls advice me
    Regards
    kmp

    [email protected] wrote:
    Hi
    Rman expired backupset i need to restore and recovery ?
    Any procedure i need to follow ? or what are the steps to do it.Too less info is given by you thus making it extremely tough to help you. What's the db version and o/s? Why you did let the backup get expired if you needed and if you have already got it expired, why you think it would be available? What's the actual thing that has happened?
    Tell us more about what you are doing and have done so that we can suggest something better.
    Aman....

  • List backup - can't see expired backups

    I just want to see all backup pieces I have (including the expired ones) but only see those that are available. Why is that so? The documentation sais I'm supposed to see all except the deleted ones.
    I can see all of my backups when I query the RC_BACKUP_PIECE view so why not in my "list backup" command?

    As Allan stated, there is only one backup kept during normal syncing. The backup created when you restore a device is separate from the one created when the device is synced. The backup created prior to a restore is marked in the syncing preferences of iTunes with the date and time when the backup was created. If you manually initiate a backup, I'm not sure which one that overwrites (it may, in fact, overwrite both).
    See:
    http://support.apple.com/kb/HT1414
    http://support.apple.com/kb/HT1766

  • Rman restore from a expired backup

    Hi
    My rman retention policy is set to 2 days.
    But i want rman to restor me the backup from 7 days before.I do have the backupset controlfiles etc.But rman tells me this backupset is expired how do i force rman to restore from this backup ?
    regards

    Hi,
    yes.
    1) restore controlfile from the backup from 7 days before
    2) mount database with the controlfile you restored
    3) restore/recover database ( if you have backed up datafiles and archivelog files from the time )
    Regards,
    Tom

  • Adobe photoshop licensing for this product has expired, backup swatches and brushes.

    when i open adobe photoshop CS3 and flash CS3 a box appears saying " licensing for this product has expired. please reinstall or contact help"
    i have tried all the soutions and are at to "reinstalling" i dont have the disc or the code.
    all i am worried about is getting a copy of my swatches/palates and brushes. Is there any way of saving the swatches and/or brushes?
    or if i were to install the CS5 version of photoshop would it automatically convert my settings, (swatches and brushes) to the newer verison?

    Somebody posted this very helpful file location chart just yesterday, and already it has been useful.
    http://helpx.adobe.com/photoshop/kb/preference-file-functions-names-locations.html

Maybe you are looking for

  • Connecting via dial up connection

    On a cisco router that has an aux port can be set up with a dial up connection as a backup. But, my question is how is this set up? for example, Do I plug in a land line to the router, setup the router aux port, and then dial in from anywhere? Or, is

  • Batch file renaming

    How can I rename a group of files with heterogeneous names? I have a series of several hundred images, nealy all of which have unique, unrelated names.  I want to be able to rename them as a batch so they can be imported into quicktime pro to make a

  • Lenovo USB 2.0 Port Replicator Office 2013 BSOD's

    Incident on Lenovo ThinkPad Edge 420s with Lenovo USB 2.0 Port Replicator attached. If we use Windows 7 and Office 2010 "Lenovo USB 2.0 Port Replicator with Digital Video v16.0.1" Works without issues. As soon as we upgrade to Office 2013 and use the

  • Failed to authenticate with the device at ip.ip.ip.ip using TELNET

    Hi! I can no longer use CCA :-) I tried everything, but when I enter user and password after waiting a few tens of seconds I get the following error window: "Failed to authenticate with the device at ip.ip.ip.ip using TELNET. TELNET access is require

  • Need help in ending my contract fast

    Hi, I'm a Canadian citizen who used to live in America. I have a plan through verizon in America. Before I left I talked to verizon and came up with the idea that when i got to canada I would use the plan with the traveling data/roaming package to he