Restore archivelogs

Hi all,
I'm working on a 10.2.0 version. I need to restore my last archivelog backup.
Exist any way to restore all available archives?
Regards,
dbajug

Hi Belman,
crosscheck archivelog all ;
Double job : the restore will do that implicitly.
Quick scenario (10.2.0.5 , Suse 11 x86) :
RMAN>  restore archivelog  from time 'sysdate - 1/24';
Démarrage de restore dans 20/09/10
utilisation du canal ORA_DISK_1
journal d'archivage, thread 1 séquence 76 déjà sur disque en tant que fichier /u02/save/P102/archivelog/P102_1_76_729703138.arc
restauration non exécutée; fichiers de consultation seule, hors ligne ou déjà restaurés
Fin de restore dans 20/09/10
oracle@dellsp:/tmp> mv /u02/save/P102/archivelog/P102_1_76_729703138.arc /u02/save/P102/archivelog/P102_1_76_729703138.arc.old
RMAN> restore archivelog  from time 'sysdate - 1/24';
Démarrage de restore dans 20/09/10
utilisation du canal ORA_DISK_1
canal ORA_DISK_1 : démarrage de la restauration du journal d'archivage vers la destination par défaut
canal ORA_DISK_1 : restauration du journal d'archivage
journal d'archivage thread=1 séquence=76
canal ORA_DISK_1 : lecture de l'élément de sauvegarde /u02/save/P102/backupset/2010_09_20/o1_mf_annnn_TAG20100920T214401_69hgd2h2_.bkp
canal ORA_DISK_1 : restauration de l'élément de sauvegarde 1
élément descripteur=/u02/save/P102/backupset/2010_09_20/o1_mf_annnn_TAG20100920T214401_69hgd2h2_.bkp balise=TAG20100920T214401
canal ORA_DISK_1 : restauration terminée, temps écoulé : 00:00:01
Fin de restore dans 20/09/10
oracle@dellsp:/tmp> ls /u02/save/P102/archivelog/P102_1_76_729703138.arc
/u02/save/P102/archivelog/P102_1_76_729703138.arcBest regards
Phil

