Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RMAM duplicate database - until when?

RMAM duplicate database - until when?

From: Lawie, Duncan <duncan.lawie_at_credit-suisse.com>
Date: Thu, 21 Dec 2006 12:50:38 -0500
Message-ID: <07150B51CE30744CBBB58E696139708D0A8F3760@elon11p32002.csfp.co.uk>


List,

I'm suffering at the hands of the rman cloning code.

I'm doing a
"backup database incremental level zero plus archivelog"

I've shown an output from the "list backup" at the bottom of the email.

What I want to do is

run {
set until scn XXX
duplicate target database to TESTDBE30;
}

Where XXX is the last SCN in the backup.

How do I find this?

rc_backup_archivelog_details will tell me the next_change# of the archivelog - but that isn't the last SCN in the current file is it?

BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ---------------

4280    Incr 0  108.34M    DISK        00:00:51     20 Dec 11:37:23
        BP Key: 4286   Status: AVAILABLE  Compressed: YES  Tag: TAG20061220T113632
        Piece Name: /app/oracle/TESTRAC80/admin/rman/whole_db_online_backup_TESTRAC80_70_26i5duq0_1_1_20061220
  List of Datafiles in backup set 4280
  File LV Type Ckp SCN    Ckp Time        Name

BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ ---------------

4306    27.50K     DISK        00:00:02     20 Dec 11:37:53
        BP Key: 4313   Status: AVAILABLE  Compressed: YES  Tag: TAG20061220T113742
        Piece Name: /app/oracle/TESTRAC80/admin/rman/whole_db_online_backup_TESTRAC80_72_28i5dusf_1_1_20061220

  List of Archived Logs in backup set 4306
  Thrd Seq     Low SCN    Low Time        Next SCN   Next Time

BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ ---------------

4307    2.00K      DISK        00:00:02     20 Dec 11:37:53
        BP Key: 4314   Status: AVAILABLE  Compressed: YES  Tag: TAG20061220T113742
        Piece Name: /app/oracle/TESTRAC80/admin/rman/whole_db_online_backup_TESTRAC80_73_29i5dusf_1_1_20061220

  List of Archived Logs in backup set 4307
  Thrd Seq     Low SCN    Low Time        Next SCN   Next Time

BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ---------------

4323    Full    15.98M     DISK        00:00:02     20 Dec 11:38:00
        BP Key: 4325   Status: AVAILABLE  Compressed: NO  Tag: TAG20061220T113758
        Piece Name: /app/oracle/TESTRAC80/admin/rman/whole_db_online_backup_TESTRAC80_c-2618574194-20061220-02
  Control File Included: Ckp SCN: 45670323     Ckp time: 20 Dec 11:37:58
  SPFILE Included: Modification time: 14 Dec 19:11:16

Duncan Lawie
DBE - Oracle
020 788 3 9229
"Problems cannot be solved at the same level of awareness that created them." -- Albert Einstein



Please access the attached hyperlink for an important electronic communications disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html


--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 21 2006 - 11:50:38 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US