Delete noprompt obsolete

Hello,
RMAN >delete noprompt obsolete;
The "delete obsolete" or "delete noprompt obsolete" will delete the archivelog files past the retention from disk and will also delete any backups on disk or tape.
My retention redundancy is 1. According to the statement above, it will delete the archivelog files and any backups on disk or tape from a previous day. My issue is that I want to delete backups on disk based on the redundancy 1, but keep the archivelogs for 5 days then delete archivelogs. So, the "delete noprompt obsolete" will not work in my case.
So, I replace this "delete obsolete" with this command "delete noprompt archivelog All completed before 'SYSDATE-5';" to delete any archivelogs that are more than 5 days old. That would solve my archivelog issues, but what happens to my backups on disk (I want to delete backups based on redundancy 1)?
Thank you.

feverlove wrote:
Thanks mseberg.
1) delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-5';
2) DELETE noprompt BACKUP COMPLETED BEFORE 'SYSDATE-2' DEVICE TYPE DISK;
Does redundancy 1 retention take care of the #2 ? If so, why do I need the #2.
Thank you again.For your archivelog deletion policy, you can try what was suggested earlier
delete noprompt archivelog until time 'SYSDATE-5';With respect to your backups, you can have the retention policy left as it is by setting it to redundancy 1 and add this to your level 0 backup script/full backup script (if not added earlier).
crosscheck backup;
delete noprompt obsolete;My Bad.
I am of the opinion that the above command (delete noprompt obsolete) deletes even the archives that fall within the 5 days time.
Edited by: Shivananda Rao on Oct 22, 2012 8:06 AM

