Remove archivelogs

Hi all,
I removed all archivelogs using the below rman command,
delete archivelog all;after i checked with,
sql>select count(*) from v$archived_log;####
45
Please help me to remove all archives and provide some link to read about backup and recovery.

Hello,
You should Backup the Archivelog before deleting them, so you may try this:
backup
  as compressed backupset
  device type disk
  tag 'BKP_ARCHIVE'
  archivelog all not backed up
  delete all input;It will Backup and remove the Backup up Archivelog.
Hope this help.
Best regards,
Jean-Valentin

Similar Messages

  • RMAN - Unable to remove archivelogs from catalog

    Hi
    I have missing archivelogs and want to remove them from caltalog. The controlfile is beeing used as catalog. I have done the following:
    CROSSCHECK ARCHIVELOG ALL;
    -For the missing archivelogs RMAN output is "validation failed for archived log".
    DELETE FORCE EXPIRED ARCHIVELOG ALL;
    -output says:
    deleted archive log
    archive log filename=/an/log/autonar/archive/1_317009_555884131.dbf recid=5088 stamp=685099967
    Deleted 1 EXPIRED objects
    However the command does not remove the logs from catalog.
    LIST ARCHIVE LOG ALL; still shows the above archive logs.
    Next, i tried:
    CHANGE ARCHIVELOG like '%317009%' UNCATALOG;
    And the result is the same:
    uncataloged archive log
    archive log filename=/an/log/autonar/archive/1_317009_555884131.dbf recid=5088 stamp=685099967
    Uncataloged 1 objects
    But i can still see the files in the catalog.
    Why is this happening? Anyone had problems like this?

    The problem is in the controlfile. I'm not using the database catalog, just the controlfile.
    However, I did try registrating the database on rman catalog. But the results are the same when i execute above mentioned commands.
    I also tried manually removing rows from the catalog table (RMAN.AL table). This does remove the enteries from the catalog, but not from the control file. So after the next resync, the catalog gets the information back from the controlfile and i'm back to beginning. :(

  • Removing archivelogs

    Dear buddies,
    I am running out of hard disk space and trying to remove files which might not be of great use to me.
    I am planning to remove the old alert logs and trace files. May be leaving the last couple of days' files.
    WHat about archivelog? How could I remove them? I need to remove them using RMAN?
    Please advice.
    Thanks a lot.

    Dear gcgeorge,
    I am not using flash recovery area.
    The cdump has only 1 one file and other unwanted application folders have been removed from that drive.
    This is my current backup script:
    RUN {
          crosscheck backup;
          crosscheck archivelog all;
          backup INCREMENTAL LEVEL 1 database format='PATH\%U_%I_%T.bkp' tag= "everyday_full_bkup"
          plus archivelog format='PATH\Arch%U_%I_%T.arc' tag=arcbkp;
          backup current controlfile;
          restore database validate;     
    exit
      Should I be changing it like this:
    RUN {
          crosscheck backup;
          crosscheck archivelog all;
          backup INCREMENTAL LEVEL 1 database format='PATH\%U_%I_%T.bkp' tag= "everyday_full_bkup"
          plus archivelog format='PATH\Arch%U_%I_%T.arc' tag=arcbkp;
          backup current controlfile;
          restore database validate;     
          backup archivelog all not backed up 2 times;
          delete noprompt archivelog all backed up 2 times to device type disk;
    exit

  • Removed archivelogs

    Hi , i got a problem my ASM disk is running out of space so, i cleared old onces which is already backed up .My last fullbackup is 6:00am today and by mistake i deleted my archivelogs upto date which is 4hours archives.
    my question is
    1)can we recover them ?
    now i stared backup its being falling what to do i dont know please any one help me on this
    Thanks
    Venkat

    madala03 wrote:
    Hi thanks for the reply
    i deleted it manually , now i starting to take fullbackup through netbackup it is throwing me an error because of the sequence is missing i am getting
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 02/22/2013 11:02:13
    RMAN-06059: expected archived log not found, loss of archived log compromises recoverability
    ORA-19625: error identifying file +FRABLOGIC/blahepb/archivelog/2013_02_21/thread_1_seq_4761.2599.807998611
    ORA-17503: ksfdopn:2 Failed to open file +FRABLOGIC/blahepb/archivelog/2013_02_21/thread_1_seq_4761.2599.807998611
    ORA-15012: ASM file '+FRABLOGIC/blahepb/archivelog/2013_02_21/thread_1_seq_4761.2599.807998611' does not existBy doing so, you destroyed your ability to recover in any normal scenario. You need to take a new, full, incremental 0 backup NOW!
    Then you need to implement a reasonable backup regimen. That needs to include (at least daily if no more often) an rman backup of your archivelogs and rman deletion of backed-up archive logs. The simplest form is
    backup archivelog delete all input;but I'd STRONGLY suggest you check the Backup and Recovery manual to see the variations.
    Also, while some - perhaps many - will disagree with me, I don't like putting my fra on ASM. It just feels to me like having all my eggs in one basket. But I'll also admit that while I have a couple of systems running ASM, I'm pretty new to it and just feel more comfortable with things on a regular FS.

  • Deletion of archivelogs

    hello,
    my database in archivelog mode.......
    i am taking hotbackup of datafile,controlfile and archivelogs every day.
    so what is the best way to remove archivelogs???
    i am not taking cold backups
    thanks in advance

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#sthref2303
    To quote the propaganda:
    "Oracle recovery makes inconsistent backups consistent by reading all archived and online redo logs, starting with the earliest SCN in any of the datafile headers, and applying the changes from the logs back into the datafiles."

  • Script remove archives from standby after applied

    Hello,
    I am looking for a script to remove archivelog files from the standby flash recovery area after beeing applied.
    My database is 11.2.0.3.3 on Linux Redhat 5.
    Can someone kindly proovide me an example?
    Thank you

    RMAN does that for you :
    RMAN>CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    Then set the date to what you need and run as often as you need.
    http://docs.oracle.com/cd/E18283_01/server.112/e17022/rman.htm#BAJHHAEB
    #!/bin/bash
    # Name: db_rman_arch_standby.sh
    # Purpose: Delete archive from standby
    # 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 rmancat/rmancat@rcatalog << EOF
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-1';
    exit
    EOF
    echo `date`
    echo
    echo 'End of archive cleanup on STANDBY'
    mailx -s ${MAILHEADER} $MAILTO < /tmp/rmandbarchstandby.out
    . /u01/app/oracle/dba_tool/bin/rmemptyfolders.sh ${DBNAME}
    # End of ScriptUses an ENV file ( standby.env ) for each database. Use Linux ENV to compare to your settings
    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=vt100
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATHBest Regards
    mseberg
    Edited by: mseberg on Oct 25, 2012 4:58 AM

  • Archivelogs aren't  deleted

    My archivelogs are filling my disk!
    BACKUP ARCHIVELOG ALL;
    had just told me it was complete.
    DELETE ARCHIVELOG UNTIL TIME 'SYSDATE - 7';
    tells me "specification does not match any archive log in the recovery catalog".
    It keeps killing my database. I compress the files and move them off the disk. What should I do?
    P.S. I think I know the cause of the problem started because I needed NOPROMPT in the DELETE command of my script. Instead, the script died without a YES reply? My SA compressed/moved the files as a quick fix. Now, how do I recover? I tried the "crosscheck copy" command. This allowed me to run backup. But, the archivelogs just keep building.

    You could use BACKUP ARCHIVELOG ALL DELETE INPUT; to automatically remove archivelogs after the backup.
    CROSSCHECK only verifies the existence of backups and updates the repository. See
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96565/rcmsynta21.htm#80887

  • Archive Logs - Relocating

    Good evening to all. A little about my environment:
    E-Business R12
    Oracle Enterprise DB 10.2.0.4.0
    Split Tiers Architecture:
    Server 1 / DB Node (Redhat 5.5 32bit)
    Server 2 / Apps Node
    My PROD database resides on a server that roughly has the following specs (those relevant to my post):
    Partitions:
    / = 1TB total space 99% used
    /backup = 1.75 TB total space 35% used
    /boot = 200mb
    Partitions "/" and "/backup" are physically different RAID volumes but on same controller. / is a RAID 10 array of the fastest SAS drives available. /backup is a RAID 1 array of two 1TB SATA drives mirrored. I backup the PROD db instance to the "/backup" partition keeping on disk backups only a few days deep since I then backup those on disk backups to a tape library.
    The purpose of my post is to seek advice in what to do to get myself out of the 99% used disk space condition on my "/" partition where the PROD db is. My archive log files are taking up 200GB. How hard would it be to relocate those files to my "/backup" partition and what effect or consequences might that have on performance since the "/backup" will have lower IO performance and what effect will this have on RMAN backups?
    My database uses a PFILE so would I just change the archivelog destination there and bounce the DB? What would happen then to the archive logs on the "/" partition? Couuld I then just move those files to same destination that I specified in PFILE?

    ovlz wrote:
    Good evening to all. A little about my environment:
    E-Business R12
    Oracle Enterprise DB 10.2.0.4.0
    Split Tiers Architecture:
    Server 1 / DB Node (Redhat 5.5 32bit)
    Server 2 / Apps Node
    My PROD database resides on a server that roughly has the following specs (those relevant to my post):
    Partitions:
    / = 1TB total space 99% used
    /backup = 1.75 TB total space 35% used
    /boot = 200mb
    Partitions "/" and "/backup" are physically different RAID volumes but on same controller. / is a RAID 10 array of the fastest SAS drives available. /backup is a RAID 1 array of two 1TB SATA drives mirrored. I backup the PROD db instance to the "/backup" partition keeping on disk backups only a few days deep since I then backup those on disk backups to a tape library.
    The purpose of my post is to seek advice in what to do to get myself out of the 99% used disk space condition on my "/" partition where the PROD db is. My archive log files are taking up 200GB. How hard would it be to relocate those files to my "/backup" partition and what effect or consequences might that have on performance since the "/backup" will have lower IO performance and what effect will this have on RMAN backups?
    My database uses a PFILE so would I just change the archivelog destination there and bounce the DB? What would happen then to the archive logs on the "/" partition? Couuld I then just move those files to same destination that I specified in PFILE?You are only keeping a few days of backups on disk, but have 200gb of archivelog. Does that 200gb represent 'a few days' worth of archivelog? It sounds like you are failing to backup and remove archivelogs as part of your backup strategy.
    And why are you still using a pfile? Here is a perfect example of the advantages of spfile. You could change the archivlog destination without bouncing the database. And with proper housekeeping of your archivelogs, you wouldn't have to actually move anything. Just start writing to the new location, and the old would clean itself out over the course of a few days.

  • PMON process and ORACLE Instance  - Cannot allocate log. Archival required

    Hello there,
    We are running Oracle RAC (9i) database with two nodes and Oracle Applications 11i.The operatiing system is solaris 5.8.
    1.Recently while bouncing the db, i happen to see many PMON process get started up? is it a normal thing to see those process? what is actually happening?
    oracle 14125 1 1 05:02:36 ? 18:46 ora_p007_CMWPROD1
    oracle 14123 1 1 05:02:36 ? 21:33 ora_p006_CMWPROD1
    oracle 14117 1 3 05:02:34 ? 30:58 ora_p003_CMWPROD1
    oracle 14121 1 1 05:02:35 ? 18:56 ora_p005_CMWPROD1
    oracle 5230 1 0 21:45:54 ? 0:11 ora_qmn0_CMWPROD1
    oracle 5192 1 0 21:45:09 ? 0:07 ora_pmon_CMWPROD1
    oracle 5194 1 0 21:45:09 ? 1:37 ora_diag_CMWPROD1
    oracle 5196 1 0 21:45:09 ? 0:48 ora_lmon_CMWPROD1
    oracle 5198 1 0 21:45:09 ? 2:15 ora_lmd0_CMWPROD1
    oracle 5200 1 0 21:45:12 ? 7:51 ora_lms0_CMWPROD1
    oracle 5202 1 0 21:45:13 ? 7:59 ora_lms1_CMWPROD1
    oracle 5204 1 0 21:45:13 ? 0:06 ora_dbw0_CMWPROD1
    oracle 5206 1 0 21:45:13 ? 0:17 ora_lgwr_CMWPROD1
    oracle 5208 1 0 21:45:13 ? 0:53 ora_ckpt_CMWPROD1
    oracle 5210 1 0 21:45:13 ? 0:11 ora_smon_CMWPROD1
    oracle 5212 1 0 21:45:13 ? 0:00 ora_reco_CMWPROD1
    oracle 5214 1 0 21:45:13 ? 0:06 ora_cjq0_CMWPROD1
    oracle 5218 1 0 21:45:13 ? 0:00 ora_arc0_CMWPROD1
    oracle 5220 1 0 21:45:13 ? 0:05 ora_arc1_CMWPROD1
    oracle 5223 1 0 21:45:17 ? 0:17 ora_lck0_CMWPROD1
    oracle 14113 1 1 05:02:33 ? 5:30 ora_p002_CMWPROD1
    oracle 14109 1 0 05:02:33 ? 5:14 ora_p000_CMWPROD1
    oracle 14119 1 1 05:02:34 ? 21:03 ora_p004_CMWPROD1
    oracle 14111 1 1 05:02:33 ? 6:12 ora_p001_CMWPROD1
    2.We happen to see some notifications like
    "Oracle instance <xxx> - cannot allocate log -Archival required" in the alert log file and could see many log switches in a second in archival destination.
    we have three members of log groups (two in each group) in one node and same on the other. Should we have to increase log_buffer_size or addition of redo log files is required?
    the error messages:
    ORACLE Instance xxxx - Can not allocate log, archival required
    ARCH: Connecting to console port...
    Thread 2 cannot allocate new log, sequence 55487
    All online logs needed archiving
    Current log# 12 seq# 55486 mem# 0: /dev/vx/rdsk/racdg/log12a
    Current log# 12 seq# 55486 mem# 1: /dev/vx/rdsk/racdg/log12b
    Fri Oct 10 21:47:45 2008
    Completed checkpoint up to RBA [0xd8be.2.10], SCN: 0x0000.e6dcbc2a
    Fri Oct 10 21:47:49 2008
    ARC0: Completed archiving log 7 thread 2 sequence 55482
    ARC0: Evaluating archive log 10 thread 2 sequence 55480
    ARC0: Unable to archive log 10 thread 2 sequence 55480
    Log actively being archived by another process
    ARC0: Evaluating archive log 9 thread 2 sequence 55483
    ARC0: Beginning to archive log 9 thread 2 sequence 55483
    Any suggestions to overcome these errors would be helpful.
    Thanks,
    Balu.

    Tux Dueñas wrote:
    Bueno.
    A nosotros nos apasado el error de que no se puede guardar los archive logs por falta de espacio en Disco. Eso pasa cuando algun proceso genera demasiadas ransacciones que necesitan ser escritas en los logs. Por esa razon se genera mucho archive log y se llena el espacio en disco.
    Borra los archivelog mas viejos, y que ya los tengas en un backup y asi no habra problema te recomiendo tener un espacio en disco minimo de 50%I hope this is what you meant,
    >
    We apas the error that you can not save the archive logs for lack of space on disk. That happens when any process that generates too many ransacciones need to be written in the logs. For that reason much archive log is generated and fills the space.
    Removes archivelog older, and those who already have a backup and there will be no problem so I recommend you have a disk space minimum of 50%
    >
    This is an international forum so to spread your message as far as possible, use a more universal language, English for example can be a good choice.
    Cheers
    Aman....

  • Rman hot backup

    hello
    i am using rman hot backup script to take backup database everyday but the problem is it is working but not deleting old backup older than 2 days .
    also i have question .. my database is in archive log mode and everyday about 6-7 .arch files generating in my archive directory.
    it is not deleting the old files but generating new files everyday so adding up to the space.
    SQL> show parameter archive
    NAME TYPE VALUE
    archive_lag_target integer 0
    log_archive_config string
    log_archive_dest string /u03/archive_logs/DEVL
    log_archive_dest_1 string
    also should i set dest_1 as archive location or just log_archive_dest
    whats is the difference.?
    my rman script is
    RMAN Hot backup.unix script
    The RMAN hot backup script rman_backup.sh:
    # !/bin/bash
    # Declare your environment variables
    export ORACLE_SID=DEVL
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    export PATH=$PATH:${ORACLE_HOME}/bin
    # Start the rman commands
    rman target=/ << EOF
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/backup/autobackup_control_file%F';
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
    run {
    allocate channel d1 type disk;
    allocate channel d2 type disk;
    allocate channel d3 type disk;
    allocate channel d4 type disk;
    ALLOCATE CHANNEL RMAN_BACK_CH01 TYPE DISK;
    CROSSCHECK BACKUP;
    BACKUP AS COMPRESSED BACKUPSET DATABASE FORMAT '/u03/backup/databasefiles_%d_%u_%s_%T';
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG ALL FORMAT '/u03/backup/archivelogs_%d_%u_%s_%T' DELETE INPUT;
    BACKUP AS COMPRESSED BACKUPSET CURRENT CONTROLFILE FORMAT '/u03/backup/controlfile_%d_%u_%s_%T';
    CROSSCHECK BACKUP;
    DELETE NOPROMPT OBSOLETE;
    DELETE NOPROMPT EXPIRED BACKUP;
    RELEASE CHANNEL RMAN_BACK_CH01;
    EXIT;
    EOF
    thanks

    Ahmer Mansoor wrote:
    RMAN never deletes the Backups unless there is a space pressure in the Recovery Area. Instead it marks the Backups as OBSOLETE based on Retention Policy (in your case it is 2 Days),
    To confirm it SET DB_RECOVERY_FILE_DEST_SIZE to some smaller value, the RMAN will remove all the Obsolete Backups automatically to reclaim space.Be very careful with this. If you generate a LOT of archivelog files and you exceed this size, on the next archivelog switch your database will hang with "cannot continue until archiver freed". RMAN will not automatically remove anything. RMAN only removes stuff when you program it in your script.
    See:
    http://docs.oracle.com/cd/E14072_01/backup.112/e10642/rcmconfb.htm#insertedID4 Retention Policy (recovery window or redundancy)
    things like:
    set retention window and number of copies
    crosscheck backup
    delete obsolete <-- delete old, redundant, no longer necessary backups/archivelogs
    delete expired <-- NOTE: If you manually delete files and do not execute delete expired (missing file), the DB_RECOVERY_FILE_DEST_SIZE remains the same. So, you can clean out the space and oracle will still say the location is "full".
    Understand that if you also set this parameter too small and your backup recovery window/redundancy are incorrectly set, you can also exhaust the "logical" space of this location again, putting your database at risk. Your parameter could be set to 100G on a 400G file system and even though you have 300G available, Oracle will see the limit of this parameter.
    My suggestion, get in a DEV/TEST environment and test to see how to best configure your environment for RMAN database backups/control file, archivelog backups also taking into consideration OS tape backup solutions. I always configure DISK for RMAN backups, then have some other tape backup utility sweep those locations to tape ensuring that I have sufficient backups to reconstitute my database - I also include a copy of the init.ora file, password file as well as the spfile backup in this location.
    >
    In case of Archivelogs, It is better to create and execute a Purge Job to remove Archivelogs after backup them on tape.I almost agree. I try to keep all archivelogs necessary for recovery from last full backup online. I try to keep a full backup online as well. much faster at restoring stuff instead of trying to locate it on tape.

  • Get redo sequence number against SCN

    hi all,
    environment is oracle 10gr2(10.2.0.5.0)...
    1 PROD Server
    1 DR Server (Dataguard Configuration)
    1 Reporting Server (replication is configured via oracle streams on some large tables....)
    Due to shortage of disk space i need to remove archivelogs from FRA on daily basis.
    My requirement is to identify which archived logs are required by capture process , so that archive logs that are not required could removed.
    could not identify the relationship among all_capture and v$log_history/v$archived_log views
    can get the capture process and their relevant SCN numbers from
    select c.CAPTURE_NAME, c.START_SCN,c.CAPTURED_SCN,c.APPLIED_SCN, c.FIRST_SCN,c.LAST_ENQUEUED_SCN,c.LOGMINER_ID
    FROM all_capture c;But how to get archivelog sequence number?

    Hi
    It is from 11.1, but should also work for your version.
    COLUMN CONSUMER_NAME HEADING 'Capture|Process|Name' FORMAT A15
    COLUMN SOURCE_DATABASE HEADING 'Source|Database' FORMAT A10
    COLUMN SEQUENCE# HEADING 'Sequence|Number' FORMAT 99999
    COLUMN NAME HEADING 'Required|Archived Redo Log|File Name' FORMAT A40
    SELECT r.CONSUMER_NAME,
           r.SOURCE_DATABASE,
           r.SEQUENCE#,
           r.NAME
      FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
      WHERE r.CONSUMER_NAME =  c.CAPTURE_NAME AND
            r.NEXT_SCN      >= c.REQUIRED_CHECKPOINT_SCN;  http://docs.oracle.com/cd/B28359_01/server.111/b28321/strms_cpmon.htm#CHDBBJCF
    Salman

  • Regarding deletion of archives from asm

    Dear Gurus
    I want to delete archivelogs from ASM and want to schedule a script for same in crontab.Please tell me the way for same.
    Also i removed archives manually from asmcmd.But when i runned below command,i didn't observed any change in the free_space.
    select total_mb,free_mb,(total_mb-free_mb) used from v$asm_diskgroup;
    Regards

    First of all: always, always include your four digit Oracle version and platform information,
    Moreover, crontab is a paleolithic tool, which you don't need as there is a more powerful scheduler in both database control and the database itself.
    But more importantly: One doesn't remove archivelogs using OS commands, as that will make RMAN backups don't function correctly anymore.
    You need
    delete obsolete archivelog all
    in RMAN
    Doing so, the RMAN catalog in your controlfile and the OS will be consistent.
    Sybrand Bakker
    Senior Oracle DBA

  • Archilog database problem

    Hi all,
    I met a problem of my database, i cannot connect to the database because the archive dest is full and cannot create archivelog file. My problem is i can't remove the archive log as it's on ASM disk group, could you please help what can i do to bring my database up.
    I'm trying the ASMCMD command but not sure if i can remove archivelog by command line to make available space
    Here is some details of my database
    Archivelog dest: +ASM_DG1/abdb/ (ASM)
    and i do the ls command there i found too many archive log. Can i delete them please or what can i do ?
    Please help urgently
    Raitsarevo

    raitsarevo wrote:
    Hi all,
    I met a problem of my database, i cannot connect to the database because the archive dest is full and cannot create archivelog file. My problem is i can't remove the archive log as it's on ASM disk group, could you please help what can i do to bring my database up.
    I'm trying the ASMCMD command but not sure if i can remove archivelog by command line to make available space
    Here is some details of my database
    Archivelog dest: +ASM_DG1/abdb/ (ASM)
    and i do the ls command there i found too many archive log. Can i delete them please or what can i do ?
    Please help urgently
    RaitsarevoHi Raitsarevo
    If you have taken backup of all archived redo log files after full backup of the database, then you don't need those backups and they should be deleted
    You can use RMAN to delete backups as well
    Be sure that you've the backup of all archived redo log files. Then connect to RMAN and issue the following commands:
    crosscheck archivelog all;
    delete obsolete;

  • Is this RMAN script ok?

    Hi all, I'm now approching RMAN and I wrote this script for the backup of my database (9.2.04 on Win2k3):
    report schema;
    show all;
    configure channel device type disk format 'e:/oracle/test/2_%d_%T_%u.bus';
    configure maxsetsize to 12000 M;
    configure controlfile autobackup format for device type disk to 'e:/oracle/test/filename_%F.bak';
    backup database plus archivelog;
    backup current controlfile;
    DELETE ARCHIVELOG UNTIL TIME='SYSDATE-3';
    I can see that there is a problem in this script but I don't know how to solve it. The problem is that I delete the archived logs even if the backup database command doesn't end with success. Is it possibile to modify this script so that it will remove the archived logs only if the backup process ends with success?
    Thank you very much.

    Hi,
    your script have to be depended on your environment.
    You should configure a channels for backup once and make only necessary changes in configuration thought the script.
    This is example of real backup script of large system
    -- reconfigure for 4 TAPES backup
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4;
    -- crosscheck for unavailable copy of archivelog and controlfile
    crosscheck copy of archivelog all;
    crosscheck copy of controlfile;
    -- backup archive logs for minimize time of backup up database
    backup
    format='%d_%U'
    FILESPERSET=5
    archivelog
    until time 'sysdate'
    delete input;
    -- not needed auto backup control file because we make full backup
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    -- backup database
    backup
    INCREMENTAL LEVEL=0
    database
    format='%d_%U'
    FILESPERSET=2
    skip READONLY
    skip offline
    plus archivelog
    delete input;
    -- bold strings point your attention to remove archivelog after backup
    -- PLZ Read documentation Recovery Manager Reference
    -- restore configuration for every hours archivelog backup
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    -- delete expired backup from RMAN catalog
    crosscheck backup completed before 'SYSDATE-24';
    delete noprompt expired backup;
    quit;
    For disk backup last part have to be like
    delete noprompt force backup completed before time 'SYSDATE-YOUR_TIME_WINDOW_RETENTION_POLICY'.
    Message was edited by:
    zolotko

  • Which archivelog files can be safely removed from OS

    Hi,
    I didn't used "delete input" option when backup the archivelog files. So all archivelog files still remain on the file system. How can I identily which archivelog files I can delete using the command
    "RMAN>change archivelog '/u04/arch/arch_xxx.arc' delete; "
    where xxx is the seq I need to make sure it's safe to be removed.
    I need to make sure "restore archivelog all validate" command will still report successful afterward. The total size of archivelog files is over 20GB and I'm running out of space now. Thanks.

    The only way to delete your archlog is do not do a cross check archivelog all. Bec that will invalidate your archlogs. We have a rentetion of 28 days and we dlete archlogs after everybackup using delete input. While doing cross check we use "cross check completed before 'xxx'" and then it still keeps active in repo.
    Regards,
    http://askyogesh.com

Maybe you are looking for