Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script:
- run
- {
- allocate channel c00 device type disk;
- allocate auxiliary channel a00 device type disk;
- allocate channel c01 device type disk;
- allocate auxiliary channel a01 device type disk;
- allocate channel c02 device type disk;
- allocate auxiliary channel a02 device type disk;
- allocate channel c03 device type disk;
- allocate auxiliary channel a03 device type disk;
- duplicate target database to PUUOO
- using compressed backupset
- from active database
- spfile
- parameter_value_convert 'POLOLU', 'PUUOO';
- }
- quit
- some output:
- restore
- from service 'POLOLU' using compressed backupset
- clone database
- ;
- sql 'alter system archive log current';
- }
- executing Memory Script
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- executing command: SET NEWNAME
- Starting restore at 2013-09-12 00:47:36
- channel a00: starting datafile backup set restore
- channel a00: using compressed network backup set from service POLOLU
- channel a00: specifying datafile(s) to restore from backup set
- channel a00: restoring datafile 00001 to +DATA
- channel a01: starting datafile backup set restore
- channel a01: using compressed network backup set from service POLOLU
- channel a01: specifying datafile(s) to restore from backup set
- channel a01: restoring datafile 00003 to +DATA
- channel a02: starting datafile backup set restore
- channel a02: using compressed network backup set from service POLOLU
- channel a02: specifying datafile(s) to restore from backup set
- channel a02: restoring datafile 00004 to +DATA
- channel a03: starting datafile backup set restore
- channel a03: using compressed network backup set from service POLOLU
- channel a03: specifying datafile(s) to restore from backup set
- channel a03: restoring datafile 00006 to +DATA
- channel a02: restore complete, elapsed time: 00:01:15
- channel a03: restore complete, elapsed time: 00:01:45
- channel a00: restore complete, elapsed time: 00:02:15
- channel a01: restore complete, elapsed time: 00:02:15
- Finished restore at 2013-09-12 00:49:52
- sql statement: alter system archive log current
- current log archived
- contents of Memory Script:
- {
- restore clone force from service 'POLOLU' using compressed backupset
- archivelog from scn 1856714;
- switch clone datafile all;
- }
- executing Memory Script
- Starting restore at 2013-09-12 00:49:55
- channel a00: starting archived log restore to default destination
- channel a00: using compressed network backup set from service POLOLU
- channel a00: restoring archived log
- archived log thread=1 sequence=19
- channel a01: starting archived log restore to default destination
- channel a01: using compressed network backup set from service POLOLU
- channel a01: restoring archived log
- archived log thread=1 sequence=20
- channel a00: restore complete, elapsed time: 00:00:03
- channel a01: restore complete, elapsed time: 00:00:03
- Finished restore at 2013-09-12 00:49:59
- datafile 1 switched to datafile copy
- input datafile copy RECID=5 STAMP=825900600 file name=+DATA/PUUOO/DATAFILE/system.440.825900463
- datafile 3 switched to datafile copy
- input datafile copy RECID=6 STAMP=825900600 file name=+DATA/PUUOO/DATAFILE/sysaux.412.825900465
- datafile 4 switched to datafile copy
- input datafile copy RECID=7 STAMP=825900601 file name=+DATA/PUUOO/DATAFILE/undotbs1.456.825900465
- datafile 6 switched to datafile copy
- input datafile copy RECID=8 STAMP=825900602 file name=+DATA/PUUOO/DATAFILE/users.457.825900485
- contents of Memory Script:
- {
- set until scn 1856875;
- recover
- clone database
- delete archivelog
- ;
- }
- executing Memory Script
- executing command: SET until clause
- Starting recover at 2013-09-12 00:50:03
- starting media recovery
- archived log for thread 1 with sequence 19 is already on disk as file +DATA/PUUOO/ARCHIVELOG/2013_09_12/thread_1_seq_19.448.825900597
- archived log for thread 1 with sequence 20 is already on disk as file +DATA/PUUOO/ARCHIVELOG/2013_09_12/thread_1_seq_20.455.825900597
- archived log file name=+DATA/PUUOO/ARCHIVELOG/2013_09_12/thread_1_seq_19.448.825900597 thread=1 sequence=19
- archived log file name=+DATA/PUUOO/ARCHIVELOG/2013_09_12/thread_1_seq_20.455.825900597 thread=1 sequence=20
- media recovery complete, elapsed time: 00:00:05
- Finished recover at 2013-09-12 00:50:11
- Oracle instance started
- Total System Global Area 2505338880 bytes
- Fixed Size 2684688 bytes
- Variable Size 721422576 bytes
- Database Buffers 1761607680 bytes
- Redo Buffers 19623936 bytes
- contents of Memory Script:
- {
- sql clone "alter system set db_name =
- ''PUUOO'' comment=
- ''Reset to original value by RMAN'' scope=spfile";
- sql clone "alter system reset db_unique_name scope=spfile";
- }
- executing Memory Script
- sql statement: alter system set db_name = ''PUUOO'' comment= ''Reset to original value by RMAN'' scope=spfile
- sql statement: alter system reset db_unique_name scope=spfile
- Oracle instance started
- Total System Global Area 2505338880 bytes
- Fixed Size 2684688 bytes
- Variable Size 721422576 bytes
- Database Buffers 1761607680 bytes
- Redo Buffers 19623936 bytes
- sql statement: CREATE CONTROLFILE REUSE SET DATABASE "PUUOO" RESETLOGS ARCHIVELOG
- MAXLOGFILES 16
- MAXLOGMEMBERS 3
- MAXDATAFILES 100
- MAXINSTANCES 8
- MAXLOGHISTORY 292
- LOGFILE
- GROUP 1 SIZE 50 M ,
- GROUP 2 SIZE 50 M ,
- GROUP 3 SIZE 50 M
- DATAFILE
- '+DATA/PUUOO/DATAFILE/system.440.825900463'
- CHARACTER SET AL32UTF8
- contents of Memory Script:
- {
- set newname for clone tempfile 1 to new;
- switch clone tempfile all;
- catalog clone datafilecopy "+DATA/PUUOO/DATAFILE/sysaux.412.825900465",
- "+DATA/PUUOO/DATAFILE/undotbs1.456.825900465",
- "+DATA/PUUOO/DATAFILE/users.457.825900485";
- switch clone datafile all;
- }
- executing Memory Script
- executing command: SET NEWNAME
- renamed tempfile 1 to +DATA in control file
- cataloged datafile copy
- datafile copy file name=+DATA/PUUOO/DATAFILE/sysaux.412.825900465 RECID=1 STAMP=825900655
- cataloged datafile copy
- datafile copy file name=+DATA/PUUOO/DATAFILE/undotbs1.456.825900465 RECID=2 STAMP=825900655
- cataloged datafile copy
- datafile copy file name=+DATA/PUUOO/DATAFILE/users.457.825900485 RECID=3 STAMP=825900656
- datafile 3 switched to datafile copy
- input datafile copy RECID=1 STAMP=825900655 file name=+DATA/PUUOO/DATAFILE/sysaux.412.825900465
- datafile 4 switched to datafile copy
- input datafile copy RECID=2 STAMP=825900655 file name=+DATA/PUUOO/DATAFILE/undotbs1.456.825900465
- datafile 6 switched to datafile copy
- input datafile copy RECID=3 STAMP=825900656 file name=+DATA/PUUOO/DATAFILE/users.457.825900485
- contents of Memory Script:
- {
- Alter clone database open resetlogs;
- }
- executing Memory Script
- database opened
- Finished Duplicate Db at 2013-09-12 00:52:02
- released channel: c00
- released channel: c01
- released channel: c02
- released channel: c03
- Recovery Manager complete.
Advertisement
Add Comment
Please, Sign In to add comment