Similar Messages

  • RMAN-06207 when DELETE NOPROMPT OBSOLETE;

    Hello all
    I want to backup and delete backuped archivelogs on a standby instance using the following script:
    RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE sbt PARMS='ENV=......';
    BACKUP ARCHIVELOG ALL DELETE INPUT;
    DELETE NOPROMPT OBSOLETE;
    RELEASE CHANNEL ch1;
    When deleting all obsolete backup pieces, I receive the following error:
    RMAN-06207: WARNING: 1 objects could not be deleted for SBT_TAPE channel(s) due
    RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
    RMAN-06210: List of Mismatched objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06214: Backup Piece c-2414804385-20080820-02
    As a workaround, I then manually delete obsolete backup pieces using:
    delete force noprompt obsolete device type sbt_tape
    What is the cause for rman-06207 ? How can I change my rman script to safely delete backuped archivelogs?
    I work with Oracle 10G release 10.2.0.3 both on standby and catalog DB.
    Casi

    Did you try using the CROSSCHECK command to verify the backup files status?
    From your comments, it doesn't seem like you did. CROSSCHECK checks the status of the RMAN backups against the disk/tape and updates the RMAN repository. CROSSCHECK does not remove any files just updates the status. The status options are - expired, available, and unavailable.

  • RMAN "delete noprompt obsolete" not deleted

    OS: AIX 5.3L; Oracle 10g R2
    I have "delete noppropt obsolete" in my RMAN backup script as {
    delete noprompt obsolete;
    crosscheck backupset;
    crosscheck archivelog all;
    delete noprompt expired backup;
    delete noprompt expired archivelog all;
    backup as compressed backupset incremental level 1 cumulative device type disk tag 'Baan_bkup$LEVEL1' database plus archivelog delete input; }
    but the incremental level 1 cumulative backupsets, outside my 7 days window, did not been deleted as prompted, even they are under the obsolete list. Why?
    Message was edited by:
    user508054

    I also observed that with "REPORT OBSOLETE", only partial of the backupset piece of backup were "OBSOLETE". For example, after this morning LEVEL 1 incremental backup, my last Sunday, Mar 4 level 0 backup has 12 backup pieces (including controlfile and archivelog), but only two have been on the obsolete list. The two are controlfile and archivelog, and other 10 datafaile backupsets are still there in the list. Really confused! Are they supposed to be treated as a bunch?

  • RUN "delete noprompt obsolete" before "backup database"

    Hello,
    11g on windows 2003, 3 day recovery window
    For almost a year now, I having been running the below script daily to backup my database. Now I am begining to run out of disk space, and can not run the backup commands unless I run "delete noprompt obsolete" first.
         backup database tag=database_full_backup;
         backup archivelog all delete input tag=achivelog_backup;
         crosscheck backup;
    delete expired backup;
         delete noprompt obsolete;
    Is it a bad idea to rearange the order of the commands like below?
    crosscheck backup;
    delete expired backup;
         delete noprompt obsolete;     
    backup database tag=database_full_backup;
         backup archivelog all delete input tag=achivelog_backup;
    thanks for any help

    Hi,
    No problem. You configured a recovery window of 3 days, it means you want to be able to restore/recover until sysdate - X (X up to 3) at any time. RMAN will always respect that, you can "delete obsolete" whenever you want.
    Best regards
    Phil

  • RMAN delete noprompt obsolete

    Hi,
    I'm keen to know what does this comand mean in RMAN backup. "delete noprompt obsolete;" .Can I apply this comand for no catalog too or it's just meant for rman catalog.
    Thanks
    M.Kaur

    Hi,
    I'm trying to do house keeping on RMAN backups,following is my script,but this does not remove hte last year's backups on the tape,thou the tape is mounted to the lib.Must I add in another command? but yes the last year's backup is not even shown in the rman backup list,but it's still in the sbt_tape,how do I remove it from there.
    Note: RMAN no catalog running on oracle 9i 9.2.0.7
    allocate channel for delete type disk;
    allocate channel for delete type 'sbt_tape'
    PARMS 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
    report obsolete orphan;
    report obsolete;
    crosscheck backup;
    crosscheck copy;
    crosscheck backup of controlfile;
    delete noprompt expired backup;
    delete noprompt expired archivelog all;
    delete noprompt expired backup of controlfile;
    delete force noprompt expired copy;
    delete force noprompt obsolete orphan;
    delete force noprompt obsolete;
    release channel;
    Thanks

  • When is delete all obsolete backups triggered in Oracle 11g DB

    I have a query as to when delete all obsolete backups triggered in Oracle 11g DB. We changed the RMAN retention policy to 10 days from 14 days in our setup. Is it triggered manually by delete all obsolete from Availablity->Manage Current Backups in OEM or is it triggered automatically every time RMAN backup is done?
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    975148 wrote:
    I have a query as to when delete all obsolete backups triggered in Oracle 11g DB. We changed the RMAN retention policy to 10 days from 14 days in our setup. Is it triggered manually by delete all obsolete from Availablity->Manage Current Backups in OEM or is it triggered automatically every time RMAN backup is done?
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards
    First, I would never manage my backups in OEM.  When the crunch comes at 2:00 am, I don't want ever more moving parts to be involved in recovery.
    Second, the only thing approaching a "triggering" of deletion of backups is if your backups are in the FRA ... rman will, at the time of making a backup .. attempt to delete obsolete backups if necessary to free up space in the FRA.
    Other than that, oboslete backups are only deleted in response to a direct DELETE OBSOLETE command.  This command may optionally ( as shown by TigerDBA) include a run-time obsolesence rule, or it may depend on the standing configuration.
    Another thing to note is that backups are NOT marked as obsolete.  They are EVALUATED for obsolescence in response to a DELETE OBSOLETE or REPORT OBSOLETE command.
    And one final thing to not is that all recovery must begin with a full backup.  That would be the most recent full (or level 0 incremental) backup prior to the point in time to which you need to recover.  That means the most recent full (or level 0 incremental) backup will never be considered obsolete, regardless of how old it is.

  • Deleting an obsolete e-mail address

    How do you delete an obsolete e-mail address from game centre?

    All suggestions come from your address books. You are going to have to find the old addresses and edit or remove then.
    You have two address books by default. The personal and the collected books. Check them both and any other books you may have created.
    There is a button to open the address book window.

  • Crontab RMAN+Delete noprompt

    I have a 11g environment.
    I store in the catalog the following script:
    change archivelog all crosscheck;
    crosscheck backup of database;
    BACKUP
    INCREMENTAL LEVEL 0 cumulative
    AS COMPRESSED BACKUPSET
    DEVICE TYPE DISK
    DATABASE
    PLUS ARCHIVELOG;
    DELETE NOPROMPT ARCHIVELOG ALL BACKED UP 1 TIMES TO DISK COMPLETED BEFORE ="SYSDATE-1/2";
    Every night I launch from the Oracle user's crontab a process which connect to the catalog and executes the script. The backup runs perfectly but
    "DELETE NOPROMPT...." sentence doesn't run. At the crontab mail appears a message
    "wating response...."¿?

    Have you tried other options to delete the archive logs, like DELETE INPUT?
    RUN {
      CHANGE ARCHIVELOG ALL CROSSCHECK;
      CROSSCHECK BACKUP OF DATABASE;
      BACKUP
        INCREMENTAL LEVEL 0 CUMULATIVE
        AS COMPRESSED BACKUPSET
        DEVICE TYPE DISK
        DATABASE PLUS ARCHIVELOG DELETE INPUT;
    }

  • How to delete/mark obsolete database objects from ODI model?

    Hi,
    ODI never deletes objects while reverse engineering.
    So is it way to automate deletion or marking obsolete database objects (dropped or renamed fields, constraints) from an ODI model?
    Does someone use ODI Java API (http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e17060/overview-tree.html) or direct updating SNP_% repository tables to do it?

    I can help you with marking obsolete database objects.
    In the model, there is an option "Display the metadata changes in the Model Tree". Check this.
    This will show you what has changed or is obsolete.

  • Deletion of obsolete company codes including data

    Dears,
    we need to remove from our ECC 60 some obsolete Company Codes, as they have been moved on different systems.
    These Company Codes have been Live for some month, so we have both master data and transactional data.
    For these obsolete companies we implemented the modules FI, CO, and for one of them also MM and SD.
    We need to know if the transaction SARA is able to archive and then remove the data according the Company Code, and then to clarify if we are forced do a SLO project with Sap or not.
    In Sap BW we know there is some procedure able to delete in consistent way the data belonging to a specified company; maybe there is also for My Sap ERP 60 ?
    regards

    Carlos
    As far as I know, the standard way to delete products in APO is to flag it for deletion in ECC, the deletion flag is CIF'ed to APO and then run program /SAPAPO/DELETE_PRODUCTS.
    I dont think this would work if you have dependent data such as Transportation Lanes, PPM's etc.
    Rishi Menon

  • Deleting of obsolete "interface data" by archiving

    Hi all
    We use PI as a platform for distributing incoming non-SAP data to other non-SAP systems.
    During this process especially the table SWWCNTP0 grows extremely...
    What I found out is that I have to archive and afterward delete "Workitems" to have the (for me) obsolete data removed from this and other tables.
    This works so far so fine. But in the end I got the obsolete data just somewhere else, this time in the filesystem where the archive job wrote the date to. And I got a reference in the systems that point to the place where these archive files are stored.
    Question now is: How do I get rid of that archive file "officially", meaning I do not want to just delete these files as then the references in SAP point to an empty directory. I want to remove that file in a way the systems "knows and accepts" that this archived obsolete data has gone for ever.
    Does anybody know how to achieve this??
    Many thanks and any ideas are appreciated!

    Hi Frank,
    this is in fact a question about standard archiving, and so should be posted in a more appropriate forum.
    I've had some experience with archiving, and as long as you don't want to reload archive files, I don't see any problem with just removing them from the file system. I don't think there's a setting in the archiving configuration where SAP will find this acceptable, neither will SAP complain about missing archive files as long as you don't want to reload the archived objects.
    kr,
    Peter Glas

  • Manner to delete the 'obsolete'(???) files in \udump , \bdump dir...

    Hi ,
    Is there any manner that OracleDB10g can delete automatically the 'obsolete' - maybe the files which were created 2 , 3 or greater number of days ago ...-files created in \udump , \bdump directories...????
    In a way , for example , as the obsolete backups (of course if the Backup policy has been defined appropriately)....
    Thank you.....
    Sim

    There is not an 'ideal' retention time, it all depends on your local politics. If you daily look for errors on the alert.log file, most of them refer to a trace file for further details, then you should investigate on that specific day and most probably you would end up raising a service request at metalink, depending on severity, you will then be requested to send the trace and log related files. If you wait 60 days to perform such task and if this issue was critical for the system, most probably you would not have any database to administer.
    Those files are not historic archives, those files are meant to be reviewed ASAP. So a decision on whether to keep them for further analysis or purge them because they are informative only, should be done on a short time frame.
    ~ Madrid

  • How do I delete an obsolete email address?

    I use an iMac OS X 10.9.4 and mail 7.3 (1878.6)
    I need to delete those email addresses I don't use any more in the 'tom' list in the  'from' list in the composing screen of Mail.
    Thanks.

    Removing e-mail address cache
    or...
    To remove an email address from the auto-complete list in Mac OS X Mail:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.
    You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    Source: http://email.about.com/od/macosxmailtips/qt/Delete_an_Email_Address_from_Auto_Co mplete_in_Mac_OS_X_Mail.htm

  • How do I delete an obsolete icloud account?

    I have two iClould accounts, and only need one of them.  How do I delete the other one?

    Stop using iCloud? Mmmm... I get a message every minute asking me to accept terms and conditions. Then it won't take my password. I can't change my email back to the prior email because it is used as a backup email.

  • How to delete the obsolete webdynpro interface IWCI* file

    hi:
    I created a local webdyrnpro component  ZZ_TEST, but during saving, there is some error occurs, so I deleted this webdynpro and try to create it again. but I found that its corresponding interface file ZIWCI_ZTEST still existed in system.
    And when I tried to delete it manually, the following message is displayed:
    'Object cannot be edited with Class Builder'.
    and this interface could not be edited or renamed too. So it is leaved in system foreever and I have no way to delete it, which block me to recreate webdynrpo component ZZ_TEST with the same name.
    So, do you have any good way to force to delete this interface clearly?
    thanks.
    Edited by: Tony Zheng on Jul 5, 2010 4:31 PM
    Edited by: Tony Zheng on Jul 5, 2010 4:41 PM

    Even I have the same error..
             I was creating a web dynpro component , interface got created but not the web dynpro component. I tried to recreate the web dynpro component, it is not allowing me to create it. It gives a error message
    " The ABAP Interface does not exist"
    When i try to delete the interface in SE24. It gives a error message " Object cannot be edited with Class Builder".
    Is there any way to forcefully delete the interface.
    Ranganathan.

