Delete archivelogs using RMAN

Hi,
I usually delete archivelogs with RMAN with command as "DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE -1' if i have to clear the archivelogs to freeup space from the FRA.
My question is if i delete the archivelogs-does this deletes the records from the catalog also(I think so) if backed up to tape.In that case the catalog doesn't have info for these archives even if they are on tapes,correct?
So in case of recovery how can i restore them?
Thanks
Edited by: 822424 on May 15, 2011 7:28 PM

The RESYNC CATALOG that may be part of your backup script or implicitly executed by a Backup would synchronise from the control file to the catalog schema (repository).
I don't think that you can selectively decide what to not resync.
You can query RC_ARCHIVEDLOG (the STATUS column) in the repository and in V$ARCHIVED_LOG (which is against the controlfile)
i) before the DELETE executed by RMAN and
ii) again after the next BACKUP which does a RESYNC to see if changes are reflected.
Hemant K Chitale

Similar Messages

  • Delete archivelogs with rman

    I have this setting on one database: 10.2.0.3 on linux x86
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    When a backup occurs, i issue the following at the end:
    delete noprompt obsolete device type disk;
    Which delete an old backup and old archivelogs on the server.
    Situation: It happen rarely, but still, sometimes, I have to manualy delete archivelogs to make space.
    Here is what i do: Ensure that the archivelogs which I am about to delete are backed up.
    Then I issue the following Rman command:
    crosscheck archivelog all;
    delete noprompt expired archivelog all;
    which tells Rman that the archivelogs are not on the os anymore.
    Is there a way to delete archivelogs with rman or oracle, not manually on the os?
    note: i do not want to delete a backupset will doing so.
    This is temporary solution. More disk space is comming and new backup scenario will be in place for this database.

    Exists many ways to make this, as:
    DELETE NOPROMPT FORCE COPY OF ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-1';
    or
    BACKUP ARCHIVELOG all DELETE ALL INPUT;
    or
    BACKUP ARCHIVELOG all NOT BACKED UP 2 TIMES DELETE ALL INPUT;
    ...

  • When can you delete archivelogs with RMAN

    My database is running in archivelog and I am using RMAN to back up the database to a SBT device (tape). The question that I have is if I do backup database plus archivelogs and this backupset is wriiten to tape can I then delete the arhivelogs from disk? On the same note when I do incremental backups can I then delete all archivelogs on disk if the backupset set is written to tape.
    Thanks All!

    user10784896 wrote:
    My database is running in archivelog and I am using RMAN to back up the database to a SBT device (tape). The question that I have is if I do backup database plus archivelogs and this backupset is wriiten to tape can I then delete the arhivelogs from disk? On the same note when I do incremental backups can I then delete all archivelogs on disk if the backupset set is written to tape.
    Thanks All!Yes, and you should let rman manage that. Go to the Fine Backup and Recovery Manual at tahiti.oracle.com and check out these options for BACKUP
    archivelog delete input
    archivelog delete all input
    archivelog delete all not backed up n times
    and several other similar options.

  • How to delete archivelog with RMAN in the Primary and Standby database?

    Hello,
    I am working on Oracle 10gR2.
    My question is :
    How could I implement a automatized and secure way of:
    1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED to all my standby databases?
    2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
    Thanks a lot for your help!

    on 10G
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#CHDBEICE
    Coskan Gundogar
    http://coskan.wordpress.com

  • Unable to delete  primary database archivelogs using RMAN

    Hi,
    rman unable to delete the archivelogs of primary database even it is in sync ( with standby database).
    giving an error :-
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1693.11359.784134169 thread=2 sequence=1693
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1694.5554.784135415 thread=2 sequence=1694
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1695.11643.784164901 thread=2 sequence=1695
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1696.12654.784164913 thread=2 sequence=1696
    archive gap showing at primary.
    SQL> select to_char (sysdate,'DD-MON-YYYY HH24:MI') as "Now", a.thread#, max(a.sequence#) as "Latest" ,max(b.sequence#) as "Last", max(a.sequence#)-max(b.sequence#) as "To Apply",to_char ( max (b.next_time), 'YYYY-MON-DD HH24:MI') as "LastDate",round ((sysdate - max (b.next_time) ) * 24 * 60, 0) as "Mins Behind" FROM V$ARCHIVED_LOG a , V$ARCHIVED_LOG b where a.applied = 'NO'and b.applied = 'YES' and a.thread# = b.thread# group by a.thread#, a.applied, b.thread#, b.applied order by a.thread#;
    Now THREAD# Latest Last To Apply LastDate Mins Behind
    01-JUN-2012 00:57 1 2321 2195 126 2012-APR-25 22:34 51983
    01-JUN-2012 00:57 2 1729 1576 153 2012-APR-26 15:11 50985
    no archive gap showing at standby .
    SQL> select to_char (sysdate,'DD-MON-YYYY HH24:MI') as "Now", a.thread#, max(a.sequence#) as "Latest" ,max(b.sequence#) as "Last", max(a.sequence#)-max(b.sequence#) as "To Apply",to_char ( max (b.next_time), 'YYYY-MON-DD HH24:MI') as "LastDate",round ((sysdate - max (b.next_time) ) * 24 * 60, 0) as "Mins Behind" FROM V$ARCHIVED_LOG a , V$ARCHIVED_LOG b where a.applied = 'NO'and b.applied = 'YES' and a.thread# = b.thread# group by a.thread#, a.applied, b.thread#, b.applied order by a.thread#;
    Now THREAD# Latest Last To Apply LastDate Mins Behind
    01-JUN-2012 04:59 1 2321 2321 0 2012-MAY-31 22:32 386
    01-JUN-2012 04:59 2 1729 1729 0 2012-MAY-31 22:32 386
    any one please help me to resolve this.
    thanks ,
    Badam.
    Edited by: 937988 on May 31, 2012 9:56 PM

    Can you past here log_archive_ parameter on primary database?
    Did you create data guard configuration with dgmgrl ?
    Mahir M. Quluzade
    www.mahir-quluzade.com

  • Skip deleted archivelog backup RMAN

    Hi
    I have a database in which I want to backup all the archive logs generated during the last 24 hours.But two or three archive logs generated during that period where deleted accidentally..Now if I give the command to backup archive log generated during 24 hours,wiil the backup complete successfully?

    Now if I give the command to backup archive log generated during 24 hours,wiil the backup complete successfully?What happens when you try it ? You could test this in a test database with 4 hours of archivelogs if you would rather not backup production archivelogs.
    The RMAN documentation has commands that help -- e.g. CROSSCHECK and DELETE. Lookup those commands.
    Hemant K Chitale

  • Using RMAN to delete unwanted archivelog files..??

    Hi All,
    How can i remove the unwanted archivelog files from the disk, to manage the disk space usage, using RMAN?
    My 10g database is in ARCHIVELOG mode and the OS is RHEL ES Release 3
    when i tried with 'delete expired archivelog all;', i got the result as follows:
    RMAN> delete expired archivelog all;
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=363 devtype=DISK
    specification does not match any archive log in the recovery catalog
    Please update...
    Many Thanks in advance.....!!!

    with the delete all input, can i assume that the archivelog files has been got deleted...Don't you trust Oracle ? :-)
    You should see two series of messages, like below
    channel ORA_DISK_1: starting archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=73 recid=1 stamp=599697994
    input archive log thread=1 sequence=74 recid=2 stamp=599698064
    input archive log thread=1 sequence=75 recid=3 stamp=599698103
    input archive log thread=1 sequence=76 recid=4 stamp=599698138
    input archive log thread=1 sequence=116 recid=44 stamp=600271740
    input archive log thread=1 sequence=117 recid=45 stamp=600271859
    input archive log thread=1 sequence=118 recid=46 stamp=600277637
    channel ORA_DISK_1: starting piece 1 at 04-SEP-06
    channel ORA_DISK_1: finished piece 1 at 04-SEP-06
    piece handle=/home/ora102/flash_recovery_area/DB102/backupset/2006_09_04/o1_mf_annnn_TAG20060904T154722_2hrcmh13_.bkp tag=TAG20060904T154722 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:37
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_73_2h6ok83j_.arc recid=1 stamp=599697994
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_74_2h6omjb9_.arc recid=2 stamp=599698064
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_75_2h6onq39_.arc recid=3 stamp=599698103
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_08_28/o1_mf_1_76_2h6oosvn_.arc recid=4 stamp=599698138
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_09_04/o1_mf_1_116_2hr5tw8c_.arc recid=44 stamp=600271740
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_09_04/o1_mf_1_117_2hr5ym80_.arc recid=45 stamp=600271859
    archive log filename=/home/ora102/flash_recovery_area/DB102/archivelog/2006_09_04/o1_mf_1_118_2hrcm58z_.arc recid=46 stamp=600277637
    Finished backup at 04-SEP-06

  • Deletion of archive log using RMAN Target in Oracle 10g

    Hi All,
    I recently have noticed that the archive logs have occupied 102 GBs out of the drive and I need to free up some space. When I tried to connect RMAN Catalog using
    connect catalog user@dbI got error message as
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-06445: cannot connect to recovery catalog after NOCATALOG has been usedBut I was able to get through using
    connect target user@dbMy Query is can I use
    RMAN> delete noprompt expired archivelog all;as given in [how to delete archive log file |https://forums.oracle.com/forums/thread.jspa?threadID=2321257&start=0&tstart=0]
    Or shall I take any other approach to delete the obsolete archive logs?
    Regards,
    *009*

    Hello;
    I recently have noticed that the archive logs have occupied 102 GBs out of the drive and I need to free up some space. When I tried to connect RMAN Catalog using
    connect catalog user@dbI got error message as
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-06445: cannot connect to recovery catalog after NOCATALOG has been usedBut I was able to get through using
    connect target user@db
    Are you trying to connect it through Grid control ? If connecting through a script, then please post its contents.
    Make sure you are not connecting to the target database using "nocatalog".
    rman target sys/<pwd_of_target>@<target_db> catalog <catalog_schema>/<catalog_schema_pwd>@<catalog_db>
    My Query is can I use
    RMAN> delete noprompt expired archivelog all;
    as given in [how to delete archive log file |https://forums.oracle.com/forums/thread.jspa?threadID=2321257&start=0&tstart=0]
    Or shall I take any other approach to delete the obsolete archive logs?
    Regards,
    *009*Are these archives backed up ? The above command only updates the RMAN repository if in case the archives were delete manually at OS level.
    I would recommend you to backup these archives and then delete them.
    RMAN>backup archivelog all not backedup 1 times delete input;If these archives are already backed up and have not been deleted from the disk, then you can use the below command
    RMAN>delete force noprompt archivelog all completed before 'SYSDATE-n';where "n" is the number of days behind the current date. Make sure to verify if these archives have been backed up before deleting.
    Regards,
    Shivananda

  • When to delete archive logs- using rman 10.1.0.5

    Hello,
    I am using rman to backup my database(10.1.0.5) along with backing up the archivelogs delete input. The retention of the backup is set to 1. I am backing the datafiles and archivelogs to disk /backupdata. I noticed that the /backupdata is filling up with a lot of backup archivelogs. Since the retention of the database is set to 1, does that mean that rman will also clean the archivelogs in /backupdata too? What I am asking is, since the retention is set to 1, does rman automatically determine witch archivelogs in the /backupdata to delete if rman determines that the archivelogs is not needed to satisfied the retention 1 condition??? Thank you in advance.

    rman won't automatically purge your backups. Retention policy can be defined to be 1 (what?) redundancy copies or recovery window?
    You may have defined, let's say 1 redundant copy, which means you must have at least one backup to consider the other obsolete, and you will keep one redundant copy. The other backups are not automatically deleted, they are just marked obsolete, and you can delete them.
    I suggest you to manually purge your backups, as they will fill up your storage. issue, from a recovery manager session:
    rman> report obsolete;
    rman > delete noprompt obsolete;
    rman> report obsolete;
    The delete noprompt obsolete will physically purge all backups reported as obsolete by the first command. You can confirm actions from the last command.
    I suggest you to perform a periodic task to purge obsolete backups, schedule last command, it can be done once your regular backup ends.
    If you have Enterprise manager DB Control console enabled, it can be scheduled using the internal scheduler, and it can be monitored from within EM.
    ~ Madrid.

  • Delete archivelogs on a manual standby with RMAN

    Hi,
    Using Oracle 10.2.0.3 Standard Edition, I created a manual physical standby database with a standby controlfile. FRA is configured on both servers.
    I want to use RMAN (recovery catalog in the controlfile) to delete archivelogs on the standby server using the following command:
    rman target /
    delete archivelog until time 'sysdate-5';
    The synchronisation is monitored on a daily basis so there's no risk to delete an archivelog that is not applied.
    My question: Is there a risk of corruption of the RMAN catalog (in the controlfile) in the event of a failover? I mean, will I be able to perform my RMAN backup as it becomes the primary?
    Thanks
    Christophe

    I don't see a problem with this statement. In 10g - even when a controlfile is missing backup information for whatever reason - backups can be recataloged.
    Werner

  • Rman-08137 can't delete archivelog because the capture process need it

    When I use the rman utility to delete the old archivelog on the server ,It shows :Rman-08137 can't delete archivelog because the capture process need it .how to resolve the problem?

    It is likely that the "extract" process still requires those archive logs, as it is monitoring transactions that have not yet been "captured" and written out to a GoldenGate trail.
    Consider the case of doing the following: ggsci> add extract foo, tranlog, begin now
    After pressing "return" on that "add extract" command, any new transactions will be monitored by GoldenGate. Even if you never start extract foo, the GoldenGate + rman integration will keep those logs around. Note that this GG+rman integration is a relatively new feature, as of GG 11.1.1.1 => if "add extract foo" prints out "extract is registered", then you have this functionality.
    Another common "problem" is deleting "extract foo", but forgetting to "unregister" it. For example, to properly "delete" a registered "extract", one has to run "dblogin" first:
    ggsci> dblogin userid <userid> password <password>
    ggsci> delete extract foo
    However, if you just do the following, the extract is deleted, but not unregistered. Only a warning is printed.
    ggsci> delete extract foo
    <warning: to unregister, run the command "unregister...">
    So then one just has to follow the instructions in the warning:
    ggsci> dblogin ...
    ggsci> unregister extract foo logretention
    But what if you didn't know the name of the old extracts, or were not even aware if there were any existing registered extracts? You can run the following to find out if any exist:
    sqlplus> select count(*) from dba_capture;
    The actual extract name is not exactly available, but it can be inferred:
    sqlplus> select capture_name, capture_user from dba_capture;
    <blockquote>
    CAPTURE_NAME CAPTURE_USER
    ================ ==================
    OGG$_EORADF4026B1 GGS
    </blockquote>
    In the above case, my actual "capture" process was called "eora". All OGG processes will be prefixed by OGG in the "capture_name" field.
    Btw, you can disable this "logretention" feature by adding in a tranlog option in the param file,
    TRANLOGOPTIONS LOGRETENTION DISABLED
    Or just manually "unregister" the extract. (Not doing a "dblogin" before "add extract" should also work in theory... but it doesn't. The extract is still registered after startup. Not sure if that's a bug or a feature.)
    Cheers,
    -Michael

  • Rman delete archivelog until time 2hrs

    guys,
    I want to use this inside rman.
    rman{
    RUN{
    ALLOCATE CHANNEL ch01 TYPE DISK FORMAT 'blah lah';
    BACKUP
    ARCHIVELOG ALL
    DELETE archivelog until time "older than 2 hrs ago" backed up 1 times to device type sbt; ;
    RELEASE CHANNEL ch01;
    how do i translate this "older than 2 hrs ago" to RMAN language
    Edited by: user2579172 on Mar 29, 2010 1:19 PM

    this served my purpose :
    DELETE archivelog until time "sysdate-1/30" backed up 1 times to device type disk ;
    but
    rman is prompting whether to delete the archivelogs or not
    ex:
    List of Archived Log Copies
    Key Thrd Seq S Low Time Name
    4303374 1 11623
    Do you really want to delete the above objects (enter YES or NO)?
    Error occurred getting response - assuming NO response
    released channel: ch01
    RMAN>
    HOW i heck I tell RMAN inside the run {   to delete the archive logs without prompting me for YES OR NO                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deleting all backed up archives using RMAN

    Hi,
    I used 'delete input' to delete all the archives backed up.
    I am storing archives in dest1 and dest2...i.e, in two locatiions in production.
    Although archive in dest1 is getting deleted I am unable to delete those in dest2.Please help to delete archives in dest2 too.

    Ed,
    Probably there is missing one "all" in your command :
    C:\>rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 5 17:37:57 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ORCL (DBID=1308204436)
    RMAN> backup archivelog delete ALL input;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "delete": expecting one of: "all, from, high, like, low, scn, sequence, time, until"
    RMAN-01007: at line 1 column 19 file: standard input
    RMAN> BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
    Starting backup at 05-JUL-12
    current log archived
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=70 device type=DISK
    channel ORA_DISK_1: starting archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=325 RECID=300 STAMP=786108184
    input archived log thread=1 sequence=326 RECID=301 STAMP=786108634
    Finished backup at 05-JUL-12
    RMAN>Regards
    Girish Sharma

  • RMAN in 10g database deletes archivelog files before standby receives them

    Hi all,
    We currently have problem with our Oracle 10gR1 database on Windows 2000 server in that the RMAN backups on the primary database delete archivelogs before the standby database can receive current and new archivelogs from primary database. What happens is that RMAN backs up the archivelogs and deletes them from disk before the archivelogs are sent to the standby. The standby then looks for these archivelogs on the primary but is unable to locate them. Whenever this happens, the production database (primary) hangs and we have to restart the instance on the primary. We have our Data Guard setup in maximum performance mode so this should not happen.
    As a short term fix, we have changed the backups to have RMAN backup and delete the archive logs 15 minutes older than current time so that the standby can receive the logs and not have problems. Besides this fix is there a long term solution to the problem or is it a bug in Oracle 10g? The issue came up after we upgraded from 9i to 10g and never saw it before in 9i with RMAN and Data Guard physical standby databases.
    Thanks
    Ben Prusinski, Oracle DBA

    thanks for answer...
    did you managed to make it 'work'?
    according to doc. if set on standby it should:
    <>
    Then, these files are eligible for deletion:
    Archived redo log files in the flash recovery area that
    were applied on the standby database.
    <>
    and this is to my understanding irespective to retention policy...unfortunately report obsolete does not report applied archived logs as eligable for deletion.
    How this works in your case?
    regards.
    goran

  • Rman syntext for deleting archivelogs

    I am looking for rman syntax to delete all archivelogs but leave last 30 minutes on the disk. I tried following but it did not work
    delete archivelog until time ‘sysdate – 30/(24* 60)’
    any help would be appreciated.
    Thanks,
    mkjoco

    There was no error but RMAN was keep deleting extra logs that were created after the requested time. But good news is that it is working now with following command:
    "delete copy of archivelog all completed before 'sysdate - 30/(24*60)';"
    I found this on the net. It seems to me that RMAN was looking for first SCN time, in the log with "UNTIL TIME " but with "COPY OF" its look for file creation time.
    Don't take my words this is my guess .... If someone can verify this would be nice
    Thanks

Maybe you are looking for

  • Quit LabVIEW function doesn't work when called from Actor Framework

    This is related to a known bug. Details can be found in a discussion we had with LV R&D here: https://decibel.ni.com/content/docs/DOC-28012 I need a functional workaround to this bug because my application's top-level panel is an Actor Core.vi overri

  • XML Monitor: no interface action for sender or receiver found

    Hi, I am new to XI and currently working on Supplier Network Collaboration ( SNC) to Integrate PO's from ECC to SCM system via XI. I have successfully triggered PORDCR1 message for which I was able to see the XML message in XI. The message is stuck o

  • Solaris 8 config for DSL

    I want to reconfigure my standalone SunBlade100 for DSL service. The OS is Solaris 8 10/01, and is currently configured for dial-up access to an ISP. I've edited the etc/hosts, etc/resolve.conf, and etc/nsswitch.conf files, and I created an etc/defau

  • I can't open my Photoshop CS4 anymore- why?

    I have been unable to open my Photoshop for some time now and I get this error message when I try: Licensing for this product has stopped working. This product has encountered a problem which requires that you restart your compute before it can be la

  • Creat simulation version

    Dear All     when i try to creat sim version in cjv4 i get error massage (Results analysis key 000001 not intended for determining capitalization values) pl gave solution on this. Regards Prathamesh