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

Similar Messages

  • 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.

  • How to delete archive log by RMAN.

    Hi All,
    How to delete archive log by RMAN and what is the difference between
    delete all input & all delete input in RMAN backup.

    plus archivelog all delete inputYou get an error on the syntax.
    "PLUS ARCHIVELOG" does not allow the "ALL" keyword.
    (See "backupSpecOperand" in the RMAN Documentation of the BACKUP command syntax).
    However, "DELETE INPUT" allows the optional "ALL" keyword as in "DELETE ALL INPUT" to delete from all archivelog destinations.
    I guess that you have confused the "ALL" keyword in "BACKUP ARCHIVELOG" as being possible in "BACKUP .. PLUS ARCHIVELOG".
    "ALL" is allowed in "BACKUP ARCHIVELOG" but not in "BACKUP .. PLUS ARCHIVELOG".
    Hemant K Chitale

  • *HOW TO DELETE THE ARCHIVE LOGS ON THE STANDBY*

    HOW TO DELETE THE ARCHIVE LOGS ON THE STANDBY
    I have set the RMAN CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY; on my physical standby server.
    My archivelog files are not deleted on standby.
    I have set the CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default on the Primary server.
    I've checked the archivelogs with the FRA and they are not beign deleted on the STANDBY. Do I have to do something for the configuation to take effect? Like run a RMAN backup?
    I've done a lot ofresearch and i'm getting mixed answers. Please help. Thanks in advanced.
    J

    Setting the Policy will not delete the Archive logs on the Standby. ( I found a thread where the Data Guard product manager says "The deletion policy on both sides will do what you want" ). However I still
    like to clean them off with RMAN.
    I would use RMAN to delete them so that it can use that Policy are you are protected in case of Gap, transport issue etc.
    There are many ways to do this. You can simply run RMAN and have it clean out the Archive.
    Example :
    #!/bin/bash
    # Name: db_rman_arch_standby.sh
    # Purpose: Database rman backup
    # Usage : db_rman_arch_standby <DBNAME>
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . db_rman_full <DBNAME> "
    exit 1
    fi
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    echo ${DBNAME}
    MAILHEADER="Archive_cleanup_on_STANDBY_${DBNAME}"
    echo "Starting RMAN..."
    $ORACLE_HOME/bin/rman target / catalog <user>/<password>@<catalog> << EOF
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';
    exit
    EOF
    echo `date`
    echo
    echo 'End of archive cleanup on STANDBY'
    mailx -s ${MAILHEADER} $MAILTO < /tmp/rmandbarchstandby.out
    # End of ScriptThis uses ( calls an ENV) so the crontab has an environment.
    Example ( STANDBY.env )
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=STANDBY
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    #export TERM=linux=80x25 wrong wrong wrong wrong wrong
    export TERM=vt100
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATH
    export MAILTO=?? your email hereNote use the env command in Unix to get you settings.
    There are probably ten other/better ways to do this, but this works.
    other options ( you decide )
    Configure RMAN to purge archivelogs after applied on standby [ID 728053.1]
    http://www.oracle.com/technetwork/database/features/availability/rman-dataguard-10g-wp-1-129486.pdf
    Maintenance Of Archivelogs On Standby Databases [ID 464668.1]
    Tip I don't care myself but in some of the other forums people seem to mind if you use all caps in the subject. They say it shouting. My take is if somebody is shouting at me I'm probably going to just move away.
    Best Regards
    mseberg
    Edited by: mseberg on May 8, 2012 11:53 AM
    Edited by: mseberg on May 8, 2012 11:56 AM

  • I accidently delete the archived log, how to recover?

    There was old archived log file in a directory, I delete the directory, so when I backup whole archived log with RMAN, I often got error like this,
    RMAN-06059: expected archived log not found, lost of archived log compromises recoverabiligy
    ora-196525: error identifying file G:\oracle\oradata\archive\arc00081.001
    I am using oracle 9.2 on windows XP
    Edited by: user8117130 on Jun 14, 2009 9:35 PM

    HI..
    I delete the directory, so when I backup other archived log with RMAN, I often got error like this From metalink:-
    Error:     RMAN-06059 (RMAN-6059)Text:     expected archived log not found, lost of archived log compromises
         recoverability
    Cause:     The archived log was not found. The repository thinks it does
         exist. If the archived log has in fact been lost and there is no
         backup, then the database is no longer recoverable across the
         point in time covered by the archived log. This may occur because
         the archived log was removed by an outside utility without
         updating the repository.
    Action:     If the archived log has been removed with an outside utility and
         the archivelog has already been backed up, then you can
         synchronize the repository by running CROSSCHECK ARCHIVELOG ALL.
         If the archivelog has not been previously backed up, then you
         should take a full backup of the database and archivelogs to
         preserve recoverability. Previous backups are not fully
         recoverable.
    >
    Anand

  • Script for automatic delete of archive logs/redologs

    Hi Experts,
    Do you have any idea on how to create a shell script. Actually the function of it, is to automatically deletes the archive logs/redologs if reaches the limit. Or is there any parameter to change to set the automatic deletion of archive logs/redologs.
    Regards

    Hi,
    at first, archivelogs should always be saved to tape before you delete them. If you don't want to backup them, may be for a test system, you can suppress them in ORACLE instead to delete them later.
    You can run the database in "NOARCHIVE LOG MODE". If you do so, the online redologs are not archived, they are still reused and overwritten. You can not run an online Backup, when the database is in noarchive log mode. If you want to backup the database, you have to run an offline backup.
    Do not use the NOARCHIVE LOG MODE for production or developemet systems.
    To change the archive log mode:
    shutdown the database
    startup mount;
    alter database noarchivelog;
    alter database open;
    archive log list       will show the actual status
    regards Ulrich

  • How to delete the archive logs.

    Hi,
    I need to delete the archive logs in standby database which has been generated after created the restore point.
    SEQUENCE# APPLIED
    17 YES
    18 YES
    1 NO
    2 NO
    19 YES
    18 YES
    21 YES
    22 YES
    20 YES
    23 YES
    24 YES
    sequence 1,2 has been generated after created the restore point,how can i remove sequence# 1 and 2 from the v$archived_log;
    ways i have tried
    1.dropped the restore point during that time only the flashback logs has been deleted not the archive log
    2.manually tried from rman ,but i was not working.
    please help me out....
    ***points are waiting for you guys****

    Hi,
    I need to delete the archive logs in standby database which has been generated after created the restore point.
    SEQUENCE# APPLIED
    17 YES
    18 YES
    1 NO
    2 NO
    19 YES
    18 YES
    21 YES
    22 YES
    20 YES
    23 YES
    24 YES
    sequence 1,2 has been generated after created the restore point,how can i remove sequence# 1 and 2 from the v$archived_log;
    ways i have tried
    1.dropped the restore point during that time only the flashback logs has been deleted not the archive log
    2.manually tried from rman ,but i was not working.
    please help me out....
    ***points are waiting for you guys****

  • How to find out who deleted the archive logs

    Hi All,
    Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
    OS Version :-
    SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
    Database Version:-
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012

    888132 wrote:
    Hi All,
    Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
    OS Version :-
    SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
    Database Version:-
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012As explained by others, from oracle database there is no record if they are deleted from OS.
    But you can probably find the history of OS command been run with history command :). You can get the date and time.
    Following link can help
    http://stackoverflow.com/questions/99755/how-do-i-get-the-command-buffer-in-solaris-10
    http://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
    http://www.linuxquestions.org/questions/solaris-opensolaris-20/in-solaris-command-line-how-to-get-the-previous-commands-573814/
    But i suggest you to post in Sun OS forum to get more details as its nothing to do with Database(in this scenario)

  • Example of using pie graphs in oracle 10g or 9i forms (not JDeveloper)

    Hi..
    Please can anyone show me how to use pie graphs in oracle 10g or 9i forms using bean?
    i also want to know how to put data in pie graph.. as u know in column graph for example we have an x-axis and y-axis,and in pie there is no x-axis and y-axis.. so how i can put the same data in pie graph.. and also i may need more than one value for the x-axis or the y-axis to use in pie graph so how can i do it??
    i use set_custom_property to call properties in beans.
    I would so thankful for how can answer me.. please its urgent
    thanks

    Hi,
    Thanks for your reply..but i already have this demo and it doesn't contain an example for a pie graph..if u know where i can find any example for a pie graph and how to pass data to it i would be so thankful
    Thanks again.
    Eyad Basheer

  • Delete standby archived log

    I need to delete some standby archived log from my downstreams database but I not find the way, please help me.

    If you are looking for an automatic way to delete them, then you can archive to a flash recovery area on the standby, which can act as a FIFO archivelog bucket:
    $ sqlplus / as sysdba
    SQL> alter system set db_recovery_file_dest='+datadg' scope=both;
    SQL> alter system set db_recovery_file_dest_size=2G scope=both;
    SQL> alter system set log_archive_dest_1='location=use_db_recovery_file_dest' scope=both;
    $ rman target /
    RMAN> configure retention policy to redundancy 1;
    RMAN> configure archivelog deletion policy to applied on standby;Of course substitute your own preferred values for above, use the RMAN catalog if you have one, and don't step on any pre-existing retention policy or FRA that you might wish to keep the way it is.
    Regards,
    Jeremiah Wilton
    Blue Gecko, Inc.
    [http://www.bluegecko.net|http://www.bluegecko.net]

  • Delete unwanted archive logs

    We do only one way replication using stream. How do I find archive logs that can be deleted at source. Our destination runs nonarchive.

    If you use RMAN - it is streams friendly and should know which logs can be purged.
    Otherwise, I use the following query:
    SELECT r.CONSUMER_NAME,
    r.NAME,
    r.FIRST_SCN,
    r.NEXT_SCN,
    case when (r.next_scn > c.required_checkpoint_scn) then ‘NO’ else ‘YES’ end purgable
    FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
    WHERE r.CONSUMER_NAME = c.CAPTURE_NAME;
    According to Metalink note 373066.1 this is what RMAN does, so it should be safe.

  • 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

  • How to automatically delete archivelogs on standby using RMAN?

    Hello team. I just setup a physical standby on windows environment. The primary database is been backed up via RMAN and everything works fine except that the archivelogs moved to standby site are not been deleted.
    I couldn't find some rman option to add to the scripts to take care of this issue.
    Environment:
    Windows 2003 server 32bits
    Oracle Database 9.2.0.8
    Thanks in advance!

    If you were using 10g or later you could use a deletion policy as per Oracle support note ID 728053.1.
    In 9i you need to schedule an RMAN job or shell script to delete these archives, e.g.:
    RMAN> delete archvielog all completed before 'sysdate-1';
    I have not tried it, but you can schedule also a PL/SQL script to take care of this, e.g.:
    http://www.dbasupport.com/forums/archive/index.php/t-18680.html
    http://gnjatovic.blogspot.com/2011/03/delete-applied-arhivelogs-on-standby.html

  • How to delete old archived logs

    hai i am running oracle 9i in archive log mode
    my disk is about 90% full
    pls tell me how to delete archive logs that are very older

    Hi Rajeskm,
    First of all, archives should not be deleted, depending your backup policie, you can need them in a recovery. But if you want delete them, do:
    find <log_archive_dest>/ -name *.rdo (or extention used by you) mtime +<days ago> -exec rm{}\
    Explanation:
    Find -- The first, and most obvious, use is find's ability to locate old, big, or unused files, or files that you forgot where they are.
    mtime -- The mtime--modify time--is the time when the actual contents of a file was last modified. This is the time displayed in a long directoring listing (ls -l).
    rm -- Deletes a file without confirmation (by default).
    Regards,
    Jonathan Ferreira - Brazil
    http://www.ebs11i.com.br

  • How to restore archive logs with rman

    Hi,
    here is the scenario:
    we have lost everything because of disk failure.
    we have a full cold backup and archivelog backups which were created after cold backup and were backed up with rman.
    after restoring from cold backup, because archivelog backups do not exist in controlfile, how can we catalog archivelog backups and restore them?
    could you give me the exact rman command for this?
    Best Regards,
    Kamil

    cold backup means offline backup, you shut database normally and copy datafiles to another location.
    i think operating system does not matter that much but it is RedHat Linux Enterprise Server.
    backing up archivelogs whith rman script which is:
    run {
    allocate channel c1 type disk format '$BKUPLOC/arch_%d_%u_%s_%p.bkp';
    change archivelog all validate;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    backup archivelog time between 'SYSDATE - (30*60/(60*60*24))' and 'sysdate';
    release channel c1;
    so here is the details.
    1. because everything is lost, we restored all files(datafiles, controlfiles, redologs etc) from offline backup meaning copied all files from another location to corresponding location.
    2. want to apply archive logs which were created after cold backup till disk failure and we have these archive logs with backups which were taken by rman.
    So
    first of all, we want to register these archive log rman backups(because these backup information does not exist in restored controlfile)
    and then restore them and then apply them.
    we need rman commands to register these backups and restore them.
    Regards,
    Kamil

Maybe you are looking for

  • The "new tab" tiles can no longer be updated.

    For about a month now the version of firefox on my work pc, the "new tab" tiles can no longer be updated. I can move existing tabs. I cannot add new tabs. Dragging a bookmark over an empty tile opens the link in the "new tab". If I accidentally delet

  • Path Selection between 10 gig fiber and microwave

    Hello everyone, my network is running OSPF as an IGP, i have a 10 gig Ethernet  fiber connected between two sites and a microwave link as a redundant connection. since ospf metric is cost ( or bandwidth ), the 10 gig ethernet connection is always pre

  • Error in Dep Run

    Hi All, While Running the Depriciation i am getting below error Account 600400 is a Depreciation A/c for F & F. Account 600400 requires an assignment to a CO object Message no. KI235 Diagnosis You have not defined a CO account assignment for an accou

  • ITunes Match songs on library with external drive

    Hi, I have all my music on an external drive (and my library files on the internal drive). I activated iTunes Match so I can listen to my music when the drive is not present. iTunes Match activated succefully and I see all my music on my iPhone. But

  • XL reporter authorization error

    Hi All, we are working on SAP Business One 2007 B (8.60.034) SP: 00 PL: 07. the XL reporter comes with the release of the core product. I was facing the error of 'User authentication failed' and came to know that it was because the system was upgrade