Recovery Manager: Release 12.1.0.2.0 - Production on Thu Jun 25 21:54:25 2015

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

RMAN> set echo on
2> connect target *
3> connect auxiliary *
4> run {
5>  duplicate target database for standby from active database
6>  spfile
7>  set db_unique_name='DTF'
8>  set instance_name='DTF1'
9>  set instance_number='1'
10>  set compatible='12.1.0.2';
11> }
12>
echo set on

connected to target database: DOT (DBID=518784271)

connected to auxiliary database: AUX (not mounted)

Starting Duplicate Db at 25-JUN-15
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=29 device type=DISK

contents of Memory Script:
{
   backup as copy reuse
   targetfile  '+DATA/DOT/PASSWORD/pwddot.278.883249325' auxiliary format
 '/u01/app/12.1.0.2/db/dbs/orapwDTF1'   ;
   restore clone from service  'DOT' spfile to
 '/u01/app/12.1.0.2/db/dbs/spfileDTF1.ora';
   sql clone "alter system set spfile= ''/u01/app/12.1.0.2/db/dbs/spfileDTF1.ora''";
}
executing Memory Script

Starting backup at 25-JUN-15
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=39 instance=DOT1 device type=DISK
Finished backup at 25-JUN-15

Starting restore at 25-JUN-15
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
channel ORA_AUX_DISK_1: restoring SPFILE
output file name=/u01/app/12.1.0.2/db/dbs/spfileDTF1.ora
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 25-JUN-15

sql statement: alter system set spfile= ''/u01/app/12.1.0.2/db/dbs/spfileDTF1.ora''

contents of Memory Script:
{
   sql clone "alter system set  db_unique_name =
 ''DTF'' comment=
 '''' scope=spfile";
   sql clone "alter system set  instance_name =
 ''DTF1'' comment=
 '''' scope=spfile";
   sql clone "alter system set  instance_number =
 1 comment=
 '''' scope=spfile";
   sql clone "alter system set  compatible =
 ''12.1.0.2'' comment=
 '''' scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_unique_name =  ''DTF'' comment= '''' scope=spfile

sql statement: alter system set  instance_name =  ''DTF1'' comment= '''' scope=spfile

sql statement: alter system set  instance_number =  1 comment= '''' scope=spfile

sql statement: alter system set  compatible =  ''12.1.0.2'' comment= '''' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     775946240 bytes

Fixed Size                     2929208 bytes
Variable Size                629149128 bytes
Database Buffers             138412032 bytes
Redo Buffers                   5455872 bytes

contents of Memory Script:
{
   sql clone "alter system set  control_files =
  ''+DATA/DTF/CONTROLFILE/current.257.883346129'', ''+FRA/DTF/CONTROLFILE/current.257.883346129'' comment=
 ''Set by RMAN'' scope=spfile";
   restore clone from service  'DOT' standby controlfile;
}
executing Memory Script

sql statement: alter system set  control_files =   ''+DATA/DTF/CONTROLFILE/current.257.883346129'', ''+FRA/DTF/CONTROLFILE/current.257.883346129'' comment= ''Set by RMAN'' scope=spfile

Starting restore at 25-JUN-15
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=42 instance=DTF1 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:15
output file name=+DATA/DTF/CONTROLFILE/current.281.883346139
output file name=+FRA/DTF/CONTROLFILE/current.268.883346141
Finished restore at 25-JUN-15

contents of Memory Script:
{
   sql clone 'alter database mount standby database';
}
executing Memory Script

sql statement: alter database mount standby database

contents of Memory Script:
{
   set newname for clone tempfile  1 to new;
   switch clone tempfile all;
   set newname for clone datafile  1 to new;
   set newname for clone datafile  3 to new;
   set newname for clone datafile  4 to new;
   set newname for clone datafile  5 to new;
   set newname for clone datafile  6 to new;
   restore
   from service  'DOT'   clone database
   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to +DATA in control file

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 25-JUN-15
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
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: restore complete, elapsed time: 00:00:56
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00003 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:47
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00004 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:15
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00005 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:09
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service DOT
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00006 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:04
Finished restore at 25-JUN-15

sql statement: alter system archive log current

contents of Memory Script:
{
   switch clone datafile all;
}
executing Memory Script

datafile 1 switched to datafile copy
input datafile copy RECID=6 STAMP=883346296 file name=+DATA/DTF/DATAFILE/system.280.883346163
datafile 3 switched to datafile copy
input datafile copy RECID=7 STAMP=883346298 file name=+DATA/DTF/DATAFILE/sysaux.279.883346219
datafile 4 switched to datafile copy
input datafile copy RECID=8 STAMP=883346299 file name=+DATA/DTF/DATAFILE/undotbs1.278.883346265
datafile 5 switched to datafile copy
input datafile copy RECID=9 STAMP=883346299 file name=+DATA/DTF/DATAFILE/undotbs2.277.883346283
datafile 6 switched to datafile copy
input datafile copy RECID=10 STAMP=883346300 file name=+DATA/DTF/DATAFILE/users.276.883346287
Finished Duplicate Db at 25-JUN-15

Recovery Manager complete.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: