Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to validate backup set before starting rman duplicate from backup in 11.2.0.4

DBA092012Feb 19 2014 — edited Feb 28 2014

Hello everyone.

I backup 11.2.0.4 with the following script every night at 3:05 A.M.

run{

BACKUP INCREMENTAL LEVEL 1 DATABASE;

delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-2';

BACKUP VALIDATE CHECK LOGICAL DATABASE ARCHIVELOG ALL;

}

and i've started to performe this task not so far according and according to ls command output have this range of backupsets

ASMCMD> ls +fra/payment/BACKUPSET/

2014_01_30/

2014_02_01/

2014_02_02/

2014_02_03/

2014_02_04/

2014_02_05/

2014_02_06/

2014_02_07/

2014_02_08/

2014_02_09/

2014_02_10/

2014_02_11/

2014_02_12/

2014_02_13/

2014_02_14/

2014_02_15/

2014_02_16/

2014_02_17/

2014_02_18/

2014_02_19/

Ive copied all backupsets to NFS below directory /storage/flash_recovery_area/PAYMENT which now containes

drwxrwxrwx  2 store store 4096 Фев 18 18:01 all
drwxrwxrwx  3 root  root  4096 Фев 17 10:54 archivelog
drwxrwxrwx 21 store store 4096 Фев 18 15:00 backupset

-rwxrwxrwx  1 store store 11927552 Фев 18 14:41 c-1084977999-20140218-00

drwxrwxrwx  2 store store 4096 Фев 17 11:31 cfile
drwxrwxrwx  2 root  root  4096 Фев 18 14:32 controlfile
-rwxrwxrwx  1 store store 2051 Фев 14 10:36 init.ora.11102013122419
-rwxrwxrwx  1 store store   41 Фев 14 10:38 initpayment.ora
-rwxrwxrwx  1 store store 1536 Фев 14 10:39 orapwpayment
-rwxrwxrwx  1 store store  191 Фев 14 11:44 tnsnames.ora

On 13th of Fabruary i lost a table with critical data!!!!!

RMAN configuration on 2014_02_13 was as following

RMAN> show all

2> ;

using target database control file instead of recovery catalog

RMAN configuration parameters for database with db_unique_name PAYMENT are:

CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default

CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/product/11.2.0/dbhome_1/dbs/snapcf_payment.f'; # default

Now i try to restore my data to the point in time before i lost it (it has happened on 6:05 A.M. on 13th of February 2014).

For this purpose i desided to use DUPLICATE based approach.

When i start DUPLICATE i have RMAN-05574

rman auxiliary /

Recovery Manager: Release 11.2.0.4.0 - Production on Tue Feb 18 10:42:25 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to auxiliary database: PAYMENT (not mounted)

RMAN> DUPLICATE DATABASE payment TO payment

2> UNTIL TIME "TO_DATE('13-FEB-2014 03:19:54','DD-MON-YYYY HH24:MI:SS')"

3> BACKUP LOCATION '/storage/flash_recovery_area/';

Starting Duplicate Db at 18-FEB-14

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

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

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

RMAN-03002: failure of Duplicate Db command at 02/18/2014 10:44:22

RMAN-05501: aborting duplication of target database

RMAN-05574: CONTROLFILE backup not found for database PAYMENT created before TO_DATE('13-FEB-2014 03:19:54','DD-MON-YYYY HH24:MI:SS') in /storage/flash_recovery_area/

list backup of controlfile;

List of Backup Sets

===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

4       Incr 1  10.20M     DISK        00:00:02     30-JAN-14

        BP Key: 4   Status: AVAILABLE  Compressed: NO  Tag: TAG20140130T223301

        Piece Name: +FRA/payment/backupset/2014_01_30/ncsnn1_tag20140130t223301_0.737.838248589

  Control File Included: Ckp SCN: 1189063262   Ckp time: 30-JAN-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

6       Incr 1  10.20M     DISK        00:00:04     01-FEB-14

        BP Key: 6   Status: AVAILABLE  Compressed: NO  Tag: TAG20140201T030508

        Piece Name: +FRA/payment/backupset/2014_02_01/ncsnn1_tag20140201t030508_0.680.838350361

  Control File Included: Ckp SCN: 1190130785   Ckp time: 01-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

8       Incr 1  10.20M     DISK        00:00:04     02-FEB-14

        BP Key: 8   Status: AVAILABLE  Compressed: NO  Tag: TAG20140202T030506

        Piece Name: +FRA/payment/backupset/2014_02_02/ncsnn1_tag20140202t030506_0.637.838436749

  Control File Included: Ckp SCN: 1190872994   Ckp time: 02-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