Similar Messages

  • Rman errors on restore archivelog

    Hi all,
    I am running scripts to back up database every day , but after while 7 days it start to give me errors like:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/16/2003 04:06:04
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 1 seq 43 scn 3924903 found to restore ...........
    that is script:
    $ORACLE_HOME/bin/rman target / << EOF
    configure retention policy to redundancy 3;
    configure retention policy to recovery window of 3 days;
    configure backup optimization on;
    configure controlfile autobackup off;
    configure default device type to Disk;
    configure device type Disk parallelism 1;
    configure datafile backup copies for device type Disk to 1;
    configure channel device type Disk format '/backup/%d_datafile_%s_%p.bak';
    configure maxsetsize to unlimited;
    configure snapshot controlfile name to '/backup/prod_snapcf.f';
    set controlfile autobackup format for device type Disk to '/backup/prod_controlfile_%F';
    show all;
    run {
    allocate channel ch1 type Disk maxpiecesize = 1900M;
    backup full database noexclude
    include current controlfile
    format '/backup/%d_datafile_%s_%p.bak'
    tag 'prod_datafile_daily';
    run {
    allocate channel ch1 type Disk maxpiecesize = 1900M;
    backup archivelog all
    delete all input
    format '/backup/%d_archivelog_%s_%p.bak'
    tag 'prod_archivelog_daily';
    run {
    allocate channel ch1 type Disk maxpiecesize = 1900M;
    backup format '/backup/%d_controlfile_%s.bak' current controlfile;
    crosscheck backup;
    restore controlfile to '/backup' validate;
    restore tablespace SYSTEM validate;
    restore archivelog all validate;
    list backup of database;
    report unrecoverable;
    report schema;
    report need backup;
    report obsolete;
    delete noprompt expired backup of database;
    delete noprompt expired backup of controlfile;
    quit
    I can resetlogs and that error disapeire
    Does anybody know that wrong with that script?
    Thanks

    Really the error is very strange realizing that if functions well for about 6 days or something like that.
    this is a notable line in the error.
    some targets not found - aborting restore
    I recommend you to check very well your targets path
    to be restore. I think that is the cause of the failure.
    Joel P�rez

  • How to restore archivelogs on RAC ?

    Hello !
    I need to restore archivelogs for 2 hours: to_date('04/08/2010 23:00:00','dd/mm/yyyy HH24:mi:ss')" until time "to_date('05/08/2010 01:00:00','dd/mm/yyyy hh24:mi:ss'). I have this files on tape:
    RMAN> list backup of archivelog from time "to_date('04/08/2010 23:00:00','dd/mm/yyyy HH24:mi:ss')" until time "to_date('05/08/2010 01:00:00','dd/mm/yyyy hh24:mi:ss')";
    List of Backup Sets
    ===================
    BS Key  Size
    1359667 19.00M
      List of Archived Logs in backup set 1359667
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      3    24686   68236434950 04/08/2010 22:54:47 68243156430 04/08/2010 23:46:12
      Backup Set Copy #1 of backup set 1359667
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:03:50     04/08/2010 23:51:06 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359667 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359674 1   AVAILABLE   NN0876L3                /ORACLE:SVPRD1B:REDO:153543_726191236_1/
      Backup Set Copy #2 of backup set 1359667
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:03:50     04/08/2010 23:51:06 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359667 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359675 1   AVAILABLE   NN0261L3                /ORACLE:SVPRD1B:REDO:153543_726191236_2/
    BS Key  Size
    1359668 19.96G
      List of Archived Logs in backup set 1359668
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      1    33810   68236430016 04/08/2010 22:54:44 68240656570 04/08/2010 23:25:13
      Backup Set Copy #1 of backup set 1359668
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:22:24     05/08/2010 00:09:39 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359668 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359676 1   AVAILABLE   NN0876L3                /ORACLE:SVPRD1B:REDO:153541_726191236_1/
      Backup Set Copy #2 of backup set 1359668
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:22:24     05/08/2010 00:09:39 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359668 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359677 1   AVAILABLE   NN0261L3                /ORACLE:SVPRD1B:REDO:153541_726191236_2/
    BS Key  Size
    1359669 2.56G
      List of Archived Logs in backup set 1359669
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      1    33811   68240656570 04/08/2010 23:25:13 68243156997 04/08/2010 23:46:13
      Backup Set Copy #1 of backup set 1359669
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:02:38     05/08/2010 00:12:20 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359669 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359678 1   AVAILABLE   NN0876L3                /ORACLE:SVPRD1B:REDO:153544_726192582_1/
      Backup Set Copy #2 of backup set 1359669
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:02:38     05/08/2010 00:12:20 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359669 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359679 1   AVAILABLE   NN0261L3                /ORACLE:SVPRD1B:REDO:153544_726192582_2/
    BS Key  Size
    1359670 19.95G
      List of Archived Logs in backup set 1359670
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      2    33578   68236472935 04/08/2010 22:55:03 68240747010 04/08/2010 23:26:01
      Backup Set Copy #1 of backup set 1359670
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:26:38     05/08/2010 00:13:54 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359670 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359680 1   AVAILABLE   NN0876L3                /ORACLE:SVPRD1B:REDO:153542_726191236_1/
      Backup Set Copy #2 of backup set 1359670
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:26:38     05/08/2010 00:13:54 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359670 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359681 1   AVAILABLE   NN0261L3                /ORACLE:SVPRD1B:REDO:153542_726191236_2/
    BS Key  Size
    1359671 2.48G
      List of Archived Logs in backup set 1359671
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      2    33579   68240747010 04/08/2010 23:26:01 68243160092 04/08/2010 23:46:14
      Backup Set Copy #1 of backup set 1359671
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:02:46     05/08/2010 00:16:48 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359671 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359682 1   AVAILABLE   NN0876L3                /ORACLE:SVPRD1B:REDO:153545_726192843_1/
      Backup Set Copy #2 of backup set 1359671
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:02:46     05/08/2010 00:16:48 NO         TAG20100804T234715
        List of Backup Pieces for backup set 1359671 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359683 1   AVAILABLE   NN0261L3                /ORACLE:SVPRD1B:REDO:153545_726192843_2/
    BS Key  Size
    1359733 17.25M
      List of Archived Logs in backup set 1359733
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      3    24687   68243156430 04/08/2010 23:46:12 68260260710 05/08/2010 01:41:22
      Backup Set Copy #1 of backup set 1359733
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:02:48     05/08/2010 01:51:01 NO         TAG20100805T014812
        List of Backup Pieces for backup set 1359733 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359743 1   AVAILABLE   NN0821L3                /ORACLE:SVPRD1B:REDO:153560_726198493_1/
      Backup Set Copy #2 of backup set 1359733
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:02:48     05/08/2010 01:51:01 NO         TAG20100805T014812
        List of Backup Pieces for backup set 1359733 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359744 1   AVAILABLE   NN0833L3                /ORACLE:SVPRD1B:REDO:153560_726198493_2/
    BS Key  Size
    1359739 9.97G
      List of Archived Logs in backup set 1359739
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      1    33812   68243156997 04/08/2010 23:46:13 68253559461 05/08/2010 00:55:07
      1    33813   68253559461 05/08/2010 00:55:07 68260254831 05/08/2010 01:41:19
      Backup Set Copy #1 of backup set 1359739
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:11:44     05/08/2010 01:59:57 NO         TAG20100805T014812
        List of Backup Pieces for backup set 1359739 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359750 1   AVAILABLE   NN0821L3                /ORACLE:SVPRD1B:REDO:153558_726198493_1/
      Backup Set Copy #2 of backup set 1359739
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:11:44     05/08/2010 01:59:57 NO         TAG20100805T014812
        List of Backup Pieces for backup set 1359739 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359751 1   AVAILABLE   NN0833L3                /ORACLE:SVPRD1B:REDO:153558_726198493_2/
    BS Key  Size
    1359740 9.84G
      List of Archived Logs in backup set 1359740
      Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
      2    33580   68243160092 04/08/2010 23:46:14 68253672744 05/08/2010 00:56:10
      2    33581   68253672744 05/08/2010 00:56:10 68260864567 05/08/2010 01:46:16
      Backup Set Copy #1 of backup set 1359740
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:12:20     05/08/2010 02:00:33 NO         TAG20100805T014812
        List of Backup Pieces for backup set 1359740 Copy #1
        BP Key  Pc# Status      Media                   Piece Name
        1359752 1   AVAILABLE   NN0821L3                /ORACLE:SVPRD1B:REDO:153559_726198493_1/
      Backup Set Copy #2 of backup set 1359740
      Device Type Elapsed Time Completion Time     Compressed Tag
      SBT_TAPE    00:12:20     05/08/2010 02:00:33 NO         TAG20100805T014812
        List of Backup Pieces for backup set 1359740 Copy #2
        BP Key  Pc# Status      Media                   Piece Name
        1359753 1   AVAILABLE   NN0833L3                /ORACLE:SVPRD1B:REDO:153559_726198493_2/but when I am trying to restore them I receive an error:
    RMAN> run {
    allocate channel t1 type 'sbt_tape';
    2>  set archivelog destination to '/oracle/archive/svprd1b1/20100817_arch_rest';
    restore (archivelog from time "to_date('04/08/2010 23:00:00','dd/mm/yyyy HH24:mi:ss')" until time "to_date('05/08/2010 01:00:00','dd/mm/yyyy hh24:mi:ss')" );
    release channel t1;
    3> 4> 5> 6>
    allocated channel: t1
    channel t1: sid=1725 instance=SVPRD1B1 devtype=SBT_TAPE
    channel t1: NMO v4.2.0.0
    executing command: SET ARCHIVELOG DESTINATION
    Starting restore at 23/08/2010 13:05:15
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=3 sequence=24686
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153543_726191236_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=1 sequence=33810
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153541_726191236_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=1 sequence=33811
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153544_726192582_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=2 sequence=33578
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153542_726191236_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=2 sequence=33579
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153545_726192843_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=3 sequence=24687
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153560_726198493_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=1 sequence=33812
    channel t1: restoring archive log
    archive log thread=1 sequence=33813
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153558_726198493_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=2 sequence=33580
    channel t1: restoring archive log
    archive log thread=2 sequence=33581
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_1/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153559_726198493_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    failover to previous backup
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=3 sequence=24686
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153543_726191236_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=1 sequence=33810
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153541_726191236_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=1 sequence=33811
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153544_726192582_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=2 sequence=33578
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153542_726191236_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=2 sequence=33579
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153545_726192843_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=3 sequence=24687
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153560_726198493_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=1 sequence=33812
    channel t1: restoring archive log
    archive log thread=1 sequence=33813
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153558_726198493_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    channel t1: starting archive log restore to user-specified destination
    archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
    channel t1: restoring archive log
    archive log thread=2 sequence=33580
    channel t1: restoring archive log
    archive log thread=2 sequence=33581
    channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_2/
    ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_2/
    ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153559_726198493_2/", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
       A backup or restore session is already in progress. (100:17:0)
    failover to previous backup
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 08/23/2010 13:08:50
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 3 seq 24687 lowscn 68243156430 found to restore
    RMAN-06025: no backup of log thread 3 seq 24686 lowscn 68236434950 found to restore
    RMAN-06025: no backup of log thread 2 seq 33581 lowscn 68253672744 found to restore
    RMAN-06025: no backup of log thread 2 seq 33580 lowscn 68243160092 found to restore
    RMAN-06025: no backup of log thread 2 seq 33579 lowscn 68240747010 found to restore
    RMAN-06025: no backup of log thread 2 seq 33578 lowscn 68236472935 found to restore
    RMAN-06025: no backup of log thread 1 seq 33813 lowscn 68253559461 found to restore
    RMAN-06025: no backup of log thread 1 seq 33812 lowscn 68243156997 found to restore
    RMAN-06025: no backup of log thread 1 seq 33811 lowscn 68240656570 found to restore
    RMAN-06025: no backup of log thread 1 seq 33810 lowscn 68236430016 found to restoreWhat am I doing wrong ?
    Database 10.2.0.4 @HP-UX 11.23 Itanium
    Thanks in advance.

    The error "A backup or restore session is already in progress. (100:17:0)" comes from the MML -- the Tape Management software. It prevents you from running a RESTORE.
    Hemant K Chitale

  • Difference in o/p in CROSSCHECK & RESTORE ARCHIVELOG VALIDATE

    hi,
    i m planning to restore and recovery from a backup(full hot Level 0) taken between '24.05.2012 11:41:00' AND '24.05.2012 12:03:07'; But when i run the crosscheck and restore archivelog validate there seems to be an extra archivelog backup piece reported in restore archivelog validate command.
    Also there was 2 backups taken on same day but different time
    LEVEL 0 ======> between '24.05.2012 11:41:00' AND '24.05.2012 12:03:07'
    LEVEL 1 CUMMULATIVE =======> between '24.05.2012 12:29:46' AND '24.05.2012 12:35:59'
    below the difference in o/p when i run the crosscheck and restore archivelog validate
    CROSSCHECK BACKUP OF ARCHIVELOG ALL command :
    RMAN> ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;
    allocated channel: ORA_MAINT_SBT_TAPE_1
    channel ORA_MAINT_SBT_TAPE_1: sid=1859 devtype=SBT_TAPE
    channel ORA_MAINT_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 7.0 (2010010419)
    RMAN> sql "alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''";
    sql statement: alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''
    RMAN> CROSSCHECK BACKUP OF ARCHIVELOG ALL DEVICE TYPE sbt completed between '24.05.2012 11:41:00' AND '24.05.2012 12:03:07';
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=PRTUXDB_al_0dnbphae_1_1 RECID=10 STAMP=784123214
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=PRTUXDB_al_0cnbphae_1_1 RECID=11 STAMP=784123214
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=PRTUXDB_al_0fnbphae_1_1 RECID=12 STAMP=784123214
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=PRTUXDB_al_0enbphae_1_1 RECID=13 STAMP=784123214
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=PRTUXDB_al_0bnbphae_1_1 RECID=14 STAMP=784123214
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=PRTUXDB_al_0anbphae_1_1 RECID=15 STAMP=784123214
    Crosschecked 6 objectsRestore archive log validate command :
    [oratux@DMXCK5 ~]$ rman target / nocatalog
    Recovery Manager: Release 11.2.0.3.0 - Production on Fri May 25 08:16:08 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: PRTUXDB (DBID=329945109)
    using target database control file instead of recovery catalog
    RMAN> run {
    allocate channel t1 type 'SBT_TAPE';
    restore archivelog UNTIL TIME "TO_DATE('24.05.2012 12:03:07','dd.mm.yyyy hh24:mi:ss')" validate;
    release channel t1;
    2> 3> 4> 5>
    allocated channel: t1
    channel t1: SID=35 device type=SBT_TAPE
    channel t1: Veritas NetBackup for Oracle - Release 7.0 (2010010419)
    Starting restore at 25-MAY-12
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0dnbphae_1_1
    channel t1: piece handle=PRTUXDB_al_0dnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:15
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0cnbphae_1_1
    channel t1: piece handle=PRTUXDB_al_0cnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:15
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0fnbphae_1_1
    channel t1: piece handle=PRTUXDB_al_0fnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:15
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0enbphae_1_1
    channel t1: piece handle=PRTUXDB_al_0enbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:15
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0bnbphae_1_1
    channel t1: piece handle=PRTUXDB_al_0bnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:25
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0anbphae_1_1
    channel t1: piece handle=PRTUXDB_al_0anbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:15
    channel t1: starting validation of archived log backup set
    channel t1: reading from backup piece PRTUXDB_al_0qnbpj8c_1_1
    channel t1: piece handle=PRTUXDB_al_0qnbpj8c_1_1 tag=HOT_DB_BK_LEVEL1
    channel t1: restored backup piece 1
    channel t1: validation complete, elapsed time: 00:01:05
    Finished restore at 25-MAY-12
    released channel: t1As you can see one extra archivelog backup piece is reported and that too from HOT_DB_BK_LEVEL1(LEVEL 1 CUMMULATIVE BACKUP) which was between '24.05.2012 12:29:46' AND '24.05.2012 12:35:59'.
    I m afraid if i execute the real restore command it will apply this extra archivelog from LEVEL 1 CUMMULATIVE BACKUP

    Yes that is true,but my question is when i run crosscheck i have all the required archivelogs availiable (6 archivelogs) but when i execute restore archivelog validate why it give (6+1) archivelogs why not only those 6 from LEVEL 0 hot backup
    i have clearly specified UNTIL TIME "TO_DATE('24.05.2012 12:03:07','dd.mm.yyyy hh24:mi:ss')" in restore archivelog validate but still it also give me extra archive log backup piece from LEVEL 1 backup taken way after TO_DATE('24.05.2012 12:03:07','dd.mm.yyyy hh24:mi:ss').

  • Restore archivelogs from backupset

    STEP-1
    RMAN> backup archivelog all;
    Starting backup at 13-MAR-13
    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=6 recid=61 stamp=809960486
    channel ORA_DISK_1: starting piece 1 at 13-MAR-13
    channel ORA_DISK_1: finished piece 1 at 13-MAR-13
    piece handle=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2013_03_13\O1_MF_ANNNN_TAG20130313T130126_8N0BTHKN_.BKP tag=TAG20130313T130126 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 13-MAR-13
    STEP-2
    RMAN> list archivelog all;
    List of Archived Log Copies
    Key Thrd Seq S Low Time Name
    61 1 6 A 13-MAR-13 F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC
    STEP -3
    RMAN> delete archivelog all;
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=142 devtype=DISK
    List of Archived Log Copies
    Key Thrd Seq S Low Time Name
    61 1 6 A 13-MAR-13 F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC
    Do you really want to delete the above objects (enter YES or NO)? yes
    RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
    RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
    RMAN-06210: List of Mismatched objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Archivelog F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC
    STEP-4
    RMAN> crosscheck archivelog all;
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=142 devtype=DISK
    validation failed for archived log
    archive log filename=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC recid=61 stamp=809960486
    Crosschecked 1 objects
    RMAN>
    what i done after step 1 , is i delete (or moved ) archivelog from its original destination.
    NOW, as i have a backup of archivelog in backupset , how do i restore archivelogs from there??
    10.2.0
    win 7 prof
    Thanks
    Edited by: O0O0O0O0O on Mar 13, 2013 1:10 PM

    Salman Qureshi wrote:
    Hi,
    what i done after step 1 , is i delete (or moved ) archivelog from its original destination.No, you took backup in sirts step. You deleted your archived redo logs in 3rd stepNO, After 1st step i deleted /moved archivelog , thats why @ 3rd step its giving error that Oracle Cant Find Archivelog to delete ( i guess it dsnt matter )
    NOW, as i have a backup of archivelog in backupset , how do i restore archivelogs from there??Following should help you in restoration of archive redo logs. Simplest way is to use "restore archivelog all" to restore all archived redo logs from your backups which are available.
    when i do this , its giving error
    RMAN> restore archivelog all;
    Starting restore at 13-MAR-13
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/13/2013 13:25:48
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 1 seq 5 lowscn 2065032 found to restore
    RMAN-06025: no backup of log thread 1 seq 4 lowscn 2061724 found to restore
    RMAN-06025: no backup of log thread 1 seq 3 lowscn 2038915 found to restore
    RMAN-06025: no backup of log thread 1 seq 2 lowscn 2015492 found to restore
    RMAN-06025: no backup of log thread 1 seq 1 lowscn 1990741 found to restore
    RMAN-06025: no backup of log thread 1 seq 19 lowscn 1986423 found to restore
    RMAN-06025: no backup of log thread 1 seq 18 lowscn 1959113 found to restore
    RMAN-06025: no backup of log thread 1 seq 17 lowscn 736604 found to restore
    RMAN-06025: no backup of log thread 1 seq 16 lowscn 694859 found to restore
    RMAN-06025: no backup of log thread 1 seq 15 lowscn 654358 found to restore
    RMAN-06025: no backup of log thread 1 seq 14 lowscn 631019 found to restore
    RMAN-06025: no backup of log thread 1 seq 13 lowscn 630977 found to restore
    RMAN-06025: no backup of log thread 1 seq 12 lowscn 628120 found to restore
    RMAN-06025: no backup of log thread 1 seq 11 lowscn 627821 found to restore
    RMAN-06025: no backup of log thread 1 seq 10 lowscn 624694 found to restore
    RMAN-06025: no backup of log thread 1 seq 9 lowscn 624184 found to restore
    RMAN-06025: no backup of log thread 1 seq 8 lowscn 620379 found to restore
    RMAN-06025: no backup of log thread 1 seq 7 lowscn 619730 found to restore
    RMAN-06025: no backup of log thread 1 seq 6 lowscn 619728 found to restore
    RMAN-06025: no backup of log thread 1 seq 5 lowscn 619725 found to restore
    RMAN-06025: no backup of log thread 1 seq 4 lowscn 619722 found to restore
    RMAN-06025: no backup of log thread 1 seq 3 lowscn 617154 found to restore
    RMAN-06025: no backup of log thread 1 seq 2 lowscn 608546 found to restore
    RMAN>
    Edited by: O0O0O0O0O on Mar 13, 2013 1:28 PM

  • RESTORE ARCHIVELOG ALL VALIDATE; - returns log file names

    Environment:
    Oracle 11.2.0.3 EE on Solaris 10.5
    RMAN using control file as repository.
    My archive logs are going to /arch/<SID>. During a time of unforeseen high activity the directory was filling up and some of the files had to be move to a different mount point. I have since done several Level 0 incremental backups including (plus) archivelogs.
    My RMAN archivelog deletion setting is: CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
    I have since begun to run more frequent archive log backups to keep the mount point cleaner.
    Since I have several successful Level 0 backups including archivelogs, I manually deleted the archived logs on the secondary mount point.
    I registered the logs in the secondary mount point using REGISTER ARCHIVELOG START IN '/xxxx';
    I then ran a CROSSCHECK ARCHIVELOG ALL; to update the control file repository.
    When I query the V$ARCHIVED_LOG view I see many entries for my deleted log files with a STATUS = 'X' (Expired) and a BACKUP_COUNT = 0.
    I ran DELETE EXPIRED ARCHIVELOG ALL;
    Now when I query the V$ARCHIVED_LOG view I see many entries with blank name column for the SEQUENCE# in my list and with a STATUS = 'D' (Deleted) and a BACKUP_COUNT = 0.
    When I run a RESTORE ARCHIVELOG ALL VALIDATE; it returns a long list of my deleted files with:
    RMAN-06025: no backup of archived log ... to restore
    OK, enough background. My question is how do I get RMAN to not look for my deleted files since I have several good backups?
    I realize my deletion policy says the files have to be backed up once to disk, which according to the V$ARCHIVED_LOG view they are not, but I was hoping since I ran the CROSSCHECK RMAN would not even be concerned with them.
    Many thanks for any advice!!
    -gary

    Thanks for the help! Square brackets! Doh!
    I changed the SQL just a bit. I have only one (1) thread and the primary database was running for several months before the standby was implemented so there are over 3500 sequence#'s in the V$ARCHIVED_LOG view for the Primary (DEST=1) that are not in the Standby (DEST=2).
    Here's the SQL I ran, using the SQUARE brackets! :-)
    SELECT SEQUENCE#
    FROM V$ARCHIVED_LOG
    WHERE DEST_ID=1
    MINUS
    SELECT SEQUENCE#
    FROM V$ARCHIVED_LOG
    WHERE DEST_ID=2It appears to me the Standby is accepting and applying the archived logs from the Primary based on looking at the most recent archived log sequence#'s.
    I'm just trying to get rid of the entries in the RESTORE ARCHIVELOG VALIDATE; command output.
    I don't have an RMAN Repository but am using the control files at the moment.
    Any other suggestions are very welcomed!!
    Thanks again!
    -gary

  • Restore archivelog

    Hi,
    on 10gR2 Win 2003 Server
    yesterday I restored some archived logs in a new folder from RMAN backups like this :
    RUN
      SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\Newarch';
      restore archivelog FROM sequence 439 until sequence 458 ;
    }This morning I had the following error :
    RMAN-06059: expected archived log not found 'D:\base\MABASE\Newarch'\ARC00439_0679858367.001I can not understand. Why RMAN look for in a wrong directory after having restored some Archived logs?
    Should I have rolled back in my script and wrot it like this :
    RUN
      SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\Newarch';
      restore archivelog FROM sequence 439 until sequence 458 ;
      SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\arch';
    }Thank you.

    Hi,
    Manually copy the archives to the new destination path..and after that set it in RMAN
    RUN
    SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\Newarch';( Guess this is the new path where the archvies has to be copied manually)
    restore archivelog FROM sequence 439 until sequence 458 ;
    thanks,
    basakr.l

  • Rman restore archivelogs files only, but in other machine.

    Hello,
    i need to restore archivelog files in another machine for use with logminer without use my actual +FRA for space reason and withouy use "set destination to"
    How i can do it?
    thanks and regards

    Hello,
    in the new machine i have a clone database with a init.ora file that use db_recovery_dest to new path (not +FRA) in a filesystem.
    When run a rman script this connect to target(production database) , rman catalog, and auxiliary (my clone database).
    I restore a clone controlfile, so mount the clone database, then restore logfile from sequence = xxxx until sequence = XXX , BUT the archivelogfile was restored in target database (production database) inside the +FRA
    This is my logfile of rman script.
    Regards.
    Iniciando restore en 19/06/12
    canal t1: iniciando restauración del juego de copias de seguridad de archivos de datos
    canal t1: restaurando archivo de control
    archivo de salida=/RECOVERABD/controlXXXX.ora
    canal t1: leyendo desde la parte de copia de seguridad c-3574442397-20120619-01
    canal t1: parte 1 de la copia de seguridad restaurada
    manejador de parte=c-3574442397-20120619-01 etiqueta=TAG20120619T063218
    canal t1: restauración terminada, tiempo transcurrido: 00:00:16
    restore terminado en 19/06/12
    sentencia sql: alter database mount clone database
    canal asignado: t4
    canal t4: sid=2276 instancia=paire1 devtype=SBT_TAPE
    canal t4: NMO v5.0.0.0
    Iniciando restore en 19/06/12
    canal t4: iniciando la recuperación de archive log al destino por defecto <--- default +FRA !!
    canal t4: restaurando archive log
    thread de archive log=1 secuencia=132141
    canal t4: leyendo desde la parte de copia de seguridad B134414_ARCH.bak
    canal t4: parte 1 de la copia de seguridad restaurada
    manejador de parte=B134414_ARCH.bak etiqueta=TAG20120618T140157
    canal t4: restauración terminada, tiempo transcurrido: 00:00:56
    restore terminado en 19/06/12

  • Restore archivelog on standby failed

    When I tried to restore an archivelog on the physical standby, it failed with the following error:
    ORA-19870: error reading backup piece 3ekc9vsh_1_1
    ORA-19507: failed to retrieve sequential file, handle="3ekc9vsh_1_1", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Backup file <3ekc9vsh_1_1> not found in NetBackup catalog
    failover to previous backup
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 04/13/2009 10:12:00
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 1 seq 2941 lowscn 7414699310630 found to restore
    However, I checked on the primary, it shows the archivelog was backed up:
    SEQUENCE# THREAD# ARC COMPLETIO
    2941 1 YES 12-APR-09
    Why is that and what can I do?
    Thanks in acvance!

    Check out this doc....it will show you how to recover your standby using an incremental RMAN backup with SCN based reference. Willl be faster than rebuilding your standby:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#sthref955

  • Restore archivelog without target and no catalog

    Hello,
    I am trying to restore one archivelog without the target and no catalog from a backup piece.
    My goal it is to apply this archive to my duplicate database to able to do a resetlog.
    But since now I did not find the right way.
    Any ideal
    Thanks in advance

    I don't think you can you use the RESTORE command to restore an archived redo log: RESTORE command work only on control file, database, tablespace or datafile level. To request to RMAN to apply an archived redo log, you should try to use the UNTIL clause
    that is used by the RECOVER command or the SET UNTIL statement.
    What is your Oracle version ?
    What are the RMAN statements you have used and the errors that prevent you to do a RESETLOGS ?
    Edited by: P. Forstmann on Sep 5, 2008 5:08 PM

  • Cannot restore some archivelog files?

    Dear all,
    It is very strange when I restore archivelog, it comes up lots of errors.
    I am not sure is it I shutdown database using abort command, so that I cannot restore some of the archive logs during recovery? If Yes, what can I do?
    Best Regards,
    Amy
    RMAN> restore archivelog all;
    Starting restore at 25-JUL-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 07/25/2008 19:47:58
    RMAN-06026: some targets not found - aborting restore
    RMAN-06025: no backup of log thread 1 seq 2762 scn 1968789551 found to restore
    RMAN-06025: no backup of log thread 1 seq 2761 scn 1968764174 found to restore
    RMAN-06025: no backup of log thread 1 seq 2760 scn 1968739033 found to restore
    RMAN-06025: no backup of log thread 1 seq 2759 scn 1968713720 found to restore
    RMAN-06025: no backup of log thread 1 seq 2758 scn 1968688635 found to restore
    RMAN-06025: no backup of log thread 1 seq 2757 scn 1968663371 found to restore
    RMAN-06025: no backup of log thread 1 seq 2756 scn 1968638155 found to restore
    RMAN-06025: no backup of log thread 1 seq 2755 scn 1968612857 found to restore
    RMAN-06025: no backup of log thread 1 seq 2754 scn 1968587680 found to restore
    RMAN-06025: no backup of log thread 1 seq 2753 scn 1968562338 found to restore
    RMAN-06025: no backup of log thread 1 seq 2752 scn 1968537004 found to restore
    RMAN-06025: no backup of log thread 1 seq 2751 scn 1968511599 found to restore
    RMAN-06025: no backup of log thread 1 seq 2750 scn 1968486469 found to restore
    RMAN-06025: no backup of log thread 1 seq 2749 scn 1968461266 found to restore
    RMAN-06025: no backup of log thread 1 seq 2748 scn 1968436092 found to restore
    RMAN-06025: no backup of log thread 1 seq 2747 scn 1968411162 found to restore
    RMAN-06025: no backup of log thread 1 seq 2746 scn 1968385930 found to restore
    RMAN-06025: no backup of log thread 1 seq 2745 scn 1968360528 found to restore
    RMAN-06025: no backup of log thread 1 seq 2744 scn 1968335221 found to restore
    RMAN-06025: no backup of log thread 1 seq 2743 scn 1968310054 found to restore
    RMAN-06025: no backup of log thread 1 seq 2742 scn 1968284858 found to restore
    RMAN-06025: no backup of log thread 1 seq 2741 scn 1968259554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2740 scn 1968234484 found to restore
    RMAN-06025: no backup of log thread 1 seq 2739 scn 1968209320 found to restore
    RMAN-06025: no backup of log thread 1 seq 2738 scn 1968184044 found to restore
    RMAN-06025: no backup of log thread 1 seq 2737 scn 1968158741 found to restore
    RMAN-06025: no backup of log thread 1 seq 2736 scn 1968133666 found to restore
    RMAN-06025: no backup of log thread 1 seq 2735 scn 1968108336 found to restore
    RMAN-06025: no backup of log thread 1 seq 2734 scn 1968083209 found to restore
    RMAN-06025: no backup of log thread 1 seq 2732 scn 1968034276 found to restore
    RMAN-06025: no backup of log thread 1 seq 2731 scn 1968009957 found to restore
    RMAN-06025: no backup of log thread 1 seq 2730 scn 1967985969 found to restore
    RMAN-06025: no backup of log thread 1 seq 2729 scn 1967964167 found to restore
    RMAN-06025: no backup of log thread 1 seq 2728 scn 1967939600 found to restore
    RMAN-06025: no backup of log thread 1 seq 2727 scn 1967916916 found to restore
    RMAN-06025: no backup of log thread 1 seq 2726 scn 1967891727 found to restore
    RMAN-06025: no backup of log thread 1 seq 2725 scn 1967866502 found to restore
    RMAN-06025: no backup of log thread 1 seq 2724 scn 1967854121 found to restore
    RMAN-06025: no backup of log thread 1 seq 2723 scn 1967828623 found to restore
    RMAN-06025: no backup of log thread 1 seq 2722 scn 1967803608 found to restore
    RMAN-06025: no backup of log thread 1 seq 2721 scn 1967778602 found to restore
    RMAN-06025: no backup of log thread 1 seq 2720 scn 1967753508 found to restore
    RMAN-06025: no backup of log thread 1 seq 2719 scn 1967728518 found to restore
    RMAN-06025: no backup of log thread 1 seq 2718 scn 1967703771 found to restore
    RMAN-06025: no backup of log thread 1 seq 2717 scn 1967678560 found to restore
    RMAN-06025: no backup of log thread 1 seq 2716 scn 1967653108 found to restore
    RMAN-06025: no backup of log thread 1 seq 2715 scn 1967628050 found to restore
    RMAN-06025: no backup of log thread 1 seq 2714 scn 1967602962 found to restore
    RMAN-06025: no backup of log thread 1 seq 2713 scn 1967578073 found to restore
    RMAN-06025: no backup of log thread 1 seq 2712 scn 1967552804 found to restore
    RMAN-06025: no backup of log thread 1 seq 2711 scn 1967527631 found to restore
    RMAN-06025: no backup of log thread 1 seq 2710 scn 1967502597 found to restore
    RMAN-06025: no backup of log thread 1 seq 2709 scn 1967477554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2708 scn 1967452498 found to restore
    RMAN-06025: no backup of log thread 1 seq 2707 scn 1967427443 found to restore
    RMAN-06025: no backup of log thread 1 seq 2706 scn 1967402206 found to restore
    RMAN-06025: no backup of log thread 1 seq 2705 scn 1967376951 found to restore
    RMAN-06025: no backup of log thread 1 seq 2704 scn 1967351794 found to restore
    RMAN-06025: no backup of log thread 1 seq 2703 scn 1967326458 found to restore
    MAN-0

    I am crystal clear from the very begining ,you are misleading this thread to increase yours post and nothing else.
    OP is restoring only archive logs and for that it need all archive logs including the archive for the current redo log file. So for that we need "alter system archive log current;".
    Yours this illusion is abrupt and without any proof.As you think that before backing up "alter system archivelog current" will be helpful in restoring all the OP's below archived log.Its a fun...
    RMAN-06025: no backup of log thread 1 seq 2762 scn 1968789551 found to restore
    RMAN-06025: no backup of log thread 1 seq 2761 scn 1968764174 found to restore
    RMAN-06025: no backup of log thread 1 seq 2760 scn 1968739033 found to restore
    RMAN-06025: no backup of log thread 1 seq 2759 scn 1968713720 found to restore
    RMAN-06025: no backup of log thread 1 seq 2758 scn 1968688635 found to restore
    RMAN-06025: no backup of log thread 1 seq 2757 scn 1968663371 found to restore
    RMAN-06025: no backup of log thread 1 seq 2756 scn 1968638155 found to restore
    RMAN-06025: no backup of log thread 1 seq 2755 scn 1968612857 found to restore
    RMAN-06025: no backup of log thread 1 seq 2754 scn 1968587680 found to restore
    RMAN-06025: no backup of log thread 1 seq 2753 scn 1968562338 found to restore
    RMAN-06025: no backup of log thread 1 seq 2752 scn 1968537004 found to restore
    RMAN-06025: no backup of log thread 1 seq 2751 scn 1968511599 found to restore
    RMAN-06025: no backup of log thread 1 seq 2750 scn 1968486469 found to restore
    RMAN-06025: no backup of log thread 1 seq 2749 scn 1968461266 found to restore
    RMAN-06025: no backup of log thread 1 seq 2748 scn 1968436092 found to restore
    RMAN-06025: no backup of log thread 1 seq 2747 scn 1968411162 found to restore
    RMAN-06025: no backup of log thread 1 seq 2746 scn 1968385930 found to restore
    RMAN-06025: no backup of log thread 1 seq 2745 scn 1968360528 found to restore
    RMAN-06025: no backup of log thread 1 seq 2744 scn 1968335221 found to restore
    RMAN-06025: no backup of log thread 1 seq 2743 scn 1968310054 found to restore
    RMAN-06025: no backup of log thread 1 seq 2742 scn 1968284858 found to restore
    RMAN-06025: no backup of log thread 1 seq 2741 scn 1968259554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2740 scn 1968234484 found to restore
    RMAN-06025: no backup of log thread 1 seq 2739 scn 1968209320 found to restore
    RMAN-06025: no backup of log thread 1 seq 2738 scn 1968184044 found to restore
    RMAN-06025: no backup of log thread 1 seq 2737 scn 1968158741 found to restore
    RMAN-06025: no backup of log thread 1 seq 2736 scn 1968133666 found to restore
    RMAN-06025: no backup of log thread 1 seq 2735 scn 1968108336 found to restore
    RMAN-06025: no backup of log thread 1 seq 2734 scn 1968083209 found to restore
    RMAN-06025: no backup of log thread 1 seq 2732 scn 1968034276 found to restore
    RMAN-06025: no backup of log thread 1 seq 2731 scn 1968009957 found to restore
    RMAN-06025: no backup of log thread 1 seq 2730 scn 1967985969 found to restore
    RMAN-06025: no backup of log thread 1 seq 2729 scn 1967964167 found to restore
    RMAN-06025: no backup of log thread 1 seq 2728 scn 1967939600 found to restore
    RMAN-06025: no backup of log thread 1 seq 2727 scn 1967916916 found to restore
    RMAN-06025: no backup of log thread 1 seq 2726 scn 1967891727 found to restore
    RMAN-06025: no backup of log thread 1 seq 2725 scn 1967866502 found to restore
    RMAN-06025: no backup of log thread 1 seq 2724 scn 1967854121 found to restore
    RMAN-06025: no backup of log thread 1 seq 2723 scn 1967828623 found to restore
    RMAN-06025: no backup of log thread 1 seq 2722 scn 1967803608 found to restore
    RMAN-06025: no backup of log thread 1 seq 2721 scn 1967778602 found to restore
    RMAN-06025: no backup of log thread 1 seq 2720 scn 1967753508 found to restore
    RMAN-06025: no backup of log thread 1 seq 2719 scn 1967728518 found to restore
    RMAN-06025: no backup of log thread 1 seq 2718 scn 1967703771 found to restore
    RMAN-06025: no backup of log thread 1 seq 2717 scn 1967678560 found to restore
    RMAN-06025: no backup of log thread 1 seq 2716 scn 1967653108 found to restore
    RMAN-06025: no backup of log thread 1 seq 2715 scn 1967628050 found to restore
    RMAN-06025: no backup of log thread 1 seq 2714 scn 1967602962 found to restore
    RMAN-06025: no backup of log thread 1 seq 2713 scn 1967578073 found to restore
    RMAN-06025: no backup of log thread 1 seq 2712 scn 1967552804 found to restore
    RMAN-06025: no backup of log thread 1 seq 2711 scn 1967527631 found to restore
    RMAN-06025: no backup of log thread 1 seq 2710 scn 1967502597 found to restore
    RMAN-06025: no backup of log thread 1 seq 2709 scn 1967477554 found to restore
    RMAN-06025: no backup of log thread 1 seq 2708 scn 1967452498 found to restore
    RMAN-06025: no backup of log thread 1 seq 2707 scn 1967427443 found to restore
    RMAN-06025: no backup of log thread 1 seq 2706 scn 1967402206 found to restore
    RMAN-06025: no backup of log thread 1 seq 2705 scn 1967376951 found to restore
    RMAN-06025: no backup of log thread 1 seq 2704 scn 1967351794 found to restore
    RMAN-06025: no backup of log thread 1 seq 2703 scn 1967326458 found to restore
    MAN-0 Khurram

  • Restoring all archivelogs from a backuppiece for RAC DB?

    Is there any way to tell rman to restore all archivelogs from a backuppiece (or backupset, which are equivalent in my case)?
    Why I want to do this:
    I want to restore quite large number of archivelogs (to recovering a standby database) from multiple backuppieces. I don't have enough space to restore them all together, so I need to restore the archivelogs, apply and delete. I know that RMAN allows to selectively restore archivelogs. However, I am facing problem as follows
    - from scn ... until scn ... (or timestamp): The SCNs (or timestamps) of the archivelogs in different threads do not aligned well. As a result, in order to cover all archivelogs in a thread, RMAN will read another backppiece for the archivelogs across the boundary for other thread, doubling the time for the restore.
    - from sequence ... until sequence ... thread ...: It seems impossible to specify both threads and make RMAN read once only.
    It seems to me the solution is to restore all archivelogs from a backuppiece (or backupset), or the option to specify archivelogs one by one in single restore command, but both options are not available.
    Oracle: 11.2.0.3 SE RAC
    OS: RHEL 5

    thtsang wrote:
    Just found that it is possible to specific both threads in a single restore statement. However, it is still reading the backuppiece twice.
    RMAN> restore archivelog sequence 10883 thread 1 archivelog sequence 6643 thread 2;
    Starting restore at 2013-06-03:17:48:25
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=10883
    channel ORA_DISK_1: reading from backup piece /oracle/backupset/mydb/MYDB_al_20130602_1791_1_817002638
    channel ORA_DISK_1: piece handle=/oracle/backupset/mydb/MYDB_al_20130602_1791_1_817002638 tag=TAG20130602T011037
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=2 sequence=6643
    channel ORA_DISK_1: reading from backup piece /oracle/backupset/mydb/MYDB_al_20130602_1791_1_817002638
    channel ORA_DISK_1: piece handle=/oracle/backupset/mydb/MYDB_al_20130602_1791_1_817002638 tag=TAG20130602T011037
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    Finished restore at 2013-06-03:17:48:32It seems the best I can do is to specify a SCN range as large as possible, so that only the first & last backuppieces need to be read twice.
    I also checked DBMS_BACKUP_RESTORE (though I am not sure whether RMAN use this), and seems there is no procedure to do what I want.It is good you restore 2 archived log sequence 10883 thread 1 and archived log sequence 6643 thread 2.
    You can try
    begin
       dbms_backup_restore.restorearchivedlog(1,10883);
       dbms_backup_restore.restorearchivedlog(2,6643);
    end;Regards
    Mahir M. Quluzade

  • Restore of archivelogs

    hiho,
    i did a full database backup including all
    archive logs. i was able to restore a
    tablespace. i'm not sure how i can restore
    the archive logs. if i try a 'restore archivelogs all' i'll get 'RMAN-06023: no backup or copy of datafile name found to restore'. how is the correct way to restore
    archivelogs using rman ?
    thanks,
    ciao -ap
    null

    If you are recovering the tablespace using rman, then that backup should be taken using raman
    ex: rman>run{
    allocate channel c1 type disk;
    backup
    format 'c:\backup\file2.bak'
    datafile 2;
    release channel c1;
    similary for archivelogs also(format is differnt)
    if you are taking backup by OS then use catalog command to register those backup copies with rman using:
    rman>
    catalog atafile 'c:\oracle\....'
    like wise do for archive logs also.
    then attempt to recover the tablespace using the archivelogs.
    ex:
    rman>run{
    allocate channel c1 type disk;
    restore (tablespace tbs2);
    recover tablespace tbs2;
    release channel c1;
    (check for the syntax)
    ok
    all the best..
    null

  • Archivelogs restoration from veritas

    hi gurus
    need to restore archive logs which older than 30 days from veritas backup.
    pl provid the valid command.
    my coomad was faild
    MAN> run{
    2> allocate channel tt1 type 'SBT_TAPE';
    3> allocate channel tt2 type 'SBT_TAPE';
    4> restore archivelog until time 'sysdate-30' validate;}
    pl advice to than
    thanks
    Udara

    Restore from veritas backup check with the backup documentation or contact with your system admin. Remove the validate keyword from your script and try again.
    Try with this one.
    restore archivelog until time "to_date('27-05-2008','DD-MM-YYYY')";
    Regards
    Asif Kabir

  • Archivelog Restore.

    Hi Team,
    I am working on the Oracle backup of 9i.
    Taking the full database backup, which include datafile's, controlfile & Archivelog's
    While restoring the database , I am restoring the datafile's using the restore database & recover database commands.
    Now my doubt is that whether we always need to restore archivelog's also ?
    If no then in which conditions those backuped archivelog's are usefull?
    plz comment..
    Regards,
    S. Tiwari

    Hi Dap,
    Thanks for the reply,
    restore database; -> use backup
    recover database; -> use archivelog for all transaction after full backupI am using these two statments only for full database restore operation.
    But my doubt is that , In what conditions I should restore archivelog files.
    i.e RESTORE ARCHIVELOG ALL;
    Plz comment if I am wrong anywhere?
    Regards,
    S. Tiwari
    Message was edited by:
    Test_RMAN

Maybe you are looking for

  • Do I need a converter to use IPAD in costa rica?

    I want to bring my IPAD 2 to Costa Rica.  The travel information says that Costa Rica has the same power specs as the US.  I just wanted to see if anyone knew if that was true or if there were power issues in using the IPAD in that country.

  • MM Posting

    hi all, The work center will perform transfer posting either with 303,305,306,313,315,316 movement type to move the stock to a specific storage location. The ZMBSU report will be created automatically for the work center to view any open items with m

  • Fax is ringing on my home phone

    I recently purchased a new  land line phone and now when people call me I hear a fax ringing at the same time.  It interrupts my entire conversation. I never had the fax function connected on my printer when it was installed. How do  I disconnect the

  • Error when using F9

    We have a problem with Outlook 2013 integration. Couple of users are facing the issue. We are on Application Version: 8.1.1.11 SIA [23030]. .When user hits F9, Outlook gets the message and opens the editor as expected. However, when he sends the lett

  • Iphone 5 moirure in the charger port

    iphone 5 stop working after 3 months of having it apple wont replace it i dont no what to do its coved by warrenty but apple still wont fix it? any ideas