$ rman target sys/OracleEnterpriseMgr@ORCLLIVE1 auxiliary /
Recovery Manager: Release 11.2.0.1.0 - Production on Thu May 3 15:13:59 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCLLIVE (DBID=XXXXXXX)
connected to auxiliary database: DWREP (not mounted)
RMAN> duplicate target database to DWREP;
Starting Duplicate Db at 03-MAY-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=2828 device type=DISK
contents of Memory Script:
{
sql clone "alter system set db_name =
''ORCLLIVE'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''DWREP'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
restore clone primary controlfile;
alter clone database mount;
}
executing Memory Script
sql statement: alter system set db_name = ''ORCLLIVE'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''DWREP'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 4275781632 bytes
Fixed Size 2213632 bytes
Variable Size 2818574592 bytes
Database Buffers 1442840576 bytes
Redo Buffers 12152832 bytes
Starting restore at 03-MAY-12
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=2514 device type=DISK
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece +ARCHIVE/ORCLLIVE/backup/c-XXXXXXX-20120503-01
channel ORA_AUX_DISK_1: piece handle=+ARCHIVE/ORCLLIVE/backup/c-XXXXXXX-20120503-01 tag=TAG20120503T144805
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
output file name=+DATA/dwrep/controlfile/control01.ctl
output file name=+ARCHIVE/dwrep/controlfile/control02.ctl
Finished restore at 03-MAY-12
database mounted
RMAN-05529: WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.
contents of Memory Script:
{
set until scn 421561242;
set newname for datafile 1 to
"+data";
set newname for datafile 2 to
"+data";
set newname for datafile 3 to
"+data";
set newname for datafile 4 to
"+data";
set newname for datafile 5 to
"+data";
set newname for datafile 6 to
"+data";
set newname for datafile 7 to
"+data";
set newname for datafile 8 to
"+data";
set newname for datafile 9 to
"+data";
set newname for datafile 10 to
"+data";
set newname for datafile 11 to
"+data";
set newname for datafile 12 to
"+data";
set newname for datafile 13 to
"+data";
set newname for datafile 14 to
"+data";
restore
clone database
;
}
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 03-MAY-12
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to +data
channel ORA_AUX_DISK_1: restoring datafile 00002 to +data
channel ORA_AUX_DISK_1: restoring datafile 00003 to +data
channel ORA_AUX_DISK_1: restoring datafile 00004 to +data
channel ORA_AUX_DISK_1: restoring datafile 00005 to +data
channel ORA_AUX_DISK_1: restoring datafile 00006 to +data
channel ORA_AUX_DISK_1: restoring datafile 00007 to +data
channel ORA_AUX_DISK_1: restoring datafile 00008 to +data
channel ORA_AUX_DISK_1: restoring datafile 00009 to +data
channel ORA_AUX_DISK_1: restoring datafile 00010 to +data
channel ORA_AUX_DISK_1: restoring datafile 00011 to +data
channel ORA_AUX_DISK_1: restoring datafile 00012 to +data
channel ORA_AUX_DISK_1: restoring datafile 00013 to +data
channel ORA_AUX_DISK_1: restoring datafile 00014 to +data
channel ORA_AUX_DISK_1: reading from backup piece +ARCHIVE/ORCLLIVE/backup/cbeliv
channel ORA_AUX_DISK_1: piece handle=+ARCHIVE/ORCLLIVE/backup/ORCLLIVE_ORCLLIVE_1bna2e2r_1_1 tag=TAG20120503T142739
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:24:05
Finished restore at 03-MAY-12
contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=15 STAMP=782321922 file name=+DATA/dwrep/datafile/system.460.782321381
datafile 2 switched to datafile copy
input datafile copy RECID=16 STAMP=782321922 file name=+DATA/dwrep/datafile/sysaux.461.782321323
datafile 3 switched to datafile copy
input datafile copy RECID=17 STAMP=782321922 file name=+DATA/dwrep/datafile/undotbs1.314.782320863
datafile 4 switched to datafile copy
input datafile copy RECID=18 STAMP=782321922 file name=+DATA/dwrep/datafile/users.459.782321431
datafile 5 switched to datafile copy
input datafile copy RECID=19 STAMP=782321922 file name=+DATA/dwrep/datafile/undotbs2.390.782320829
datafile 6 switched to datafile copy
input datafile copy RECID=20 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distdata.329.782320477
datafile 7 switched to datafile copy
input datafile copy RECID=21 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distindex.388.782320895
datafile 8 switched to datafile copy
input datafile copy RECID=22 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distdata.391.782320549
datafile 9 switched to datafile copy
input datafile copy RECID=23 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distdata.393.782320631
datafile 10 switched to datafile copy
input datafile copy RECID=24 STAMP=782321922 file name=+DATA/dwrep/datafile/sysaux.328.782321017
datafile 11 switched to datafile copy
input datafile copy RECID=25 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distdata.392.782320715
datafile 12 switched to datafile copy
input datafile copy RECID=26 STAMP=782321922 file name=+DATA/dwrep/datafile/system.278.782321375
datafile 13 switched to datafile copy
input datafile copy RECID=27 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distdata.389.782320789
datafile 14 switched to datafile copy
input datafile copy RECID=28 STAMP=782321922 file name=+DATA/dwrep/datafile/t24distdata.284.782321053
contents of Memory Script:
{
set until scn 421561242;
recover
clone database
delete archivelog
;
}
executing Memory Script
executing command: SET until clause
Starting recover at 03-MAY-12
using channel ORA_AUX_DISK_1
starting media recovery
archived log for thread 1 with sequence 274 is already on disk as file +ARCHIVE/ORCLLIVE/archivelog/2012_05_03/thread_1_seq_274.1151.782318755
archived log for thread 1 with sequence 275 is already on disk as file +ARCHIVE/ORCLLIVE/archivelog/2012_05_03/thread_1_seq_275.882.782318849
archived log for thread 2 with sequence 216 is already on disk as file +ARCHIVE/ORCLLIVE/archivelog/2012_05_03/thread_2_seq_216.5352.782318847
archived log file name=+ARCHIVE/ORCLLIVE/archivelog/2012_05_03/thread_1_seq_274.1151.782318755 thread=1 sequence=274
archived log file name=+ARCHIVE/ORCLLIVE/archivelog/2012_05_03/thread_2_seq_216.5352.782318847 thread=2 sequence=216
archived log file name=+ARCHIVE/ORCLLIVE/archivelog/2012_05_03/thread_1_seq_275.882.782318849 thread=1 sequence=275
media recovery complete, elapsed time: 00:01:07
Finished recover at 03-MAY-12
contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
sql clone "alter system set db_name =
''DWREP'' comment=
''Reset to original value by RMAN'' scope=spfile";
sql clone "alter system reset db_unique_name scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 4275781632 bytes
Fixed Size 2213632 bytes
Variable Size 2835351808 bytes
Database Buffers 1426063360 bytes
Redo Buffers 12152832 bytes
sql statement: alter system set db_name = ''DWREP'' comment= ''Reset to original value by RMAN'' scope=spfile
sql statement: alter system reset db_unique_name scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 4275781632 bytes
Fixed Size 2213632 bytes
Variable Size 2835351808 bytes
Database Buffers 1426063360 bytes
Redo Buffers 12152832 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DWREP" RESETLOGS ARCHIVELOG
MAXLOGFILES 320
MAXLOGMEMBERS 5
MAXDATAFILES 1024
MAXINSTANCES 32
MAXLOGHISTORY 584
LOGFILE
GROUP 1 ( '+archive', '+data' ) SIZE 2 G REUSE,
GROUP 2 ( '+archive', '+data' ) SIZE 2 G REUSE
DATAFILE
'+DATA/dwrep/datafile/system.460.782321381'
CHARACTER SET AL32UTF8
sql statement: ALTER DATABASE ADD LOGFILE
INSTANCE 'i2'
GROUP 3 ( '+data', '+archive' ) SIZE 2 G REUSE,
GROUP 4 ( '+data', '+archive' ) SIZE 2 G REUSE
contents of Memory Script:
{
set newname for tempfile 1 to
"+data";
switch clone tempfile all;
catalog clone datafilecopy "+DATA/dwrep/datafile/sysaux.461.782321323",
"+DATA/dwrep/datafile/undotbs1.314.782320863",
"+DATA/dwrep/datafile/users.459.782321431",
"+DATA/dwrep/datafile/undotbs2.390.782320829",
"+DATA/dwrep/datafile/t24distdata.329.782320477",
"+DATA/dwrep/datafile/t24distindex.388.782320895",
"+DATA/dwrep/datafile/t24distdata.391.782320549",
"+DATA/dwrep/datafile/t24distdata.393.782320631",
"+DATA/dwrep/datafile/sysaux.328.782321017",
"+DATA/dwrep/datafile/t24distdata.392.782320715",
"+DATA/dwrep/datafile/system.278.782321375",
"+DATA/dwrep/datafile/t24distdata.389.782320789",
"+DATA/dwrep/datafile/t24distdata.284.782321053";
switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to +data in control file
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/sysaux.461.782321323 RECID=1 STAMP=782322076
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/undotbs1.314.782320863 RECID=2 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/users.459.782321431 RECID=3 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/undotbs2.390.782320829 RECID=4 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distdata.329.782320477 RECID=5 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distindex.388.782320895 RECID=6 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distdata.391.782320549 RECID=7 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distdata.393.782320631 RECID=8 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/sysaux.328.782321017 RECID=9 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distdata.392.782320715 RECID=10 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/system.278.782321375 RECID=11 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distdata.389.782320789 RECID=12 STAMP=782322077
cataloged datafile copy
datafile copy file name=+DATA/dwrep/datafile/t24distdata.284.782321053 RECID=13 STAMP=782322077
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=782322076 file name=+DATA/dwrep/datafile/sysaux.461.782321323
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=782322077 file name=+DATA/dwrep/datafile/undotbs1.314.782320863
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=782322077 file name=+DATA/dwrep/datafile/users.459.782321431
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=782322077 file name=+DATA/dwrep/datafile/undotbs2.390.782320829
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distdata.329.782320477
datafile 7 switched to datafile copy
input datafile copy RECID=6 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distindex.388.782320895
datafile 8 switched to datafile copy
input datafile copy RECID=7 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distdata.391.782320549
datafile 9 switched to datafile copy
input datafile copy RECID=8 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distdata.393.782320631
datafile 10 switched to datafile copy
input datafile copy RECID=9 STAMP=782322077 file name=+DATA/dwrep/datafile/sysaux.328.782321017
datafile 11 switched to datafile copy
input datafile copy RECID=10 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distdata.392.782320715
datafile 12 switched to datafile copy
input datafile copy RECID=11 STAMP=782322077 file name=+DATA/dwrep/datafile/system.278.782321375
datafile 13 switched to datafile copy
input datafile copy RECID=12 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distdata.389.782320789
datafile 14 switched to datafile copy
input datafile copy RECID=13 STAMP=782322077 file name=+DATA/dwrep/datafile/t24distdata.284.782321053
contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 03-MAY-12
No comments:
Post a Comment