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

Similar Messages

  • Problem with restoring database from backupset

    Hello,
    I'm newie in working with RMAN and I have problem with restoring database from backup set in my testcase.
    I've restored controlfile, but I couldn't restore database - it fails with:
    RMAN-00571: =============================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
    RMAN-00571: =============================================
    RMAN-03002: failure of restore command at 08/31/2006 12:06:47
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: 'C:\ORACLE\ORADATA\LOCA10G2\SYSTEM01.DBF'
    List of backupsets from restored controlfile
    (I restored controlfile by command: restore controlfile from 'C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP'; -- I have disabled controlfile autobackup, therefore I couldn't restore from autobackup);
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    36 Full 6.98M DISK 00:00:02 29-AUG-06
    BP Key: 36 Status: AVAILABLE Compressed: NO Tag: 01_CTL
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    Control File Included: Ckp SCN: 578469 Ckp time: 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    37 Full 322.96M DISK 00:00:27 29-AUG-06
    BP Key: 37 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    List of Datafiles in backup set 37
    File LV Type Ckp SCN Ckp Time Name
    1 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSTEM01.DBF
    2 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\UNDOTBS01.DBF
    3 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSAUX01.DBF
    4 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\USERS01.DBF
    BS Key Size Device Type Elapsed Time Completion Time
    38 650.50K DISK 00:00:00 29-AUG-06
    BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113804
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    List of Archived Logs in backup set 38
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 32 577277 29-AUG-06 578529 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    39 Full 7.02M DISK 00:00:00 29-AUG-06
    BP Key: 39 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    Control File Included: Ckp SCN: 578493 Ckp time: 29-AUG-06
    SPFILE Included: Modification time: 28-AUG-06
    I can successfully crosscheck backup sets (by command crosscheck backup), but I couldn't restore database.
    Path C:\ORACLE\ORADATA\LOCA10G2\ exists and I have right privileges.
    Output of command restore database validate:
    RMAN> restore database validate;
         Starting restore at 31-AUG-06
         allocated channel: ORA_DISK_1
         channel ORA_DISK_1: sid=102 devtype=DISK
         data file 1 will be created automatically during restore operation
         data file 2 will be created automatically during restore operation
         data file 3 will be created automatically during restore operation
         data file 4 will be created automatically during restore operation
         restore not done; all files readonly, offline, or already restored
         Finished restore at 31-AUG-06
    What's wrong?
    Thanks
         Paul

    Hi,
    I think, that everything seems to be OK.
    Commands which I use to validation of existence backup:
    RMAN> crosscheck backup;
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=102 devtype=DISK
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP recid=36 stamp=599744172
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP recid=37 stamp=599744183
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP recid=38 stamp=599918805
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP recid=39 stamp=599918805
    Crosschecked 4 objects
    RMAN> list backup summary;
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    36 B F A DISK 29-AUG-06 1 1 NO 01_CTL
    37 B F A DISK 29-AUG-06 1 1 NO TAG20060829T113622
    38 B A A DISK 29-AUG-06 1 1 NO TAG20060829T113804
    39 B F A DISK 29-AUG-06 1 1 NO TAG20060829T113622
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    36 Full 6.98M DISK 00:00:02 29-AUG-06
    BP Key: 36 Status: AVAILABLE Compressed: NO Tag: 01_CTL
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    Control File Included: Ckp SCN: 578469 Ckp time: 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    37 Full 322.96M DISK 00:00:27 29-AUG-06
    BP Key: 37 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    List of Datafiles in backup set 37
    File LV Type Ckp SCN Ckp Time Name
    1 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSTEM01.DBF
    2 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\UNDOTBS01.DBF
    3 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\SYSAUX01.DBF
    4 Full 578481 29-AUG-06 C:\ORACLE\ORADATA\LOCA10G2\USERS01.DBF
    BS Key Size Device Type Elapsed Time Completion Time
    38 650.50K DISK 00:00:00 29-AUG-06
    BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113804
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    List of Archived Logs in backup set 38
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 32 577277 29-AUG-06 578529 29-AUG-06
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    39 Full 7.02M DISK 00:00:00 29-AUG-06
    BP Key: 39 Status: AVAILABLE Compressed: NO Tag: TAG20060829T113622
    Piece Name: C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    Control File Included: Ckp SCN: 578493 Ckp time: 29-AUG-06
    SPFILE Included: Modification time: 28-AUG-06
    RMAN> restore database validate;
    Starting restore at 04-SEP-06
    using channel ORA_DISK_1
    data file 1 will be created automatically during restore operation
    data file 2 will be created automatically during restore operation
    data file 3 will be created automatically during restore operation
    data file 4 will be created automatically during restore operation
    restore not done; all files readonly, offline, or already restored
    Finished restore at 04-SEP-06
    Is something wrong? After crosscheck backup set with system datafile is AVAILABLE.
    If i tried to test existence of backup pieces on disk and permissisons - everything is OK too:
    C:\>dir C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\
    Volume in drive C has no label.
    Volume Serial Number is E003-9FC6
    Directory of C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29
    29.08.2006 11:38 <DIR> .
    29.08.2006 11:38 <DIR> ..
    29.08.2006 11:38 666 624 O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    29.08.2006 11:36 7 340 032 O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    29.08.2006 11:37 7 372 800 O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    29.08.2006 11:36 338 657 280 O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    4 File(s) 354 036 736 bytes
    2 Dir(s) 56 865 202 176 bytes free
    C:\>copy C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\ C:\ORACLE\ORADATA\LOCA10G2\
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_ANNNN_TAG20060829T113804_2H82QYOV_.BKP
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCNNF_01_CTL_2H82NDQT_.BKP
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NCSNF_TAG20060829T113622_2H82OW77_.BKP
    C:\ORACLE\FLASH_RECOVERY_AREA\LOCA10G2\BACKUPSET\2006_08_29\O1_MF_NNNDF_TAG20060829T113622_2H82NQ58_.BKP
    4 file(s) copied.
    Thanks
    Pavel

  • 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

  • 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

  • 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

  • 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 spfile from rman backup ---- error.

    Hi,
    I am trying to execute recovery on new machine ...
    I have done the following steps..
    I have one database as ora10g2 as peroduction database on one machine as hosta
    I have created a catalog on another machine cora10g2 (hostb)
    I have taken a full backup from hosta as per following ...
    the following command execute from hosta machine.
    $ rman target sys/<passwd>@ora10g2 catalog rman/rman@cora10g2 ...
    Backup completed ...
    Now I am trying to restore this backup on hostb machine where i have already rman catlog database ..
    I have done the following setting ...on host b
    set oracle_sid=DUP
    and execute following command ...
    rman target / catalog rman/rman@cora10g2
    RMAN> set dbid 2760732370
    executing command: SET DBID
    database name is "BAAN10G2" and DBID is 2760732370
    RMAN>
    RMAN>
    RMAN> startup force nomount ;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/dbs/baan10g2/dbs/initbaan10g2.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1977112 bytes
    Variable Size 67114216 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 6406144 bytes
    RMAN>
    RMAN>
    RMAN>
    RMAN> show all ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/backup/control/cntrl_%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/baanora3/rman/ora10g2/bkup_db_%d_s%s_P%p_t%t' MAXPIECESIZE 1024;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    RMAN>
    RMAN>
    RMAN> list backup of spfile ;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2420 Full 7.33M DISK 00:00:01 14-JUN-07
    BP Key: 2426 Status: AVAILABLE Compressed: NO Tag: TAG20070614T182935
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070614-00
    SPFILE Included: Modification time: 14-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2509 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2515 Status: AVAILABLE Compressed: NO Tag: TAG20070615T130416
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-00
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2694 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2739 Status: AVAILABLE Compressed: NO Tag: TAG20070615T131703
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-01
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2760 Full 80.00K DISK 00:00:01 15-JUN-07
    BP Key: 2763 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163437
    Piece Name: /rman/spfile/spfile.ora
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2769 Full 7.33M DISK 00:00:02 15-JUN-07
    BP Key: 2771 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163441
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-02
    SPFILE Included: Modification time: 15-JUN-07
    RMAN>
    RMAN>
    RMAN> restore spfile from autobackup ;
    Starting restore at 19-JUN-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=35 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=34 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=33 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20070619
    channel ORA_DISK_1: looking for autobackup on day: 20070618
    channel ORA_DISK_1: looking for autobackup on day: 20070617
    channel ORA_DISK_1: looking for autobackup on day: 20070616
    channel ORA_DISK_1: looking for autobackup on day: 20070615
    channel ORA_DISK_1: looking for autobackup on day: 20070614
    channel ORA_DISK_1: looking for autobackup on day: 20070613
    channel ORA_DISK_1: no autobackup in 7 days found
    channel ORA_DISK_2: looking for autobackup on day: 20070619
    channel ORA_DISK_2: looking for autobackup on day: 20070618
    channel ORA_DISK_2: looking for autobackup on day: 20070617
    channel ORA_DISK_2: looking for autobackup on day: 20070616
    channel ORA_DISK_2: looking for autobackup on day: 20070615
    channel ORA_DISK_2: looking for autobackup on day: 20070614
    channel ORA_DISK_2: looking for autobackup on day: 20070613
    channel ORA_DISK_2: no autobackup in 7 days found
    channel ORA_DISK_3: looking for autobackup on day: 20070619
    channel ORA_DISK_3: looking for autobackup on day: 20070618
    channel ORA_DISK_3: looking for autobackup on day: 20070617
    channel ORA_DISK_3: looking for autobackup on day: 20070616
    channel ORA_DISK_3: looking for autobackup on day: 20070615
    channel ORA_DISK_3: looking for autobackup on day: 20070614
    channel ORA_DISK_3: looking for autobackup on day: 20070613
    channel ORA_DISK_3: no autobackup in 7 days found
    channel ORA_DISK_4: looking for autobackup on day: 20070619
    channel ORA_DISK_4: looking for autobackup on day: 20070618
    channel ORA_DISK_4: looking for autobackup on day: 20070617
    channel ORA_DISK_4: looking for autobackup on day: 20070616
    channel ORA_DISK_4: looking for autobackup on day: 20070615
    channel ORA_DISK_4: looking for autobackup on day: 20070614
    channel ORA_DISK_4: looking for autobackup on day: 20070613
    channel ORA_DISK_4: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 06/19/2007 18:00:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    RMAN>
    I am not able to restore spfile from rman backup ;;;

    Hi,
    I would like to know few things
    1. How are you setting the db_name ? you can set db_id at RMAN, how are you setting the db_name ?
    2. Do you have any default init file at default location ? if yes, is the db_name parameter set correctly in that file ?
    Since spfile is yet to be restored, you must set the db_name parameter correctly before you start spfile restore.This can be done with init file at default location which can even contain just one paremeter i.e db_name.

  • Restoring Old Full backupset.

    Hi Team,
    I am using Oracle 9i.
    I am taking full bakup of my Oracle database say at 10:00 AM using following script.
    run
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
    ALLOCATE CHANNEL C1 TYPE DISK FORMAT 'C:\BK\DATAFILE_CTL_%d_%T_%p_%s';
    BACKUP DATABASE INCLUDE CURRENT CONTROLFILE;
    RELEASE CHANNEL C1;
    ALLOCATE CHANNEL C2 TYPE DISK FORMAT 'C:\BK\ARCHIVELOG_%d_%T_%p_%s';
    BACKUP ARCHIVELOG ALL;
    RELEASE CHANNEL C2;
    Now on [b]11:00 AM I am taking full backup one more time using same scipt.
    now If I deletes my latest backupset taken on 11:00 AM from it path location & tries to restore Older full backup set taken on 10:00 AM it asks for the lates full backup set(11:00 AM) files as follows....
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/17/2006 16:32:31
    ORA-19505: failed to identify file "C:\BK\DATAFILE_CTL_BALA_20061117_1_398"
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    plz suggest me if I am going wrong anywhere & also way to restore this older backupset.
    Whether I need Point-In-Time recovery here?
    Message was edited by:
    Test_Rman

    If I want to use other backup sets in the later stage then how can I use them to restore the data?If you want to use other backupsets then why are you deleting them?? Crosscheck is the way to delete your backups, delete expire will delete only those backups which are no in sync with actual catalog. If you want to use other backupsets then you must keep is bcz delete means GONE.
    To delete the backups implement a retention window which describe how old backups you want to keep and then use DELETE OBSOLETE to delete obsolete backups means which are older than your retention window. Also start reading the basic backup/reovery guide to understand this whole concept.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96566/toc.htm
    Daljit Singh

  • Is it possible to restore DB from Obsolete backup?

    Hi,
    Is it possible to restore DB from Obsolete backup? If yes. How?
    Thanks
    Rajesh

    Catalog your backup again to restore it. Please read the below paragraph.
    Cataloging Older Files in the Recovery Catalog
    If you have datafile copies, backup pieces or archive logs on disk, you can catalog them in the recovery catalog using the CATALOG command. When using a recovery catalog, cataloging older backups that have aged out of the control file lets RMAN use the older backups during restore operations. For example:
    RMAN> CATALOG DATAFILECOPY '/disk1/old_datafiles/01_01_2003/users01.dbf';
    RMAN> CATALOG ARCHIVELOG '/disk1/arch_logs/archive1_731.dbf',
    '/disk1/arch_logs/archive1_732.dbf';
    RMAN> CATALOG BACKUPPIECE '/disk1/backups/backup_820.bkp';
    You can also catalog multiple backup files in a directory at once, using the CATALOG START WITH command, as shown in this example:
    RMAN> CATALOG START WITH '/disk1/backups/';
    RMAN lists the files to be added to the RMAN repository and prompts for confirmation before adding the backups.
    Be careful when creating your prefix for CATALOG START WITH. RMAN scans all paths for all files on disk which begin with your specified prefix. The wrong prefix may include more files than you intend. For example, a group of directories /disk1/backups , /disk1/backups-year2003, /disk1/backupsets, and /disk1/backupsets/test and so on, all contain backup files. The command
    RMAN> CATALOG START WITH '/disk1/backups';
    catalogs all files in all of these directories, because /disk1/backups is a prefix for the paths for all of these directories. In order to catalog only backups in the /disk1/backups directory, the correct command would be:
    RMAN> CATALOG START WITH '/disk1/backups/';
    Regards
    Asif Kabir

  • What's the difference between "archivelog" and "backupset"?

    In the flash recovery area there are two directories: archivelog and backupset.
    Both contain sub-directories created each day.
    Do I need to save both of these directories to tape?
    Lets say I have an old copy of the "datafile" directory that I want to bring up-to-date. Looks like I apply files from "backupset" to restore "datafile" .
    That being the case, there's no reason to save "archivelog", right?

    Solaria wrote:
    EdStevens wrote:
    In a sense, true. But you don't want to do that housekeeping outside of rman. Take a look at these commands:Well, OK. I'm willing to let RMAN handle it, as in:
    If you do a recovery that requires archivelogs that have been properly backed up and then deleted from the 'archivelog' directory, rman will actually restore the needed archivelogs from the backupset to their original location before applying them....works for me. Actually, I'd prefer to let Enterprise Manager handle it, and just click on "Perform Recovery"EM is just a GUI front-end. rman is still doing the work
    >
    Lubiez Jean-Valentin wrote:
    So, this is true, a Backupset has Archived Redolog files. But only the Archived Redolog files generated
    before or during the hot Backup.So when the hot Backup runs, "backupset" contains all of the archivelogs that exist at that time, generated 'before or during the hot backup'? Sounds like if I were to commit something to offline/tape storage at that time, it should be the "backupset", since it includes all of the archivelogs (and I believe the control files) and is considerably smaller.
    The backupset contains backups of whatever you specified to be backed up.
    So the nightly incrementals to tape, if run after the Oracle Recommended Backup, only needs to include the "backupset". The monthly tape backup to Iron Mountain only needs to include "datafile", since datafile already includes the backupset: the first step in the "Oracle Recommended Backup" recovers the backupset into the datafile..If you want to understnd how it works, the best thing would be to actually run some tests and observe the results. Install oracle on your desktop and set up some tests. Play around with some various scenarios and observe the results. It doesn't matter if the OS on your desktop is different from the prod server
    I would recommend you get away from the EM 'oracle recommended backup' and work directly with rman at the rman command line and using rman scripts. Some will argue that this is primitive, but if you want to understand what's going on, you have to get some grease under your fingernails.
    Edited by: EdStevens on Nov 15, 2009 9:06 AM

  • 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 controlfile from tape backup without autobackup setting on

    I am testing a scenraio of restoring control file if we loose all control files.
    My RMAN settings for CONTROLFILE AUTOBACKUP is OFF. But, I have taken a backup of controlfile using 'BACKUP CURRENT CONTROL FILE' .
    When I tried to restore control file. I am receiving following error:
    RMAN> run {
    2> allocate channel c101 type sbt_tape;
    3> restore controlfile ;
    4> }
    allocated channel: c101
    channel c101: sid=153 devtype=SBT_TAPE
    channel c101: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)
    Starting restore at 24-MAY-2007 13:44:59
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/24/2007 13:44:59
    RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
    My question is, How can I restore control file from tape backup without CONTROLFILE AUTOBACKUP setting ON.
    It sounds like, There is no way we can restore control file from tape backup if you've not set the CONTROLFILE AUTOBACKUP is ON.
    Please advice

    When all controlfiles are lost and a recovery catalog is NOT used, RMAN has no information , where to find the controlfile backup. It's not enough to specify the channel, such a channel could hold many different backups from many different databases. You have tell , which database and which backupset. Modify your run block:
    SET DBID <DBID of the database,for which you want to restore the controlfile>;
    RESTORE CONTROLFILE FROM <name_of_backupiece_which_contains_the_controlfile backup>';
    Werner

  • 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

  • What will be exact command instead of (archivelog from time 'SYSDATE-3';)

    HI all;
    rman configuration
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS and others is default
    i am taking weekly archivelog backup by following script
    run
    backup as compressed backupset
    device type disk
    tag "weekly_archivelog"
    format '/sw/weekly_archivelog_%d_t%t_c%c_s%s_p%p'
    archivelog from time 'SYSDATE-7';
    and
    i am taking daily archivelog backup by following script
    run
    backup as compressed backupset
    device type disk
    tag "daily_archivelog"
    format '/sw/daily11_archivelog_%d_t%t_c%c_s%s_p%p'
    archivelog from time 'SYSDATE-3';
    i want to ask about daily backup script.mainly (archivelog from time 'SYSDATE-3';),,,,,,,it is taking daily 3 days archivelog backup
    what will be exact command instead of (archivelog from time 'SYSDATE-3';)

    I assume you mean so that the daily doesn't constantly re-backup an archivelog that was already backed up?
    If so, you could use the following:
    run
    backup as compressed backupset
    device type disk
    tag "daily_archivelog"
    format '/sw/daily11_archivelog_%d_t%t_c%c_s%s_p%p'
    archivelog all not backed up 1 times;
    }or you could CONFIGURE BACKUP OPTIMIZATION ON or consider using DELETE INPUT to avoid the multiple backup of the same archivelogs.

  • Restore tablespace from rman

    Hi everyone.
    Im using a 11.0.6.0 database running on RHEL 5.
    i have a full backup every saturday, and everyday a backup of archivelogs.
    Could i restore a tablespace from 2 days ago with rman or i only can restore it from last saturday? how?
    if i had 2 full backup, how to choose from wich one i want restore the tablespace?
    Thanks in advance
    Edited by: user13748341 on 14-jun-2011 6:52

    user13748341 wrote:
    Hi everyone.
    Im using a 11.0.6.0 database running on RHEL 5.I don't think so. Where did you find an 11.ZERO? Oracle's first release at 11 was 11.1
    >
    i have a full backup every saturday, and everyday a backup of archivelogs.
    Could i restore a tablespace from 2 days ago with rman or i only can restore it from last saturday? how?
    if i had 2 full backup, how to choose from wich one i want restore the tablespace?
    Thanks in advance
    Edited by: user13748341 on 14-jun-2011 6:52You RESTORE the files from the backup of those files
    You RECOVER the files to a point in time from the archivelogs since the backup from which you restored.
    Go to tahiti.oracle.com and spend some time in the Backup and Recovery manuals to get clear on the concept of "backup", "recover", and "restore".

