Question : Restore from older backups

I run a list backup and get name from a backup:


RMAN> list backup;


List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
19      Full    6.80M      DISK        00:00:00     17-JUN-10
        BP Key: 19   Status: AVAILABLE  Compressed: NO  Tag: TAG20100617T153913
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\AUTOBACKUP
\2010_06_17\O1_MF_S_721928294_61O90L0G_.BKP
  Control File Included: Ckp SCN: 821394       Ckp time: 17-JUN-10
  SPFILE Included: Modification time: 17-JUN-10

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
20      Full    6.80M      DISK        00:00:00     18-JUN-10
        BP Key: 20   Status: AVAILABLE  Compressed: NO  Tag: TAG20100618T212720
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\AUTOBACKUP
\2010_06_18\O1_MF_S_722035570_61RKS8S6_.BKP
  Control File Included: Ckp SCN: 924476       Ckp time: 18-JUN-10
  SPFILE Included: Modification time: 18-JUN-10

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
21      Full    6.80M      DISK        00:00:00     19-JUN-10
        BP Key: 21   Status: AVAILABLE  Compressed: NO  Tag: TAG20100619T000820
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\AUTOBACKUP
\2010_06_19\O1_MF_S_722045240_61RV74XW_.BKP
  Control File Included: Ckp SCN: 941055       Ckp time: 19-JUN-10
  SPFILE Included: Modification time: 19-JUN-10

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
22      Full    6.80M      DISK        00:00:00     21-JUN-10
        BP Key: 22   Status: AVAILABLE  Compressed: NO  Tag: TAG20100621T111657
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\AUTOBACKUP
\2010_06_21\O1_MF_S_722258146_61ZC4T2W_.BKP
  Control File Included: Ckp SCN: 1137745      Ckp time: 21-JUN-10
  SPFILE Included: Modification time: 21-JUN-10

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
23      Full    633.24M    DISK        00:00:00     18-JUN-10
        BP Key: 23   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_AMUN.CSUEAS_
061810092542
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\BACKUPSET\
2010_06_18\O1_MF_NNNDF_BACKUP_AMUN.CSUEAS_0_61RKQK0C_.BKP
  List of Datafiles in backup set 23
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 924476     18-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\SYSTEM
01.DBF
  2       Full 924476     18-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\UNDOTB
S01.DBF
  3       Full 924476     18-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\SYSAUX
01.DBF
  4       Full 924476     18-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\USERS0
1.DBF
  5       Full 924476     18-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\EXAMPL
E01.DBF

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
24      Full    637.60M    DISK        00:00:00     19-JUN-10
        BP Key: 24   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_AMUN.CSUEAS_
061910120659
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\BACKUPSET\
2010_06_19\O1_MF_NNNDF_BACKUP_AMUN.CSUEAS_0_61RV5Q0N_.BKP
  List of Datafiles in backup set 24
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 941055     19-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\SYSTEM
01.DBF
  2       Full 941055     19-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\UNDOTB
S01.DBF
  3       Full 941055     19-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\SYSAUX
01.DBF
  4       Full 941055     19-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\USERS0
1.DBF
  5       Full 941055     19-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\EXAMPL
E01.DBF

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
25      Full    660.52M    DISK        00:00:00     21-JUN-10
        BP Key: 25   Status: AVAILABLE  Compressed: NO  Tag: BACKUP_AMUN.CSUEAS_
062110111511
        Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AMUN\BACKUPSET\
2010_06_21\O1_MF_NNNDF_BACKUP_AMUN.CSUEAS_0_61ZC31XR_.BKP
  List of Datafiles in backup set 25
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1137745    21-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\SYSTEM
01.DBF
  2       Full 1137745    21-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\UNDOTB
S01.DBF
  3       Full 1137745    21-JUN-10 C:\ORACLE\PRODUCT\10.2.0\ORADATA\AMUN\SYSAUX
01.DBF


I then try to restore that controlfile and get an error.  What am I doing wrong?



RMAN>  restore controlfile from 'C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\AM
UN\AUTOBACKUP\2010_06__17\O1_MF_S_721928294_61O90L0G_.BKP';

Starting restore at 21-JUN-10
using channel ORA_DISK_1

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/21/2010 14:09:14
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

Answer : Restore from older backups

OK, I see what is happening now.  When I use OEM and chose to specify rather than restoring from autobackup, i need to click the Edit RMAN Script button also and insert some ....UNTIL (date, scn etc)
Thanks
Random Solutions  
 
programming4us programming4us