command to restore an archive to an ASM RMAN backup

Hello

I have a database of all the archives are in the disk. I made a backup of an archive with RMAN and I have my backup files. This archive is applied to a standby database that uses ASM and I know what the path inside the ASM where archive must be. I catalogued my backup in my database pending.

I need the command to restore an archive specific my backup to a specific path of my asm. Can you help me with the command?

Thank you

It should work.

SET ARCHIVELOG DESTINATION TO '+DG1_FRA/ORCL/tmp';
  RESTORE ARCHIVELOG FROM SEQUENCE 1 UNTIL SEQUENCE 100;

Edit: If you have 11g, you can restore your archivelog destination to archive normal and use the command of cp asmcmd copy it where you want.

Published by: AliD on February 2, 2011 15:08

Tags: Database

Similar Questions

  • Copy the RAC ASM RMAN backups

    Hi, I have a database (RHEL 5.8) RAC 2 nodes with shared ASM storage. RMAN makes daily backups on this ASM storage too. How could copy backups of the ASM to another place? I use version 10 gr 2 db, and there is no 'cp' command in asmcmd.

    How could copy backups of the ASM to another place? I use version 10 gr 2 db, and there is no 'cp' command in asmcmd.

    You can use RMAN to do it.

    Use the command

    RMAN>  backup backupset from ... format '' ;
    

    Example here:
    Re: Move ASM backups to disks

    Using the tag:
    Re: RMAN to the ASM and network file system

    Published by: Levi Pereira on April 4, 2013 11:39

  • Two questions relating to the archive redo logs with RMAN backup

    DB version: 11g

    I am new to RMAN.

    My database is in ARCHIVELOG mode. I intend to make a weekly backup for my db (02:00 every Monday). There will be all the incremental backups between these windows(Monday-to-Monday) of backup that I have would function for retrieving archived redo logs.


    Question1.
    I want to save the archived logs every day (for example at 23:00). How can I configure that?

    These are the configuration setting, that I intend to implement. I don't know how to set up the archive log backup
    configure default device type to disk;
    configure retention policy to redundancy;
    configure device type disk parallelism 1;
    configure channel 1 device type disk clear;
    configure channel 2 device type disk clear;
    configure channel 1 device type disk format '/u05/rman1/datafiles/rmnabackup1_%U';
    configure channel 2 device type disk format '/u05/rman2/datafiles/rmnabackup2_%U';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/u05/rman1/control_files/rmnabackup1_%U';
    Question2.
    After that a new full backup is taken at 02:00 on Mondays, the archived redo logs accumulated since the last 7 days become unnecessary. How can I automate the removal of the archive redo logs with RMAN?

    Archive the log delete them all input command will take the destination of the log archiving log backup archive and delete this destination.

    In the log archive destination he has archived log in the sequence 1 to 100 then will he take the backup and delete any of the destination (Monday 23:00).

    In the log archive destination he has archived sequence journal 101 to 150 then will he take the backup and remove those in the destination (Tuesday 23:00).

    In the log archive destination he has archived log in the sequence from 151 to 180 so will he take the backup and delete any of the destination (Wednesday 10:00).

    It will continue like that.

    Concerning
    Asif Kabir

    -If you help brand the response as correct/useful.

  • Restoration of 20/25% of the RMAN backup

    Hello guys,.

    I have a production environment with size terabytes, and I would like to create a new environment of test, but with a small amount of data, so I need to make a hot backup of the database and then restore only 20% to 25% of original data at a new fresh database.
    The question is this feasible scenario?, do we not have a particular way to do this?

    Thanks for your help!
    Mahmoud Darwish.

    You can use the SAMPLE when the export parameter, for example:

    expdp... SAMPLE = 25

    will export 25% of the data.

  • Range restoration of archives

    When he tries to restore multiple archives at once from the STRIP, I get the error like below. But the single file restore works very well.
    RMAN> run
    {
    restore archivelog logseq=51551 UNTIL LOGSEQ=51554 thread=2;
    }
     2> 3> 4>
    Starting restore at 29-OCT-12
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_SBT_TAPE_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 10/29/2012 23:00:50
    RMAN-20242: specification does not match any archived log in the recovery catalog
    
    RMAN>
    The under unique works.
    RMAN> restore archivelog logseq=51551 thread=2;
    
    Starting restore at 29-OCT-12
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_SBT_TAPE_1
    
    channel ORA_SBT_TAPE_1: starting archived log restore to default destination
    channel ORA_SBT_TAPE_1: restoring archived log
    archived log thread=2 sequence=51551
    channel ORA_SBT_TAPE_1: reading from backup piece SWPRDENT_01np09eg_797976016_41985.arc
    channel ORA_SBT_TAPE_1: piece handle=SWPRDENT_01np09eg_797976016_41985.arc tag=TAG20121029T200014
    channel ORA_SBT_TAPE_1: restored backup piece 1
    channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:01:35
    Finished restore at 29-OCT-12
    Can someone tell me what I'm missing. I'm on 11 GR 1 material on Linux.
    I don't use catalog

    Restore archivelog between 51551 and 51554 thread sequence 2.

    Concerning
    Asif Kabir

  • RMAN not removed the old newspaper archive location disc ASM.

    Dear Oracle gurus

    Our platform
    OS: SUN SOLARIS10 64-bit
    DB: Oracle10g r2 10.2.0.4 64bits
    Architecture: 2 - no Oracle10g RAC with ASM configured for the data file and archivelog

    We have many available on my disk archiving log but when we perform the log backup archive using the following command

    RUN {}
    overlap archivelog all;
    backup as compressed backupset ' / location/%d_DB_%u_%s_%p.rman' all entered archivelog delete;
    }


    It has only removed the 1 month of archives newspapers only.

    that needs to removed the old archive logs using the rman. ?

    Concerning
    Hitesh Gondalia

    Published by: hitgon on November 17, 2011 21:42

    Try this one:

    CROSSCHECK ARCHIVELOG ALL;
    RUN {
      BACKUP AS COMPRESSED BACKUPSET
         FORMAT '/location/%d_db_%u_%s_%p.rman'
         ARCHIVELOG ALL DELETE INPUT;
    }
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL:
    DELETE NOPROMPT OBSOLETE:
    

    : p

  • restore from default location in ASM spfile

    Hi all

    Database: 11g

    EBS: 12.1.3

    Operating systems: Solaris Sparc 64-bit

    Description of the problem:

    Cloning of the Source A instance instance target B, and both are in ASM instances. RMAN backup pending source ended, that has the spfile configured in the default location in ASM for example, see below

    ASMCMD [+ ASMDG003/TEST1 > ls - lt]

    Name of type Redund time scratched Sys

    TEMPFILE Y.

    Y ONLINELOG.

    DATAFILE Y.

    Y CONTROLFILE.

    N spfiletest1.ora = > +ASMDG003/TEST1/PARAMETERFILE/SPFILE.747.856347

    In addition, there is no SPFILE in $ORACLE_HOME/dbs to the TEST1 source instance. INITTEST1.ora file has the following entry:

    Cat INITTEST1.ora

    SPFile='+ASMDG003/test1/spfileTEST1.ora'

    Question: In the instance target to be cloned from RMAN backup FRO instance source TEST1, the performance of ' restore automatic backup spfile "rental."

    The spfile will be restored in $ORACLE_HOME/dbs in the instance target TEST2?

    If you would be grateful if someone could share their resolution.

    Thank you

    user10088255

    Solved your problem?

    If we answer your question, please mark replied to your thread.

    Best regards & thanks

    Mr. Mahir Quluzade

  • Restore an archived log RMAN backup

    Hello
    How to restore an archived log backups RMAN? I watched it here:
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191.PDF
    but can not find.

    Thank you.

    try something like this...

    RMAN > restore archivelog all;

    Use below if you know ru seq # for newspaper archive that you want to restore...

    RESTORE THE SEQUENCE 20 UNTIL SEQUENCE 28 ARCHIVELOG;

    Sorry if you were not looking for it... just throwing ideas out there...

  • Cold DB RMAN backup & restore on the other server: best procedure?

    Hello

    A few days ago I did a cold backup of the GR 2 CARS DB 11 with the following commands:

    srvctl stop database d DBPOC

    RMAN target / < < EOF

    bootable media;

    run

    {

    assign the channel c1 type disc format ' / tmp/dump/coldBkp/%T_%d_DBID%I_s%s_p%p.bkp';

    backup of database TAG 'BKPCOLDDBPOCC' keep until 'sysdate + 1000';

    backup current controlfile TAG 'BKPCOLDDBPOC_CTL' keep until 'sysdate + 1000';

    backup spfile TAG 'BKPCOLDDBPOC_SPF' keep until 'sysdate + 1000';

    output channel c1;

    }

    SHUTDOWN IMMEDIATE;

    quit smoking;

    FO %

    srvctl start database-d DBPOC

    srvctl start service d DBPOC

    Then noticing that I need a copy of controlfile I also did:

    backup current controlfile copy format in ' / opt/dump/oracle/coldBkp/currentctlfile.ctl';

    He made a set of files in the file/tmp/dump/coldBkp system that I copied to another server, resembling:

    20130912_DBPOC_DBID23987234897_s371_p1.BKP... plus my currentctlfile.ctl.

    I copied everything on another machine in/tmp/rest, where the same structure of fs and ASM

    starts existed; then run the following commands to restore this DB on

    This new server:

    1 / set some env variables

    2 / cp initDBPOC.ora /opt/oracle/app/ora11g/product/11.2.0/db_1/dbs

    3 / sqlplus: Startup nomount pfile=/opt/oracle/app/ora11g/product/11.2.0/db_1/dbs/initDBPOC.ora

    4 / rman: restoring controlfile to ' / location/of/coldbackup/files/currentctlfile.ctl';

    5 / rman: sql 'alter database mount;

    6 / rman: catalogue start with "/ location/of/coldbackup/files";

    [Type here YES]

    7 / rman: restore the database;

    8 / sqlplus: recover database using backup controlfile until CANCEL;

    [immediately cancelled the first required archive log]

    9 / sqlplus: alter database open resetlogs;

    The procedure has worked.

    But I'm not happy with this, I thought I could have done with RMAN. However, I discovered

    e.g. a CONTROLFILE RECOVER with the HELP of BACKUP is not possible with RMAN etc etc.

    and I had to swith back to sqlplus, surprisingly.

    Am I missing orders RMAN should I used? Y at - it another way - more simple? -of

    perform this restore/recovery simple thanks to the RMAN utility only? Or is my error in backup

    the first place and I should have used other commands for backup?

    Thank you very much in advance for any advice you can give me...

    Kind regards

    Sébastien

    Hello

    You can use

    RMAN > RECOVER DATABASE;

    and for the time being, you can use

    Set until clause with TIME/SCN/restore point

    HTH

  • RMAN backup and restore into Production KEEPS RAC and DATA

    Hi gurus of the Oracle

    We need the expert advice for tune and cross check the RMAN Script for Production environment below below

    Please suggest any corrections or comments on below mention scripts which will be executed on RAC and Production DATA GUARD environment

    LINUX RHEL 5.5 64-bit
    ORACLE GRID Infrastructure R2 Version 11.2.0.3.0 (we use ASM Cluster File system)
    ORACLE11g R2 Version 11.2.0.3.0

    We planned for basically rman backup drive using control file target instead of recovery catalog database

    We will have Data Guard Setup between 2 remote sites of database and two remote sites have running the local 2-node RAC database

    =========================RMAN_Full_Backup.sh=========================================================================
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_backup_lvl0_orcldb_ %m %y hour %M %S %d ".log
    # Start rman backup
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile
    tag 'datafile_full ';
    }

    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    overlap archivelog all;
    SQL 'alter system archive log current';
    backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
    tag 'archivelog_full ';
    }
    cross-checking of backup;
    delete noprompt obsolete;
    Save the list of database;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    ==================================================================================================
    =========================================RMAN_Inc_Backup.sh ===========================================
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_backup_lvl1_orcldb_ %m %y hour %M %S %d ".log
    # Start rman backup
    # use only the following line if this script is run via the root CRON
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF

    Run {}
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
    include current controlfile
    tag 'datafile_Incr ';
    }
    Run {}
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    overlap archivelog all;
    SQL 'alter system archive log current';
    backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
    tag 'archivelog_full ';
    }
    cross-checking of backup;
    delete noprompt obsolete;
    backup from the list;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    -bash - $3.2
    ====================================================================================================
    ===================================RMAN_DB_Restore.sh====================================================
    -bash-3, $ 2 cat /home/orarac/RMAN_Scripts/RMAN_DB_Restore.sh
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_restore_orcldb_ %m %y hour %M %S %d ".log
    # use only the following line if this script is run via the root CRON
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    Run {}
    BOOTABLE MEDIA FORCE;
    RESTORE THE DATABASE;
    RECOVER THE DATABASE;
    ALTER DATABASE OPEN;
    }
    EXIT;
    EXPRESSIONS OF FOLKLORE
    ====================================================================================================

    Concerning
    Hitgon

    Thank you mseberg

    This command is the full backup or a backup of level 0?

    full backup as compressed backupset
    data include current controlfile more archivelog deletion entry;

    We use command below for the full backup of database.
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile
    tag 'datafile_full ';

    We use the command below to the increment backup
    database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
    include current controlfile
    tag 'datafile_Incr ';

    What is the different when we use
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

    or

    full backup as backupset compressed database include controlfile current more archivelog delete all input;

    Concerning
    Hitgon

  • How to restore RMAN backups

    Hello

    I tried to include works of RMAN Oracle 12 c

    If I use the following command, I should have the backuppiece and the archivelog saved in a folder:

    RMAN > BACKUP database DATA PLUS ARCHIVELOG;

    If I ran this command in 4 different days, which I ended up having 4 folders with different inside files

    I guess that, in these files, I have the data files and the archivelogs

    Now I move these folders to tape, re-cutting the backups and delete expired

    Say that in a month, I need one of these backups if I put a band records and I added start with 'c:\path_of _restored_folder _L', so I added all files in the folder that I restored from tape

    Now, if I try to restore the basis of all is well but when I run the recover, it is missing some archiving logs it says

    If I put all the files for 4 days then he finds the archivelog she needs and pick up without problem

    on this basis I understand that in the folder containing a backuppiece of a specific day there is the newspaper of archive that I needed to recover from the DB, is that true? How can I know if the backups folder I need to replace in order to have all the required log archiving?

    At the moment my DB retrieves only if I handed out the Ribbon last backup folder, if I handed out the previous, it restores, but is not recover

    Also I have this configuration of the oracle recovery 3 days window maintains backups in order to be able to restore and recover the last 3 days and he simply deletes all obsolete if the FRA is full

    I tried earlier to set up the window of 3 days as a test recovery

    I ran a few backups and after that I ran the 5th FRA leak out of space and the backup fails

    I expect rman to remove the old backup and make way for a new that I have 5 backuppiece and the FRA is full, why he not do?

    Thank you

    The default behavior of RECOVER is to make a full recovery - right until the transactions today.  So it must all archivelogs.

    If you want to restore and recover to a point in time, use the SET clause to THAT specify a sequence of the newspaper or time or SNA.  Oracle will then not get beyond that point in time - that is to say he will not seek further archiving logs.

    (Ideally, when you restore an old backup, I also begins to restore the old controlfile, then using this controlfile).

    If you use the FRA in this way

    a. set db_recovery_file_dest_size and db_recovery_file_dest

    b. * not * used a FORMAT clause in the BACKUP command

    Oracle will recognize all backups in the FRA (you can check by querying V$ FLASH_RECOVERY_AREA_USAGE before and after the backup).

    In this case, Oracle can and will automatically purge outdated backups - that is to say any backup older than the retention period, provided that there is at least a L0 or backup complete closest to the retention period.  You should see messages to this effect in the alert of the instance database log file.

    Hemant K Collette

  • Pull on the RMAN backup archive logs?

    Environment:

    Oracle 11.2.0.3 EE on Solaris

    Physical standby

    I have a gap of journal archive at the moment.  The missing archive logs have been saved on the primary and have not yet been transferred to waiting due to some maintenance work performed on the standby server.

    The database will be able to recognize that the missing archivelog files are in the RMAN backup files, restore them and send them to the update server standby for application?

    If not, will it restore manually, copy them to the standby server and save them for their application?

    Thanks a lot for your help!

    -gary

    Were the archivelogs deleted on the primary once they have been saved? If they have been deleted on the primary, then you can:

    1 manually transfer the backup to forward files

    2 replace the archivelog destination configured on the eve

    3 restart the managed recovery on the standby process, and the computer should be able to detect and apply the missing archivelogs.

    If they have not been deleted on the primary and are always available in the archivelog directory configured, then the process of Data Guard should be able to detect and automatically fix the gap.

    If you have a long interval archivelogs missing and you use + ASM, you can also try to use an incremental backup to roll forward the database pending, this article provides a good step by step: the steps for Rolling forward a standby database using RMAN incremental backup. (Doc ID 836986.1)

    Kind regards
    Oscar

  • Archive newspaper vs. Full Backup Concept

    Hello

    I just need some clarification on how backups and Archives Records work. Lets say from 13:00 I have archive records 1,2,3,4,5 and then I perform a full backup at 18:00.

    I take then generate logs archiving at 18:00 to get newspapers 6,7,8,9,10. Then, I stop at 23:00.

    If my interpretation is correct, the archive logs should allow me to restore oracle to a point in time anywhere between 13:00 and 23:00. But if I have only the full backup, then I can only restore to a single point, which is from 18:00. My understanding is correct?

    Archive logs only applied to data files during backup or only during a restore? There is no archive newspaper applied on the fly.

    Thanks in advance.

    thelok wrote:
    Thanks for the great explanation! If I can do a restore time to any time point since the data changed files have been written (or when I have the last set of data files backed up more archive logs). What you say, I can force the data files to write about recovery logs (by a control point with 'alter set archive current log' or 'backup database more archivelog'), and then I can delete all archive logs have an SCN less than the SNA control point on the data files. Is this true? It would be for the purpose of preservation of disk space.

    Hello

    See this example. I hope this explains your doubt.

    # My current date is 06-11-2011 17:15
    # I not have backup of this database
    # My retention policy is to have 1 backup 
    
    # I start listing  archive logs.
    RMAN> list archivelog all;
    
    using target database control file instead of recovery catalog
    
    List of Archived Log Copies
    Key     Thrd Seq     S Low Time            Name
    ------- ---- ------- - ------------------- ----
    29      1    8       A 29-10-2011 12:01:58 +HR/dbhr/archivelog/2011_10_31/thread_1_seq_8.399.766018837
    30      1    9       A 31-10-2011 23:00:30 +HR/dbhr/archivelog/2011_11_03/thread_1_seq_9.409.766278025
    31      1    10      A 03-11-2011 23:00:23 +HR/dbhr/archivelog/2011_11_04/thread_1_seq_10.391.766366105
    32      1    11      A 04-11-2011 23:28:23 +HR/dbhr/archivelog/2011_11_06/thread_1_seq_11.411.766516065
    33      1    12      A 05-11-2011 23:28:49 +HR/dbhr/archivelog/2011_11_06/thread_1_seq_12.413.766516349
    
    ## See I have archive logs from time "29-10-2011 12:01:58" until "05-11-2011 23:28:49" but I dont have any backup of database.
    
    # So I perfom backup of database including archive logs.
    
    RMAN> backup database plus archivelog delete input;
    
    Starting backup at 06-11-2011 17:15:21
    
    ## Note above RMAN forcing archive current log, this archivelog generated will be usable only for previous backup.
    ## Is not my case... I don't have backup of database.
    
    current log archived
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=159 devtype=DISK
    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=8 recid=29 stamp=766018840
    input archive log thread=1 sequence=9 recid=30 stamp=766278027
    input archive log thread=1 sequence=10 recid=31 stamp=766366111
    input archive log thread=1 sequence=11 recid=32 stamp=766516067
    input archive log thread=1 sequence=12 recid=33 stamp=766516350
    input archive log thread=1 sequence=13 recid=34 stamp=766516521
    channel ORA_DISK_1: starting piece 1 at 06-11-2011 17:15:23
    channel ORA_DISK_1: finished piece 1 at 06-11-2011 17:15:38
    piece handle=+FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525 tag=TAG20111106T171521 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:16
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=+HR/dbhr/archivelog/2011_10_31/thread_1_seq_8.399.766018837 recid=29 stamp=766018840
    archive log filename=+HR/dbhr/archivelog/2011_11_03/thread_1_seq_9.409.766278025 recid=30 stamp=766278027
    archive log filename=+HR/dbhr/archivelog/2011_11_04/thread_1_seq_10.391.766366105 recid=31 stamp=766366111
    archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_11.411.766516065 recid=32 stamp=766516067
    archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_12.413.766516349 recid=33 stamp=766516350
    archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_13.414.766516521 recid=34 stamp=766516521
    Finished backup at 06-11-2011 17:15:38
    
    ## RMAN finish backup of Archivelog and Start Backup of Database
    ## My backup start at "06-11-2011 17:15:38"
    
    Starting backup at 06-11-2011 17:15:38
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=+HR/dbhr/datafile/system.386.765556627
    input datafile fno=00003 name=+HR/dbhr/datafile/sysaux.396.765556627
    input datafile fno=00002 name=+HR/dbhr/datafile/undotbs1.393.765556627
    input datafile fno=00004 name=+HR/dbhr/datafile/users.397.765557979
    input datafile fno=00005 name=+BFILES/dbhr/datafile/bfiles.257.765542997
    channel ORA_DISK_1: starting piece 1 at 06-11-2011 17:15:39
    channel ORA_DISK_1: finished piece 1 at 06-11-2011 17:16:03
    piece handle=+FRA/dbhr/backupset/2011_11_06/nnndf0_tag20111106t171539_0.269.766516539 tag=TAG20111106T171539 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:24
    Finished backup at 06-11-2011 17:16:03
    
    ## And finish at "06-11-2011 17:16:03", so I can recovery my database from this time.
    ## I will need archivelogs (transactions) which was generated during backup of database.
    ## Note during backup some blocks are copied others not. The SCN is inconsistent state.
    ## To make it consistent I need apply archivelog which have all transactions recorded.
    
    ## Starting another backup of archived log generated during backup.
    Starting backup at 06-11-2011 17:16:04 
    
    ## So automatically RMAN force another "checkpoint" after backup finished,
    ## forcing archive current log, because this archivelog have all transactions to bring database in a consistent state.
    
    current log archived
    using channel ORA_DISK_1
    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=14 recid=35 stamp=766516564
    channel ORA_DISK_1: starting piece 1 at 06-11-2011 17:16:05
    channel ORA_DISK_1: finished piece 1 at 06-11-2011 17:16:06
    piece handle=+FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171604_0.272.766516565 tag=TAG20111106T171604 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=+HR/dbhr/archivelog/2011_11_06/thread_1_seq_14.414.766516565 recid=35 stamp=766516564
    Finished backup at 06-11-2011 17:16:06
    
    ## Note: I can recover my database from time "06-11-2011 17:16:03" (finished backup full)
    ##  until "06-11-2011 17:16:04" (last archivelog generated) that is my recover window in this scenary.
    
    ## Listing Backup I have:
    ## Archive Logs in backupset before backup full start - *BP Key: 40*
    ## Backup Full database in backupset - *BP Key: 41*
    ##  Archive Logs in backupset after backup full stop - *BP Key: 42*
    
    RMAN> list backup;
    
    List of Backup Sets
    ===================
    
    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ -------------------
    40      196.73M    DISK        00:00:15     06-11-2011 17:15:37
            *BP Key: 40*   Status: AVAILABLE  Compressed: NO  Tag: TAG20111106T171521
            Piece Name: +FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525
    
      List of Archived Logs in backup set 40
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      ---- ------- ---------- ------------------- ---------- ---------
      1    8       766216     29-10-2011 12:01:58 855033     31-10-2011 23:00:30
      1    9       855033     31-10-2011 23:00:30 896458     03-11-2011 23:00:23
      1    10      896458     03-11-2011 23:00:23 937172     04-11-2011 23:28:23
      1    11      937172     04-11-2011 23:28:23 976938     05-11-2011 23:28:49
      1    12      976938     05-11-2011 23:28:49 1023057    06-11-2011 17:12:28
      1    13      1023057    06-11-2011 17:12:28 1023411    06-11-2011 17:15:21
    
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ -------------------
    41      Full    565.66M    DISK        00:00:18     06-11-2011 17:15:57
            *BP Key: 41*   Status: AVAILABLE  Compressed: NO  Tag: TAG20111106T171539
            Piece Name: +FRA/dbhr/backupset/2011_11_06/nnndf0_tag20111106t171539_0.269.766516539
      List of Datafiles in backup set 41
      File LV Type Ckp SCN    Ckp Time            Name
      ---- -- ---- ---------- ------------------- ----
      1       Full 1023422    06-11-2011 17:15:39 +HR/dbhr/datafile/system.386.765556627
      2       Full 1023422    06-11-2011 17:15:39 +HR/dbhr/datafile/undotbs1.393.765556627
      3       Full 1023422    06-11-2011 17:15:39 +HR/dbhr/datafile/sysaux.396.765556627
      4       Full 1023422    06-11-2011 17:15:39 +HR/dbhr/datafile/users.397.765557979
      5       Full 1023422    06-11-2011 17:15:39 +BFILES/dbhr/datafile/bfiles.257.765542997
    
    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ -------------------
    42      3.00K      DISK        00:00:02     06-11-2011 17:16:06
            *BP Key: 42*   Status: AVAILABLE  Compressed: NO  Tag: TAG20111106T171604
            Piece Name: +FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171604_0.272.766516565
    
      List of Archived Logs in backup set 42
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      ---- ------- ---------- ------------------- ---------- ---------
      1    14      1023411    06-11-2011 17:15:21 1023433    06-11-2011 17:16:04
    
    ## Here make sense what I trying explain
    ## As I don't have backup of database before of my Last backup, all archivelogs generated before of my backup full is useless.
    
    ## Deleting what are obsolete in my env, RMAN choose backupset 40 (i.e all archived logs generated before my backup full)
    
    RMAN> delete obsolete;
    
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    -------------------- ------ ------------------ --------------------
    *Backup Set           40*     06-11-2011 17:15:37
      Backup Piece       40     06-11-2011 17:15:37 +FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525
    
    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted backup piece
    backup piece handle=+FRA/dbhr/backupset/2011_11_06/annnf0_tag20111106t171521_0.268.766516525 recid=40 stamp=766516523
    Deleted 1 objects
    

    In the example above, I could before running Backup "archivelog all delete" because they are not necessary, but as an example, I followed this unnecessarily. (archivelog backup and deletion after)

    Kind regards
    Levi Pereira

    Published by: Levi Pereira on November 7, 2011 01:02

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

    ---------- ---------- ---------- ----------

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

    ---------- ------- ------- ------------------------------ --- ----------

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • RMAN backup command gets failure


    Hello;


    Merry Christmas to all


    It's the test database (10.2.0.1) on RHEL 4.8, Rman backup command was already.

    I don't understand why I got the error? What was the reason?


    RMAN > backup the database archivelog;

    From backup 25 December 14

    Current archived log

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: sid = 141 devtype = DISK

    channel ORA_DISK_1: from archive newspaper backupset

    channel ORA_DISK_1: specification of archive log backup set

    archive log entry thread = 1 sequence 2 recid = 1 stamp = 867230647 =

    archive log entry thread = 1 = 3 = 2 = 867233039 stamp recid sequence

    archive log entry thread = 1 sequence 4 recid = 3 = 867233044 stamp =

    archive log entry thread = 1 sequence 5 recid = 4 = 867233122 stamp =

    archive log entry thread = 1 sequence = recid 6 = 5 = 867233128 stamp

    archive log entry thread = 1 sequence = recid 7 = 6 = 867233214 stamp

    archive log entry thread = 1 sequence 8 recid = 7 = 867233453 stamp =

    archive log entry thread = 1 sequence 9 recid = 8 = 867233493 stamp =

    archive log entry thread = 1 sequence 10 recid = 9 = 867233559 stamp =

    channel ORA_DISK_1: starting piece 1 to December 25, 14

    channel ORA_DISK_1: finished piece 1 to December 25, 14

    piece handle=/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/backupset/2014_12_25/o1_mf_annnn_TAG20141225T101241_b9q5g4jo_.bkp tag = TAG20141225T101241 comment = NONE

    channel ORA_DISK_1: complete set of backups, time: 00:00:16

    Backup over at December 25, 14

    From backup 25 December 14

    using channel ORA_DISK_1

    channel ORA_DISK_1: from full datafile backupset

    channel ORA_DISK_1: specifying datafile (s) in backupset

    input datafile fno = 00001 name=/home/oracle/oracle/product/10.2.0/oradata/orcl/system01.dbf

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/sysaux01.dbf 00003

    input datafile fno = 00005 name=/home/oracle/oracle/product/10.2.0/oradata/orcl/example01.dbf

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/undotbs01.dbf 00002

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/users01.dbf 00004

    channel ORA_DISK_1: starting piece 1 to December 25, 14

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of command thus backup archivelog to 2014/12/25 10:13:54

    ORA-19502: write error on file ' / home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/backupset/2014_12_25/o1_mf_nnndf_TAG20141225T101301_%u_.bkp ', blockno 8833 (blocksize = 8192)

    ORA-27072: IO file error

    Linux error: 2: no such file or directory

    Additional information: 4

    Additional information: 8833

    Additional information: 348160

    > > Physical directories are available

    $ pwd

    /Home/Oracle/Oracle/product/10.2.0/Db_1/flash_recovery_area/ORCL

    [oracle@RAC1 ORCL] $ ls-l

    total 12

    drwxr-x - 3 oracle oinstall 4096 Dec 25 09:24 archivelog

    drwxr-x - 3 oracle oinstall 4096 Dec 25 09:18 backupset

    drwxr-x - 2 oracle oinstall 4096 Dec 24 17:16 onlinelog

    ORA-19502: write error on file ' / home/oracle/oracle/flash_recovery_area/ORCL/backupset/2014_12_26/o1_mf_nnndf_TAG20141226T233412_%u_.bkp ', blockno 37505 (blocks ize = 8192)

    I don't understand why is it taking over as "%u" rather than place a unique value for him. Is it the file with System FRA has enough space?

    DF h/home/oracle/oracle/flash_recovery_area/ORCL/backupset.

    Kind regards

    Shivananda

Maybe you are looking for

  • I have just refrehed Firefox, but have lost the upper left menu which had 'Bookmarks' 'tools' etc. Can you please tell me how to get that back?

    I have just updated Firefox, but seems to have lost the menu on top left of the page (very useful) who had a number of elements, including the 'bookmarks', 'tools' etc.. On the far left of this 4/5 menu item is the logo of Mozilla. Can you please tel

  • synchronize contacts

    I have synced successfully Thunderbird with e-mails that I get gmail. Can I also synchronize all incl. phone numbers. contacts and photos?thx for a tip!

  • How can I get the console error stop appearing?

    My error console keeps popping up when I open Firefox or when occurs a pop-up but its getting really boring because he has never done this before. Please tell me how to stop appearing.

  • Create shortcut folder

    How can I create a folder shortcut in a subfolder of disc to another subfolder of player for bypassing the drive letter. I don't know why but the only way that I can access the road is that if I use \\testlab-nas there is no letter, so I want to make

  • Is or was there a recall?

    error message says no operating system. What happened a couple of times but sometimes able to restore to 2 days before. This time I took HP laptop, DV9920US, geek team but said there was a recall - could not permantly fix - problem with the motherboa