Maybe you are looking for

  • Not able to download the field names in GUI_DOWNLOAD(very urgent)

    Hi All, I am downloading the file contents to the presentation server.i am able to get the file contents proeprly but not able to download the field names into text file. Can anybody please help me in this issue..? its very urgent. Valuable answers w

  • Proposal Save Error

    Has anyone come across this error? There was an error in the callback.104|/wEWCQKmpb7DCgKpn5bCCwLNrvW5AwK9+p7tAgKquIyNCgKwnvjLDwLVj9WhAQK+vd+NBAKPkpStBCFi/5giRTTa7urrda7VMOUn6AAfs It actually saves the proposal, but the proposal is not in a functiona

  • I would like to be able to cut and paste text whilst using Firefox

    I am taking an online course and would like to do my work in Microsoft Office word documents and then copy and paste text ....how can I do this?

  • How do I work around a msaccess_utilities error

    The msaccess query has rows Booking.[Lecture Date], Year([Lecture Date]) AS [Year], Month([Lecture Date]) AS [Month], SQL Dveloper quick migration translates this as: Booking.Lecture_Date, msaccess_utilities.datepart('YEAR', Lecture_Date) YEAR, msacc

  • Problema para ver Thumbnails en Photoshop

    Me instalé todo el paquete CC 2014 y todo funciona bien, pero en Photoshop cuando quiero abrir un PSD no me deja ver la previsualización de dicho archivo (thumbnail). ¿Alguien sabe cómo solucionar esto? Ya está seteado que al guardar el archivo PSD s