10      Incr 1  10.20M     DISK        00:00:04     03-FEB-14

        BP Key: 10   Status: AVAILABLE  Compressed: NO  Tag: TAG20140203T030505

        Piece Name: +FRA/payment/backupset/2014_02_03/ncsnn1_tag20140203t030505_0.613.838523149

  Control File Included: Ckp SCN: 1191358614   Ckp time: 03-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

12      Incr 1  10.20M     DISK        00:00:04     04-FEB-14

        BP Key: 12   Status: AVAILABLE  Compressed: NO  Tag: TAG20140204T030507

        Piece Name: +FRA/payment/backupset/2014_02_04/ncsnn1_tag20140204t030507_0.596.838609549

  Control File Included: Ckp SCN: 1192503459   Ckp time: 04-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

14      Incr 1  10.33M     DISK        00:00:01     05-FEB-14

        BP Key: 14   Status: AVAILABLE  Compressed: NO  Tag: TAG20140205T030504

        Piece Name: +FRA/payment/backupset/2014_02_05/ncsnn1_tag20140205t030504_0.381.838696113

  Control File Included: Ckp SCN: 1193740114   Ckp time: 05-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

16      Incr 1  10.33M     DISK        00:00:01     06-FEB-14

        BP Key: 16   Status: AVAILABLE  Compressed: NO  Tag: TAG20140206T030503

        Piece Name: +FRA/payment/backupset/2014_02_06/ncsnn1_tag20140206t030503_0.310.838782383

  Control File Included: Ckp SCN: 1194895863   Ckp time: 06-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

18      Incr 1  10.42M     DISK        00:00:01     07-FEB-14

        BP Key: 18   Status: AVAILABLE  Compressed: NO  Tag: TAG20140207T030503

        Piece Name: +FRA/payment/backupset/2014_02_07/ncsnn1_tag20140207t030503_0.309.838868733

  Control File Included: Ckp SCN: 1196151606   Ckp time: 07-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

20      Incr 1  10.42M     DISK        00:00:02     08-FEB-14

        BP Key: 20   Status: AVAILABLE  Compressed: NO  Tag: TAG20140208T030504

        Piece Name: +FRA/payment/backupset/2014_02_08/ncsnn1_tag20140208t030504_0.453.838955133

  Control File Included: Ckp SCN: 1197470944   Ckp time: 08-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

22      Incr 1  10.42M     DISK        00:00:02     09-FEB-14

        BP Key: 22   Status: AVAILABLE  Compressed: NO  Tag: TAG20140209T030504

        Piece Name: +FRA/payment/backupset/2014_02_09/ncsnn1_tag20140209t030504_0.353.839041533

  Control File Included: Ckp SCN: 1198471121   Ckp time: 09-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

24      Incr 1  10.42M     DISK        00:00:02     10-FEB-14

        BP Key: 24   Status: AVAILABLE  Compressed: NO  Tag: TAG20140210T030504

        Piece Name: +FRA/payment/backupset/2014_02_10/ncsnn1_tag20140210t030504_0.711.839127933

  Control File Included: Ckp SCN: 1199026530   Ckp time: 10-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

26      Incr 1  11.17M     DISK        00:00:01     11-FEB-14

        BP Key: 26   Status: AVAILABLE  Compressed: NO  Tag: TAG20140211T030503

        Piece Name: +FRA/payment/backupset/2014_02_11/ncsnn1_tag20140211t030503_0.612.839214343

  Control File Included: Ckp SCN: 1200602675   Ckp time: 11-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

28      Incr 1  11.17M     DISK        00:00:01     12-FEB-14

        BP Key: 28   Status: AVAILABLE  Compressed: NO  Tag: TAG20140212T030504

        Piece Name: +FRA/payment/backupset/2014_02_12/ncsnn1_tag20140212t030504_0.380.839300743

  Control File Included: Ckp SCN: 1202380777   Ckp time: 12-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

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

30      Incr 1  11.36M     DISK        00:00:02     13-FEB-14

        BP Key: 30   Status: AVAILABLE  Compressed: NO  Tag: TAG20140213T030504

        Piece Name: +FRA/payment/backupset/2014_02_13/ncsnn1_tag20140213t030504_0.512.839387133

  Control File Included: Ckp SCN: 1204275606   Ckp time: 13-FEB-14

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

Could you please analyze the problem.

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2014
Added on Feb 19 2014
18 comments
1,558 views