Oracle 11gR2使用RMAN duplicate from active database复制数据库(五)

2014-11-24 17:03:34 · 作者: · 浏览: 1
mory Script: { backup as copy reuse archivelog like "/oradata/orcl2/arch/1_15_829415524.arc" auxiliary format "/oradata/orcl2/arch/1_15_829415524.arc" ; catalog clone archivelog "/oradata/orcl2/arch/1_15_829415524.arc"; switch clone datafile all; } executing Memory Script Starting backup at 21-OCT-13 channel prmy1: starting archived log copy input archived log thread=1 sequence=15 RECID=11 STAMP=829431615 output file name=/oradata/orcl2/arch/1_15_829415524.arc RECID=0 STAMP=0 channel prmy1: archived log copy complete, elapsed time: 00:00:16 Finished backup at 21-OCT-13 cataloged archived log archived log file name=/oradata/orcl2/arch/1_15_829415524.arc RECID=11 STAMP=829430002 datafile 1 switched to datafile copy input datafile copy RECID=4 STAMP=829430002 file name=/oradata/orcl2/datafilessystem01.dbf datafile 2 switched to datafile copy input datafile copy RECID=5 STAMP=829430002 file name=/oradata/orcl2/datafilessysaux01.dbf datafile 3 switched to datafile copy input datafile copy RECID=6 STAMP=829430002 file name=/oradata/orcl2/datafilesundotbs01.dbf datafile 4 switched to datafile copy input datafile copy RECID=7 STAMP=829430002 file name=/oradata/orcl2/datafilesusers01.dbf datafile 5 switched to datafile copy input datafile copy RECID=8 STAMP=829430002 file name=/oradata/orcl2/datafilesexample01.dbf contents of Memory Script: { set until scn 854661; recover clone database delete archivelog ; } executing Memory Script executing command: SET until clause Starting recover at 21-OCT-13 starting media recovery archived log for thread 1 with sequence 15 is already on disk as file /oradata/orcl2/arch/1_15_829415524.arc archived log file name=/oradata/
orcl2/arch/1_15_829415524.arc thread=1 sequence=15 media recovery complete, elapsed time: 00:00:00 Finished recover at 21-OCT-13 contents of Memory Script: { shutdown clone immediate; startup clone nomount; sql clone "alter system set db_name = ''ORCL2'' 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 849530880 bytes Fixed Size 1339824 bytes Variable Size 637537872 bytes Database Buffers 205520896 bytes Redo Buffers 5132288 bytes allocated channel: stby1 channel stby1: SID=19 device type=DISK sql statement: alter system set db_name = ''ORCL2'' 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 849530880 bytes Fixed Size 1339824 bytes Variable Size 637537872 bytes Database Buffers 205520896 bytes Redo Buffers 5132288 bytes allocated channel: stby1 channel stby1: SID=19 device type=DISK sql statement: CREATE CONTROLFILE REUSE SET DATABASE "ORCL2" RESETLOGS ARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292 LOGFILE GROUP 1 ( '/oradata/orcl2/datafiles/redo01.log' ) SIZE 50 M