|
[oracle@st dbs]rman targetsys/oracle@orcl1 auxiliarysys/oracle@orcl2
RMAN> duplicate target database for standby from activedatabase nofilenamecheck;
Starting Duplicate Db at 10-NOV-14
using target databasecontrol file instead of recovery catalog
allocated channel:ORA_AUX_DISK_1
channel ORA_AUX_DISK_1:SID=20 device type=DISK
contents of MemoryScript:
{
backup as copy reuse
targetfile '/export/11g/product/dbs/orapworcl' auxiliary format
'/export/11g/product/dbs/orapworcl' ;
}
executing Memory Script
Starting backup at 10-NOV-14
allocated channel:ORA_DISK_1
channel ORA_DISK_1:SID=43 device type=DISK
Finished backup at10-NOV-14
contents of MemoryScript:
{
backup as copy current controlfile forstandby auxiliary format '/export/11g/oradata/orcl/control01.ctl';
restore clone controlfile to '/export/11g/flash_recovery_area/orcl/control02.ctl' from
'/export/11g/oradata/orcl/control01.ctl';
}
executing Memory Script
Starting backup at 10-NOV-14
using channel ORA_DISK_1
channel ORA_DISK_1:starting datafile copy
copying standby controlfile
output filename=/export/11g/product/dbs/snapcf_orcl.f tag=TAG20141110T094600 RECID=5STAMP=863257560
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:03
Finished backup at10-NOV-14
Starting restore at 10-NOV-14
using channelORA_AUX_DISK_1
channel ORA_AUX_DISK_1:copied control file copy
Finished restore at10-NOV-14
contents of MemoryScript:
{
sql clone 'alter database mount standbydatabase';
}
executing Memory Script
sql statement: alterdatabase mount standby database
contents of MemoryScript:
{
set newname for tempfile 1 to
"/export/11g/oradata/orcl/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/export/11g/oradata/orcl/system01.dbf";
set newname for datafile 2 to
"/export/11g/oradata/orcl/sysaux01.dbf";
set newname for datafile 3 to
"/export/11g/oradata/orcl/undotbs01.dbf";
set newname for datafile 4 to
"/export/11g/oradata/orcl/users01.dbf";
set newname for datafile 5 to
"/export/11g/oradata/orcl/example01.dbf";
backup as copy reuse
datafile 1 auxiliary format
"/export/11g/oradata/orcl/system01.dbf" datafile
2 auxiliary format
"/export/11g/oradata/orcl/sysaux01.dbf" datafile
3 auxiliary format
"/export/11g/oradata/orcl/undotbs01.dbf" datafile
4 auxiliary format
"/export/11g/oradata/orcl/users01.dbf" datafile
5 auxiliary format
"/export/11g/oradata/orcl/example01.dbf" ;
sql 'alter system archive log current';
}
executing Memory Script
executing command: SETNEWNAME
renamed tempfile 1 to/export/11g/oradata/orcl/temp01.dbf in control file
executing command: SETNEWNAME
executing command: SETNEWNAME
executing command: SETNEWNAME
executing command: SETNEWNAME
executing command: SETNEWNAME
Starting backup at 10-NOV-14
using channel ORA_DISK_1
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00001 name=/export/11g/oradata/orcl/system01.dbf
output filename=/export/11g/oradata/orcl/system01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:56
channel ORA_DISK_1: startingdatafile copy
input datafile filenumber=00002 name=/export/11g/oradata/orcl/sysaux01.dbf
output filename=/export/11g/oradata/orcl/sysaux01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00005 name=/export/11g/oradata/orcl/example01.dbf
output filename=/export/11g/oradata/orcl/example01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:16
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00003 name=/export/11g/oradata/orcl/undotbs01.dbf
output filename=/export/11g/oradata/orcl/undotbs01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1:starting datafile copy
input datafile filenumber=00004 name=/export/11g/oradata/orcl/users01.dbf
output filename=/export/11g/oradata/orcl/users01.dbf tag=TAG20141110T094610
channel ORA_DISK_1:datafile copy complete, elapsed time: 00:00:07
Finished backup at10-NOV-14
sql statement: altersystem archive log current
contents of MemoryScript:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched todatafile copy
input datafile copyRECID=5 STAMP=863257693 file name=/export/11g/oradata/orcl/system01.dbf
datafile 2 switched todatafile copy
input datafile copyRECID=6 STAMP=863257694 file name=/export/11g/oradata/orcl/sysaux01.dbf
datafile 3 switched todatafile copy
input datafile copyRECID=7 STAMP=863257694 file name=/export/11g/oradata/orcl/undotbs01.dbf
datafile 4 switched todatafile copy
input datafile copyRECID=8 STAMP=863257694 file name=/export/11g/oradata/orcl/users01.dbf
datafile 5 switched todatafile copy
input datafile copyRECID=9 STAMP=863257694 file name=/export/11g/oradata/orcl/example01.dbf
Finished Duplicate Db at10-NOV-14
RMAN> exit
Recovery Managercomplete. |