Recovery Manager: Release 12.2.0.1.0 - Production on Tue Aug 27 13:18:24 2019
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORA12C (DBID=383814323) connected to auxiliary database: ORA12C (not mounted)
开始执行复制脚本
1 2 3 4 5 6 7 8 9 10 11
run { allocate channel prmy1 type disk; allocate channel prmy2 type disk; allocate auxiliary channel aux1 type disk; allocate auxiliary channel aux2 type disk; allocate auxiliary channel aux3 type disk; allocate auxiliary channel aux4 type disk; DUPLICATE TARGET DATABASE TO 'ora12c' FROM ACTIVE DATABASE USING BACKUPSET; }
contents of Memory Script: { sql clone "alter system set control_files = ''/u01/app/oracle/oradata/ORA12C/controlfile/o1_mf_gcm27myg_.ctl'', ''/u01/app/oracle/fast_recovery_area/ora12c/ORA12C/controlfile/o1_mf_gcm27ndj_.ctl'' comment= ''Set by RMAN'' scope=spfile"; sql clone "alter system set db_name = ''ORA12C'' comment= ''Modified by RMAN duplicate'' scope=spfile"; shutdown clone immediate; startup clone force nomount restore clone from service 'ora12c' primary controlfile; alter clone database mount; }
contents of Memory Script: { sql clone 'alter database flashback off'; 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; set newname for clone datafile 7 to new; set newname for clone datafile 8 to new; set newname for clone datafile 9 to new; set newname for clone datafile 10 to new; set newname for clone datafile 11 to new; set newname for clone datafile 12 to new; set newname for clone datafile 134 to new; set newname for clone datafile 135 to new; set newname for clone datafile 136 to new; set newname for clone datafile 137 to new; restore from nonsparse from service 'ora12c' clone database ; sql 'alter system archive log current'; }