Recovery Manager: Release 12.1.0.0.2 - Beta on Thu Jan 17 18:42:23 2013 Copyright (c) 1982, 2012, Oracle and/or its affiliates. All rights reserved. connected to target database: XIFENFEI (DBID=1418921902) RMAN> 2> 3> 4> Starting recover at 17-JAN-13 using target database control file instead of recovery catalog current log archived allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=258 device type=DISK RMAN-05026: WARNING: presuming following set of tablespaces applies to specified Point-in-Time List of tablespaces expected to have UNDO segments Tablespace SYSTEM Tablespace UNDOTBS1 Creating automatic instance, with SID='bkhy' initialization parameters used for automatic instance: db_name=XIFENFEI db_unique_name=bkhy_pitr_XIFENFEI compatible=12.0.0.0.0 db_block_size=8192 db_files=200 sga_target=1G processes=80 db_create_file_dest=/tmp/recovertable log_archive_dest_1='location=/tmp/recovertable' #No auxiliary parameter file used starting up automatic instance XIFENFEI Oracle instance started Total System Global Area 1068937216 bytes Fixed Size 2268624 bytes Variable Size 281018928 bytes Database Buffers 780140544 bytes Redo Buffers 5509120 bytes Automatic instance created contents of Memory Script: { # set requested point in time set until time "to_date('2013-01-17 18:41:17','yyyy-mm-dd hh24:mi:ss')"; # restore the controlfile restore clone controlfile; # mount the controlfile sql clone 'alter database mount clone database'; # archive current online log sql 'alter system archive log current'; } executing Memory Script executing command: SET until clause Starting restore at 17-JAN-13 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=82 device type=DISK channel ORA_AUX_DISK_1: starting datafile backup set restore channel ORA_AUX_DISK_1: restoring control file channel ORA_AUX_DISK_1: reading from backup piece /tmp/xifenfei_db_08nvln3r_1_1 channel ORA_AUX_DISK_1: piece handle=/tmp/xifenfei_db_08nvln3r_1_1 tag=TAG20130117T183839 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03 output file name=/tmp/recovertable/XIFENFEI/controlfile/o1_mf_8hhofqnw_.ctl Finished restore at 17-JAN-13 sql statement: alter database mount clone database sql statement: alter system archive log current contents of Memory Script: { # set requested point in time set until time "to_date('2013-01-17 18:41:17','yyyy-mm-dd hh24:mi:ss')"; # set destinations for recovery set and auxiliary set datafiles set newname for clone datafile 1 to new; set newname for clone datafile 3 to new; set newname for clone datafile 2 to new; set newname for clone tempfile 1 to new; # switch all tempfiles switch clone tempfile all; # restore the tablespaces in the recovery set and the auxiliary set restore clone datafile 1, 3, 2; switch clone datafile all; } executing Memory Script executing command: SET until clause executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME renamed tempfile 1 to /tmp/recovertable/XIFENFEI/datafile/o1_mf_temp_%u_.tmp in control file Starting restore at 17-JAN-13 using channel ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: starting datafile backup set restore channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set channel ORA_AUX_DISK_1: restoring datafile 00001 to /tmp/recovertable/XIFENFEI/datafile/o1_mf_system_%u_.dbf channel ORA_AUX_DISK_1: restoring datafile 00003 to /tmp/recovertable/XIFENFEI/datafile/o1_mf_undotbs1_%u_.dbf channel ORA_AUX_DISK_1: restoring datafile 00002 to /tmp/recovertable/XIFENFEI/datafile/o1_mf_sysaux_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece /tmp/xifenfei_db_07nvln1g_1_1 channel ORA_AUX_DISK_1: piece handle=/tmp/xifenfei_db_07nvln1g_1_1 tag=TAG20130117T183839 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:01:35 Finished restore at 17-JAN-13 datafile 1 switched to datafile copy input datafile copy RECID=4 STAMP=804969889 file name=/tmp/recovertable/XIFENFEI/datafile/o1_mf_system_8hhog3x0_.dbf datafile 3 switched to datafile copy input datafile copy RECID=5 STAMP=804969889 file name=/tmp/recovertable/XIFENFEI/datafile/o1_mf_undotbs1_8hhog43h_.dbf datafile 2 switched to datafile copy input datafile copy RECID=6 STAMP=804969889 file name=/tmp/recovertable/XIFENFEI/datafile/o1_mf_sysaux_8hhog439_.dbf contents of Memory Script: { # set requested point in time set until time "to_date('2013-01-17 18:41:17','yyyy-mm-dd hh24:mi:ss')"; # online the datafiles restored or switched sql clone "alter database datafile 1 online"; sql clone "alter database datafile 3 online"; sql clone "alter database datafile 2 online"; # recover and open database read only recover clone database tablespace "SYSTEM", "UNDOTBS1", "SYSAUX"; sql clone 'alter database open read only'; } executing Memory Script executing command: SET until clause sql statement: alter database datafile 1 online sql statement: alter database datafile 3 online sql statement: alter database datafile 2 online Starting recover at 17-JAN-13 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 55 is already on disk as file /u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_55_8hho8y95_.arc archived log for thread 1 with sequence 56 is already on disk as file /u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_56_8hho9l3k_.arc archived log for thread 1 with sequence 57 is already on disk as file /u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_57_8hhodywq_.arc archived log file name=/u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_55_8hho8y95_.arc thread=1 sequence=55 archived log file name=/u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_56_8hho9l3k_.arc thread=1 sequence=56 archived log file name=/u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_57_8hhodywq_.arc thread=1 sequence=57 media recovery complete, elapsed time: 00:00:09 Finished recover at 17-JAN-13 sql statement: alter database open read only contents of Memory Script: { sql clone "create spfile from memory"; shutdown clone immediate; startup clone nomount; sql clone "alter system set control_files = ''/tmp/recovertable/XIFENFEI/controlfile/o1_mf_8hhofqnw_.ctl'' comment= ''RMAN set'' scope=spfile"; shutdown clone immediate; startup clone nomount; # mount database sql clone 'alter database mount clone database'; } executing Memory Script sql statement: create spfile from memory database closed database dismounted Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 1068937216 bytes Fixed Size 2268624 bytes Variable Size 285213232 bytes Database Buffers 775946240 bytes Redo Buffers 5509120 bytes sql statement: alter system set control_files = ''/tmp/recovertable/XIFENFEI/controlfile/o1_mf_8hhofqnw_.ctl'' comment= ''RMAN set'' scope=spfile Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 1068937216 bytes Fixed Size 2268624 bytes Variable Size 285213232 bytes Database Buffers 775946240 bytes Redo Buffers 5509120 bytes sql statement: alter database mount clone database contents of Memory Script: { # set requested point in time set until time "to_date('2013-01-17 18:41:17','yyyy-mm-dd hh24:mi:ss')"; # set destinations for recovery set and auxiliary set datafiles set newname for datafile 4 to new; # restore the tablespaces in the recovery set and the auxiliary set restore clone datafile 4; switch clone datafile all; } executing Memory Script executing command: SET until clause executing command: SET NEWNAME Starting restore at 17-JAN-13 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=82 device type=DISK channel ORA_AUX_DISK_1: starting datafile backup set restore channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set channel ORA_AUX_DISK_1: restoring datafile 00004 to /tmp/recovertable/BKHY_PITR_XIFENFEI/datafile/o1_mf_users_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece /tmp/xifenfei_db_07nvln1g_1_1 channel ORA_AUX_DISK_1: piece handle=/tmp/xifenfei_db_07nvln1g_1_1 tag=TAG20130117T183839 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:04 Finished restore at 17-JAN-13 datafile 4 switched to datafile copy input datafile copy RECID=8 STAMP=804969949 file name=/tmp/recovertable/BKHY_PITR_XIFENFEI/datafile/o1_mf_users_8hholtf9_.dbf contents of Memory Script: { # set requested point in time set until time "to_date('2013-01-17 18:41:17','yyyy-mm-dd hh24:mi:ss')"; # online the datafiles restored or switched sql clone "alter database datafile 4 online"; # recover and open resetlogs recover clone database tablespace "USERS", "SYSTEM", "UNDOTBS1", "SYSAUX" delete archivelog; alter clone database open resetlogs; } executing Memory Script executing command: SET until clause sql statement: alter database datafile 4 online Starting recover at 17-JAN-13 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 55 is already on disk as file /u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_55_8hho8y95_.arc archived log for thread 1 with sequence 56 is already on disk as file /u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_56_8hho9l3k_.arc archived log for thread 1 with sequence 57 is already on disk as file /u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_57_8hhodywq_.arc archived log file name=/u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_55_8hho8y95_.arc thread=1 sequence=55 archived log file name=/u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_56_8hho9l3k_.arc thread=1 sequence=56 archived log file name=/u01/app/oracle/fast_recovery_area/XIFENFEI/archivelog/2013_01_17/o1_mf_1_57_8hhodywq_.arc thread=1 sequence=57 media recovery complete, elapsed time: 00:00:01 Finished recover at 17-JAN-13 database opened contents of Memory Script: { # create directory for datapump import sql "create or replace directory TSPITR_DIROBJ_DPDIR as '' /tmp/recovertable''"; # create directory for datapump export sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as '' /tmp/recovertable''"; } executing Memory Script sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp/recovertable'' sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp/recovertable'' Performing export of tables... EXPDP> Starting "SYS"."TSPITR_EXP_bkhy_dani": EXPDP> Estimate in progress using BLOCKS method... EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA EXPDP> Total estimation using BLOCKS method: 64 KB EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER EXPDP> . . exported "XFF"."T_XIFENFEI" 5.507 KB 4 rows EXPDP> Master table "SYS"."TSPITR_EXP_bkhy_dani" successfully loaded/unloaded EXPDP> ****************************************************************************** EXPDP> Dump file set for SYS.TSPITR_EXP_bkhy_dani is: EXPDP> /tmp/recovertable/tspitr_bkhy_47984.dmp EXPDP> Job "SYS"."TSPITR_EXP_bkhy_dani" successfully completed at Thu Jan 17 18:47:05 2013 elapsed 0 00:00:45 Export completed contents of Memory Script: { # shutdown clone before import shutdown clone abort } executing Memory Script Oracle instance shut down Performing import of tables... IMPDP> Master table "SYS"."TSPITR_IMP_bkhy_houq" successfully loaded/unloaded IMPDP> Starting "SYS"."TSPITR_IMP_bkhy_houq": IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA IMPDP> . . imported "XFF"."T_XIFENFEI_NEW" 5.507 KB 4 rows IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER IMPDP> Job "SYS"."TSPITR_IMP_bkhy_houq" successfully completed at Thu Jan 17 18:47:37 2013 elapsed 0 00:00:15 Import completed Removing automatic instance Automatic instance removed auxiliary instance file /tmp/recovertable/XIFENFEI/datafile/o1_mf_temp_8hhokjz4_.tmp deleted auxiliary instance file /tmp/recovertable/BKHY_PITR_XIFENFEI/onlinelog/o1_mf_3_8hhom4h7_.log deleted auxiliary instance file /tmp/recovertable/BKHY_PITR_XIFENFEI/onlinelog/o1_mf_2_8hhom22k_.log deleted auxiliary instance file /tmp/recovertable/BKHY_PITR_XIFENFEI/onlinelog/o1_mf_1_8hhom065_.log deleted auxiliary instance file /tmp/recovertable/BKHY_PITR_XIFENFEI/datafile/o1_mf_users_8hholtf9_.dbf deleted auxiliary instance file /tmp/recovertable/XIFENFEI/datafile/o1_mf_sysaux_8hhog439_.dbf deleted auxiliary instance file /tmp/recovertable/XIFENFEI/datafile/o1_mf_undotbs1_8hhog43h_.dbf deleted auxiliary instance file /tmp/recovertable/XIFENFEI/datafile/o1_mf_system_8hhog3x0_.dbf deleted auxiliary instance file /tmp/recovertable/XIFENFEI/controlfile/o1_mf_8hhofqnw_.ctl deleted auxiliary instance file tspitr_bkhy_47984.dmp deleted Finished recover at 17-JAN-13 RMAN> Recovery Manager complete.