[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 = 5 STAMP = 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 "/Export/11g/oradata/orcl/temp01.dbf "; Switch clone tempfile all; Set newname for datafile 1 "/Export/11g/oradata/orcl/system01.dbf "; Set newname for datafile 2 "/Export/11g/oradata/orcl/sysaux01.dbf "; Set newname for datafile 3 "/Export/11g/oradata/orcl/undotbs01.dbf "; Set newname for datafile 4 "/Export/11g/oradata/orcl/users01.dbf "; Set newname for datafile 5 "/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. |