Backup archivelog all (RMAN)

For the first time Rman archive log backup, say for example log sequence 100 through 200 was backed.
After few days, log sequence has increased to 267, now if i run the same archive log backup command will rman backup 100 through 267 or 201 through 267. Am bit confused with this.
Help me
kumareshan

So i need to configure retention policy (Recovery window or redundancy) so that after certain period of time entry will be removed from the catalog so that RMAN will not backup the archived logs again.. Am i right??Partially.
You need to configure the retention policy AND add a instructions to delete the backuped archivelogs, with 'delete archivelog (all)'.

Similar Messages

  • Backup archivelog all and backup archivelog in rman back

    Hi,
    Whats the difference between backup archivelog all and backup archivelog in rman backup.

    Please find below explanation from the online documentation;
    +"+
    +If you specify BACKUP ARCHIVELOG ALL, then RMAN backs up exactly one copy of each distinct log sequence number. For example, if you archive to multiple destinations, RMAN backs up one copy of each log sequence number—not each copy of each log sequence number. For other commands, such as DELETE ALL does refer to every log, even duplicate log sequences.+
    +"+
    Hope That Helps.
    Ogan
    Edited by: Ogan Ozdogan on 27.Tem.2010 00:38
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta007.htm#RCMRF107

  • RMAN backup archivelog all delete input

    Hello DBAs,
    what does this command will do?
    RMAN> backup archivelog all delete input;
    DN

    I have set cron job for RMAN> backup archivelog all delete input; and its work.
    But I got following message in my log file.
    Please give ur feed back.
    Recovery Manager: Release 10.1.0.4.0 - 64bit Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN>
    connected to target database: SIDNAME (DBID=XXXXXXXX)
    using target database controlfile instead of recovery catalog
    RMAN>
    Starting backup at 10-FEB-06
    current log archived
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=269 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=268 devtype=DISK
    channel ORA_DISK_1: starting compressed archive log backupset
    channel ORA_DISK_1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=5701 recid=2412 stamp=581958928
    input archive log thread=1 sequence=5702 recid=2413 stamp=581961105
    input archive log thread=1 sequence=5703 recid=2414 stamp=581964532
    input archive log thread=1 sequence=5704 recid=2415 stamp=582025325
    input archive log thread=1 sequence=5705 recid=2416 stamp=582029976
    input archive log thread=1 sequence=5706 recid=2417 stamp=582031922
    channel ORA_DISK_1: starting piece 1 at 10-FEB-06
    channel ORA_DISK_2: starting compressed archive log backupset
    channel ORA_DISK_2: specifying archive log(s) in backup set
    input archive log thread=1 sequence=5707 recid=2418 stamp=582037207
    input archive log thread=1 sequence=5708 recid=2419 stamp=582038471
    input archive log thread=1 sequence=5709 recid=2420 stamp=582043538
    input archive log thread=1 sequence=5710 recid=2421 stamp=582048518
    input archive log thread=1 sequence=5711 recid=2422 stamp=582055205
    channel ORA_DISK_2: starting piece 1 at 10-FEB-06
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2006 18:00:
    12
    ORA-19502: write error on file "/u02/backup/backup_6ehb2t97_1_1", blockno 6145 (
    blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    IBM AIX RISC System/6000 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    channel ORA_DISK_1 disabled, job failed on it will be run on another channel
    RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/10/2006 18:00:
    12
    ORA-19502: write error on file "/u02/backup/6fhb2t97_1_1", blockno 6145
    (blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    IBM AIX RISC System/6000 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    channel ORA_DISK_2 disabled, job failed on it will be run on another channel
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2006 18:00:
    12
    ORA-19502: write error on file "/u02/backup/backup_6ehb2t97_1_1", blockno 6145 (
    blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    IBM AIX RISC System/6000 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    RMAN>
    Recovery Manager complete.
    DN

  • Backup archivelog all

    Hi,
    Whats the difference between backup archivelog all and backup archivelog using rman.

    I think i have answered such question before, strange :)
    Anyway please find below link to read something about the backup command;
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta007.htm#RCMRF107
    +"+
    +If you specify BACKUP ARCHIVELOG ALL, then RMAN backs up exactly one copy of each distinct log sequence number. For example, if you archive to multiple destinations, RMAN backs up one copy of each log sequence number—not each copy of each log sequence number. For other commands, such as DELETE ALL does refer to every log, even duplicate log sequences.+
    +"+
    Hope That Helps.
    Ogan

  • Backup archivelog all delete all input

    RMAN> backup archivelog all delete all input;
    i have backed up all my archivelogs using the above command, but after the backup archivelogs are not deleted from its default location .ie my default archive location is '/oracle/archive' . After executing the above command, I can see all the archivelogs still available in that location. why is it so
    Db:10.2.0
    OS: solaris 10
    Edited by: user13364377 on Aug 22, 2010 10:44 AM

    >
    My control_file_record_keep_time is 7 days. My understanding is that when we specify the below command,
    Rman>backup archivelog all delete all input;
    rman will backup all the archive logs(one copy of each log sequece) from the archive location and then delete all the archive logs from the archive location. is it not correct?
    >
    That is generally right. But that assumes that RMAN knows about these archivelogfiles. It knows about them because of entries in the controlfile. If they are nolonger present - RMAN will not know them and not Backup & delete them.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Rman error when taking backup archivelog all delete input

    archive log filename=+FRA01/osondemand/archivelog/2012_02_27/thread_2_seq_15028.7182.776323223 recid=122876 stamp=77
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/27/2012 05:23:14
    RMAN-10015: error compiling PL/SQL program
    RMAN-10033: error during compilation of job step 3: ORA-00603: ORACLE server session terminated by fatal error
    ORA-04030: out of process memory when trying to allocate 272 bytes (PL/SQL DIANA,PTG: No
    10.2.04
    windows
    two node rac
    please help me with above error
    thanks for help

    Hi;
    Duplicate post
    Re: rman error when i am doing backup archivelog delete input
    Regard
    Helios

  • Backup archivelog without RMAN

    Hello!! Here I am asking for your help again :)
    How could I do, without RMAN, a backup from my archivelog files?
    I´m want to do that in Win NT OS.
    Thanks in advance.

    Hi,
    How could I do, without RMAN, a backup from my archivelog files?An archived redo log, right? These are regular OS flat files and you can copy or drag-and-drop them in Windows . . . .
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Rman archivelog backup fails with rman-03002,ora-19563

    Hi,
    D:\ Oracle- -\BIN\RMAN TARGET / NOCATALOG
    RMAN> backup archivelog all;
    RMAN-03002: Error with backup command on 06-25-2013
    ORA-19563: Header-Validation is not successful.
        fails with the given errors.
    11.2.0.2 PROD DB on Windows Server 2008  R2 Enterpriise.
    When I issue BACKUP INCREMENTAL LEVEL 0 DATABASE; it works fine. but with archivelog it is creating problems. Unfortunatly, I have not found exactly the same problem on google and on Oracle support.
    The DB is using INIT.ORA and last time when I switched the mode to archive log mode I set the parameter like SCOPE=MEMORY as SPFILE was not in use and ALTER SYSTEM with SCOPE=BOTH  FRA destination and size, but after the DB restarting of course that setting is gone and I am having these problems.
    Please suggest.
    Thanks a lot.
    Best Regards,

    Hi,
    Thanks a lot.
    I don't think that archivelogs were relocated, except I changed the location yesterday.
    As I wrote at the start that because of INIT.ORA file being in use instead of SPFILE. I set DB_RECOVERY_FILE_DEST, DB_RECOVERY_DEST_SIZE after changing the DB mode to ARCHIVELOG, but DB was restarted by somebody else, and as the parameter changing was NOT PERMANENT, it rollback.
    LOG_ARCHIVE_DEST was set to d:\oradata\db with archivelog mode but db_recovery_file_dest and size was set to 0. Now here, I have no idea that whether archivelogs were not being backed up or deleted physically, but I guess that as log_archive_dest parameter is deprecated and mode is set to archivelog with no real ARCHIVELOG DESTINATION. Please correct me if I am wrong or totally wrong :-)
    I performed DELETED EXPIRED ARCHIVELOG ALL, and it deleted 49 EXPIRED objects.
    Now CROSSCHECK ARCHIVELOG ALL and LIST ARCHIVELOG ALL shows nothing.
    LIST BACKUP OF ARCHIVELOG ALL has of course those 49 archivelog gap.
    Could you please tell the impacts of those 49 missing archivelogs. Retention policy is set to 14 days. I mean the risk is for 14 days right? As anyhow, the older backups are being DELETED according to retention policy of RMAN.

  • Rman error when i am doing backup archivelog delete input

    archive log filename=+FRA01/osondemand/archivelog/2012_02_27/thread_2_seq_15028.7182.776323223 recid=122876 stamp=77
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/27/2012 05:23:14
    RMAN-10015: error compiling PL/SQL program
    RMAN-10033: error during compilation of job step 3: ORA-00603: ORACLE server session terminated by fatal error
    ORA-04030: out of process memory when trying to allocate 272 bytes (PL/SQL DIANA,PTG: No
    10.2.04
    windows
    two node rac
    please help me with above error
    thanks for help

    Hi;
    Duplicate post:
    rman error when taking backup archivelog all delete input
    Please close your othere thread as answered and keep updating your other thread here
    Regard
    Helios

  • How can I backup archivelog generated in the last 5 minutes ?

    Version: 11.2.0.3
    Platform : RHEL 6.2
    How can I backup archivelog generated in the last 5 minutes ? Following is what I've attempted so far ?
    RMAN> backup archivelog all format '/rman_backups/Nov21Bkp/archiveTest_%U' UNTIL TIME 'sysdate-5/1440';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "until": expecting one of: "archivelog, auxiliary, backupset, backup, channel, controlfilecopy, copy, current, database, datafilecopy, datafile, db_recovery_file_dest, delete, diskratio, filesperset, force, format, from, include, keep, maxsetsize, noexclude, nokeep, not, plus, pool, recovery, reuse, section, skip readonly, skip, spfile, tablespace, tag, to, comma, (, ;"
    RMAN-01007: at line 1 column 81 file: standard input
    RMAN> backup archivelog all UNTIL TIME 'sysdate-5/1440' format '/rman_backups/Nov21Bkp/archiveTest_%U';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "until": expecting one of: "archivelog, auxiliary, backupset, backup, channel, controlfilecopy, copy, current, database, datafilecopy, datafile, db_recovery_file_dest, delete, diskratio, filesperset, force, format, from, include, keep, maxsetsize, noexclude, nokeep, not, plus, pool, recovery, reuse, section, skip readonly, skip, spfile, tablespace, tag, to, (, ;"
    RMAN-01007: at line 1 column 23 file: standard input

    HemantKChitale wrote:
    You shouldn't specify both "ALL" and "FROM/UNTIL TIME"
    Also if you want the archivelogs generated in the last 5 minutes, you should be using FROM TIME.
    If you want the archivelogs generated until 5minutes ago (and not the latest archivelogs), you should be using UNTIL TIME.
    Hemant K Chitale
    I've wondered about the utility of the FROM and UNTIL options for backup of archivelogs.  If one is going to back them up, why would one use an option that distinctly introduces the possibility of having gaps - un-backed-up archivelogs?  Why would one not simply back up all archives not previously backed up at least once?
    I'm sure you'll give me a valid response for a situation for which my imagination fails to see. 

  • How to put all RMAN-files in one backupset??  (so preventing RMAN-06023)

    ((Please see also this thread: Re: Restoring Database causes ORA-19612
    How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.
    When I do "Backup Database" and I copy the created files to another location: restoring the database keeps asking for older backuppieces.
    (Rman-error: RMAN-06023: no backup or copy of datafile 1 found to restore"
    When i type on the target:
    RMAN> list backup of datafile 1;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    12 Full 70.03G DISK 00:44:49 02-APR-12
    BP Key: 12 Status: EXPIRED Compressed: NO Tag: TAG20120402T213111
    Piece Name: G:\RMANBACKUP\0KN7EQSV_1_1
    List of Datafiles in backup set 12
    File LV Type Ckp SCN Ckp Time Name
    1 Full 2945781693 02-APR-12 D:\ORACLEDATA\CISORA1\SYSTEM01.DBF
    RMAN>
    I see that the Missing file is in a backupset of 1 day ago. That's NOT what i want. I want EVERY DAY a FULL backupset.
    please advise how to achive.
    thanks
    Edited by: AvRossem on 3-apr-2012 5:36

    AvRossem wrote:
    ((Please see also this thread: Re: Restoring Database causes ORA-19612
    How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.
    When I do "Backup Database" and I copy the created files to another location: restoring the database keeps asking for older backuppieces.
    (Rman-error: RMAN-06023: no backup or copy of datafile 1 found to restore"
    When i type on the target:
    RMAN> list backup of datafile 1;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    12 Full 70.03G DISK 00:44:49 02-APR-12
    BP Key: 12 Status: EXPIRED Compressed: NO Tag: TAG20120402T213111
    Piece Name: G:\RMANBACKUP\0KN7EQSV_1_1
    List of Datafiles in backup set 12
    File LV Type Ckp SCN Ckp Time Name
    1 Full 2945781693 02-APR-12 D:\ORACLEDATA\CISORA1\SYSTEM01.DBF
    RMAN>
    I see that the Missing file is in a backupset of 1 day ago. That's NOT what i want. I want EVERY DAY a FULL backupset.
    please advise how to achive.
    thanks
    Hi,
    How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.The short awnser is: You cannot do that.
    RMAN divides some files types in different backupset.
    This is a rule:
    Datafiles use your own Backupset
    Controlfile and SPFILE use your own Backupset
    ARCHIVELOG use your own Backupset
    For each BACKUPSET you can have many Backuppiece (i.e files on disk). As rule you always have relationship of one (Backupset) to one or more (Backuppiece).
    So, respecting the rule above you can do following:
    You can use the option FILESPERSET to keep all datafiles in same backuppiece. (In my case below 200 datafiles will be in same backuppiece)
    {code}
    RMAN> backup database tag='my_backup' filesperset 200 include current controlfile ;
    Starting backup at 03-APR-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00001 name=/u01/app/oracle/oradata/dbrcv/system01.dbf
    input datafile file number=00002 name=/u01/app/oracle/oradata/dbrcv/sysaux01.dbf
    input datafile file number=00003 name=/u01/app/oracle/oradata/dbrcv/undotbs01.dbf
    input datafile file number=00004 name=/u01/app/oracle/oradata/dbrcv/users01.dbf
    channel ORA_DISK_1: starting piece 1 at 03-APR-12
    channel ORA_DISK_1: finished piece 1 at 03-APR-12
    piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_nnndf_MY_BACKUP_7qppmnn7_.bkp tag=MY_BACKUP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel ORA_DISK_1: starting piece 1 at 03-APR-12
    channel ORA_DISK_1: finished piece 1 at 03-APR-12
    piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_ncsnf_MY_BACKUP_7qppo4ls_.bkp tag=MY_BACKUP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 03-APR-12
    RMAN> backup archivelog all filesperset 200 ;
    Starting backup at 03-APR-12
    current log archived
    using channel ORA_DISK_1
    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=16 RECID=1 STAMP=779332254
    input archived log thread=1 sequence=17 RECID=2 STAMP=779374813
    input archived log thread=1 sequence=18 RECID=3 STAMP=779393222
    input archived log thread=1 sequence=19 RECID=4 STAMP=779436085
    input archived log thread=1 sequence=20 RECID=5 STAMP=779472067
    input archived log thread=1 sequence=21 RECID=6 STAMP=779511653
    input archived log thread=1 sequence=22 RECID=7 STAMP=779580131
    input archived log thread=1 sequence=23 RECID=8 STAMP=779648029
    input archived log thread=1 sequence=24 RECID=9 STAMP=779649107
    input archived log thread=1 sequence=25 RECID=10 STAMP=779649189
    input archived log thread=1 sequence=26 RECID=11 STAMP=779649436
    channel ORA_DISK_1: starting piece 1 at 03-APR-12
    channel ORA_DISK_1: finished piece 1 at 03-APR-12
    piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_annnn_TAG20120403T171718_7qppphtb_.bkp tag=TAG20120403T171718 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
    Finished backup at 03-APR-12
    {code}
    Now I have 3 files:
    {code}
    RMAN > List BACKUSET;
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    447 Full 314.02M DISK 00:00:37 03-APR-12
    BP Key: 450 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP
    Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_nnndf_MY_BACKUP_7qppmnn7_.bkp
    List of Datafiles in backup set 447
    File LV Type Ckp SCN Ckp Time Name
    1 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/system01.dbf
    2 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/sysaux01.dbf
    3 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/undotbs01.dbf
    4 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/users01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    448 Full 9.36M DISK 00:00:04 03-APR-12
    BP Key: 451 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP
    Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_ncsnf_MY_BACKUP_7qppo4ls_.bkp
    SPFILE Included: Modification time: 03-APR-12
    SPFILE db_unique_name: DBRCV
    Control File Included: Ckp SCN: 444147 Ckp time: 03-APR-12
    BS Key Size Device Type Elapsed Time Completion Time
    492 300.38M DISK 00:00:26 03-APR-12
    BP Key: 495 Status: AVAILABLE Compressed: NO Tag: TAG20120403T171718
    Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_annnn_TAG20120403T171718_7qppphtb_.bkp
    List of Archived Logs in backup set 492
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 16 234488 30-MAR-12 261258 31-MAR-12
    1 17 261258 31-MAR-12 286957 31-MAR-12
    1 18 286957 31-MAR-12 303448 31-MAR-12
    1 19 303448 31-MAR-12 329357 01-APR-12
    1 20 329357 01-APR-12 351967 01-APR-12
    1 21 351967 01-APR-12 375454 02-APR-12
    1 22 375454 02-APR-12 409423 02-APR-12
    1 23 409423 02-APR-12 443037 03-APR-12
    1 24 443037 03-APR-12 443868 03-APR-12
    1 25 443868 03-APR-12 443928 03-APR-12
    1 26 443928 03-APR-12 444188 03-APR-12
    {code}
    See it:
    BackupSet :
    447 = Datafiles
    448 = Controfile and SPFILE
    492 = Archivelogs
    Now I want create a copy of these backupset to offsite purpose:
    {code}
    RMAN> backup backupset 447,448,492 tag='my_backup_offsite' format '/u01/app/offsite/%U';
    Starting backup at 03-APR-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: input backup set: count=17, stamp=779649348, piece=1
    channel ORA_DISK_1: starting piece 1 at 03-APR-12
    channel ORA_DISK_1: backup piece /u01/app/offsite/0hn7h0a4_1_2
    piece handle=/u01/app/offsite/0hn7h0a4_1_3 comment=NONE
    channel ORA_DISK_1: finished piece 1 at 03-APR-12
    channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:25
    channel ORA_DISK_1: input backup set: count=18, stamp=779649393, piece=1
    channel ORA_DISK_1: starting piece 1 at 03-APR-12
    channel ORA_DISK_1: backup piece /u01/app/offsite/0in7h0bh_1_2
    piece handle=/u01/app/offsite/0in7h0bh_1_3 comment=NONE
    channel ORA_DISK_1: finished piece 1 at 03-APR-12
    channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:03
    channel ORA_DISK_1: input backup set: count=19, stamp=779649439, piece=1
    channel ORA_DISK_1: starting piece 1 at 03-APR-12
    channel ORA_DISK_1: backup piece /u01/app/offsite/0jn7h0cv_1_2
    piece handle=/u01/app/offsite/0jn7h0cv_1_3 comment=NONE
    channel ORA_DISK_1: finished piece 1 at 03-APR-12
    channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:45
    Finished backup at 03-APR-12
    RMAN> list backupset tag='my_backup_offsite';
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    447 Full 314.02M DISK 00:00:37 03-APR-12
    BP Key: 624 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
    Piece Name: /u01/app/offsite/0hn7h0a4_1_3
    List of Datafiles in backup set 447
    File LV Type Ckp SCN Ckp Time Name
    1 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/system01.dbf
    2 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/sysaux01.dbf
    3 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/undotbs01.dbf
    4 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/users01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    448 Full 9.36M DISK 00:00:04 03-APR-12
    BP Key: 625 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
    Piece Name: /u01/app/offsite/0in7h0bh_1_3
    SPFILE Included: Modification time: 03-APR-12
    SPFILE db_unique_name: DBRCV
    Control File Included: Ckp SCN: 444147 Ckp time: 03-APR-12
    BS Key Size Device Type Elapsed Time Completion Time
    492 300.38M DISK 00:00:26 03-APR-12
    BP Key: 626 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
    Piece Name: /u01/app/offsite/0jn7h0cv_1_3
    List of Archived Logs in backup set 492
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 16 234488 30-MAR-12 261258 31-MAR-12
    1 17 261258 31-MAR-12 286957 31-MAR-12
    1 18 286957 31-MAR-12 303448 31-MAR-12
    1 19 303448 31-MAR-12 329357 01-APR-12
    1 20 329357 01-APR-12 351967 01-APR-12
    1 21 351967 01-APR-12 375454 02-APR-12
    1 22 375454 02-APR-12 409423 02-APR-12
    1 23 409423 02-APR-12 443037 03-APR-12
    1 24 443037 03-APR-12 443868 03-APR-12
    1 25 443868 03-APR-12 443928 03-APR-12
    1 26 443928 03-APR-12 444188 03-APR-12
    RMAN>
    {code}
    When you perform restore you can use the tag='my_backup_offsite'.
    This files belong a same policy of "configure retention policy ... " of RMAN. So, this files will be obsolete when it is out the policy.
    Hope this helps,
    Levi Pereira

  • Should we backup Archivelogs for ad-hoc Cold backups ?

    B version: 11.2
    OS version : Solaris 5.10
    Below is the script we use for ad-hoc cold backups. Is there a need to take the backup of archivelogs when we do the cold backup ?
    Sometimes archivelog backup piece's size is bigger than the backup piece containing the full backup of the DB itself ! So, too much disk space is wasted.
    The script we use
    run
    allocate channel t1 type disk;
    sql 'alter system archive log current';
    shutdown immediate;
    startup mount;
    backup  full database format='/mypath/ORCL_full_%U_%T.bkp' tag='ORCL_full';
    backup archivelog all tag='arch_bkp' format='/mypath/ORCL_BKP/arch_%U_%T.bkp' delete input;
    release channel t1;
    }

    Hello;
    A cold backup is a consistent state. So you don't have to back them up. No new archived logs generated during the backup either so you are still OK.
    For other types of RMAN backup you ALWAYS want this. This guarantees that datafile backups taken during the command are recoverable to a consistent state.
    Best Regards
    mseberg

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

  • Backup/restore using RMAN with no catalog

    Hi all,
    Can someone tell me if this is correct:
    I have two identical machines, same configuration and same file structure, everything is the same.
    On machine A, I have a 9.2.0.7 database running. I take a hot backup and try to restore it on machine B.
    Note: I am using RMAN for backup/restore whith no catalog.
    This is how I perform backup on machine A:
    ALLOCATE CHANNEL C1 TYPE DISK;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP INCREMENTAL LEVEL=0 CUMULATIVE format '/backup/level0_%u' BACKUP CURRENT CONTROLFILE format '/backup/control_primary' FORCE;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP ARCHIVELOG ALL format '/backup/archivelogs_%s_%t';
    On machine B, here is how I perform restore:
    SET DBID 1221334455;
    RESTORE CONTROLFILE FROM '/backup/control_primary';
    ALTER DATABASE MOUNT;
    RESTORE DATABASE VALIDATE;
    RESTORE DATABASE;
    Recover database;
    Thanks,

    You forgot to restore the spfile or pfile on the second node to go to nomount state.
    OR
    You can use RMAN Duplicate to do this.
    Regards
    Message was edited by:
    Singh

  • Backup archivelog in flash recovery area

    Hi,
    I want to backup my archivelogs in specified directory but when i do a backup rman my archivelog are backuped in my FRA.
    Why ???
    Regards

    848546 wrote:
    Hi,
    I want to backup my archivelogs in specified directory but when i do a backup rman my archivelog are backuped in my FRA.
    Why ???
    This is default behavior but you can use format clause like
    backup archivelog all format 'path\arch_s%s_p%p';

Maybe you are looking for