Maybe you are looking for

  • My icloud calendar on outlook 2010 wont sync invites from others!

    Hi All. I have looked high and low for an answer to this but just cant find anything as is a little quirky. I have the latest software on my iphone, I pad & PC (no 5) & I can sync via the cloud to my i pad, iphone & outlook 2010 green calander. When

  • RFC error while using SSO

    Hi experts, We tried to configure SSO using logon tickets on our EP 6.0 SP 16 system. We created JCO RFC destinations in portal server giving the SAP target system's host name and service. Similarly, we created a new TCP/IP connection in the R/3 also

  • CD burn - problem (n.b: Q from novice)

    My Playlist shows 23 songs, 56.1 mins, 52.6 MB and yet when I hit 'burn disc' I get 'will not fit on 1 audio CD' even though I have a Verbatim 700 MB/80 min CD in the drive?

  • Rotate external Monitor on T60

    Is is possible to rotate an external monitor on a T60 running XP? Thanks in advance for any help. David Moderator Note; please update your profile with your correct country location as per the forum rules. Products, options and services vary from mar

  • How to Report on Hourly Basis from BW in HH-MM(not on 0calday)

    Hi Pals, I need suggestions as my current user wants to report on every 2 hours(and staged into BW ODS) based on Time(HH-MM). Though we can bring details in BW on every 2 hrs but the issue is how to bring the Time characteristics in HH,MM. Requiremen