rman_dup_24122014.log


+ rman

Recovery Manager: Release 12.1.0.2.0 - Production on Wed Dec 24 14:35:12 2014

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

RMAN>
echo set on

RMAN> connect target *
connected to target database: CDB0 (DBID=890600873)

RMAN> connect auxiliary *
connected to auxiliary database: AUX (not mounted)

RMAN> run {
2>  duplicate target database for standby from active database
3>  spfile
4>  set 'db_unique_name'='CDB1'
5>  set 'compatible'='12.1.0.2';
6> }
Starting Duplicate Db at 24-DEC-14
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=22 device type=DISK

contents of Memory Script:
{
backup as copy reuse
targetfile  '/u01/app/12.1.0.2/db/dbs/orapwCDB0' auxiliary format
'/u01/app/12.1.0.2/db/dbs/orapwCDB1'   ;
restore clone from service  'CDB0' spfile to
'/u01/app/12.1.0.2/db/dbs/spfileCDB1.ora';
sql clone "alter system set spfile= ''/u01/app/12.1.0.2/db/dbs/spfileCDB1.ora''";
}
executing Memory Script

Starting backup at 24-DEC-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=26 device type=DISK
Finished backup at 24-DEC-14

Starting restore at 24-DEC-14
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 CDB0
channel ORA_AUX_DISK_1: restoring SPFILE
output file name=/u01/app/12.1.0.2/db/dbs/spfileCDB1.ora
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 24-DEC-14

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

contents of Memory Script:
{
sql clone "alter system set  db_unique_name =
''CDB1'' 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 =  ''CDB1'' 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     641728512 bytes

Fixed Size                     2927672 bytes
Variable Size                520094664 bytes
Database Buffers             113246208 bytes
Redo Buffers                   5459968 bytes

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

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

Starting restore at 24-DEC-14
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=29 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service CDB0
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:05
output file name=+DATA/CDB1/CONTROLFILE/current.267.867162943
output file name=+FRA/CDB1/CONTROLFILE/current.258.867162945
Finished restore at 24-DEC-14

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  6 to new;
restore
from service  'CDB0'   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

Starting restore at 24-DEC-14
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 CDB0
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:55
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service CDB0
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:36
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service CDB0
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 CDB0
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:01
Finished restore at 24-DEC-14

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=5 STAMP=867163062 file name=+DATA/CDB1/DATAFILE/system.266.867162957
datafile 3 switched to datafile copy
input datafile copy RECID=6 STAMP=867163063 file name=+DATA/CDB1/DATAFILE/sysaux.264.867163011
datafile 4 switched to datafile copy
input datafile copy RECID=7 STAMP=867163063 file name=+DATA/CDB1/DATAFILE/undotbs1.274.867163047
datafile 6 switched to datafile copy
input datafile copy RECID=8 STAMP=867163063 file name=+DATA/CDB1/DATAFILE/users.270.867163061
Finished Duplicate Db at 24-DEC-14

RMAN>

Recovery Manager complete.

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: