$ rman target=/ Recovery Manager: Release 12.1.0.1.0 - Production on Thu Dec 26 17:08:05 2013 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. connected to target database: DB12C (DBID=1289223812) RMAN> RECOVER TABLE 'TEST'.'T1' UNTIL SCN 1853267 AUXILIARY DESTINATION '/u01/aux' REMAP TABLE 'TEST'.'T1':'T1_PREV'; Starting recover at 26-DEC-13 using target database control file instead of recovery catalog current log archived allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=30 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='uzvd' initialization parameters used for automatic instance: db_name=DB12C db_unique_name=uzvd_pitr_DB12C compatible=12.1.0.0.0 db_block_size=8192 db_files=200 sga_target=1G processes=80 diagnostic_dest=/u01/app/oracle db_create_file_dest=/u01/aux log_archive_dest_1='location=/u01/aux' #No auxiliary parameter file used starting up automatic instance DB12C Oracle instance started Total System Global Area 1068937216 bytes Fixed Size 2296576 bytes Variable Size 281019648 bytes Database Buffers 780140544 bytes Redo Buffers 5480448 bytes Automatic instance created contents of Memory Script: { # set requested point in time set until scn 1853267; # 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 26-DEC-13 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=11 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 /u01/app/oracle/fast_recovery_area/DB12C/autobackup/2013_12_26/o1_mf_s_835203240_9crqs93z_.bkp channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/DB12C/autobackup/2013_12_26/o1_mf_s_835203240_9crqs93z_.bkp tag=TAG20131226T165400 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01 output file name=/u01/aux/DB12C/controlfile/o1_mf_9crromyr_.ctl Finished restore at 26-DEC-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 scn 1853267; # set destinations for recovery set and auxiliary set datafiles set newname for clone datafile 1 to new; set newname for clone datafile 4 to new; set newname for clone datafile 3 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, 4, 3; 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 /u01/aux/DB12C/datafile/o1_mf_temp_%u_.tmp in control file Starting restore at 26-DEC-13 using channel ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: restoring datafile 00001 input datafile copy RECID=1 STAMP=835203194 file name=/u01/app/oracle/fast_recovery_area/DB12C/datafile/o1_mf_system_9crqq7tj_.dbf destination for restore of datafile 00001: /u01/aux/DB12C/datafile/o1_mf_system_%u_.dbf channel ORA_AUX_DISK_1: copied datafile copy of datafile 00001 output file name=/u01/aux/DB12C/datafile/o1_mf_system_9crrox6z_.dbf RECID=5 STAMP=835204186 channel ORA_AUX_DISK_1: restoring datafile 00004 input datafile copy RECID=3 STAMP=835203231 file name=/u01/app/oracle/fast_recovery_area/DB12C/datafile/o1_mf_undotbs1_9crqrtww_.dbf destination for restore of datafile 00004: /u01/aux/DB12C/datafile/o1_mf_undotbs1_%u_.dbf channel ORA_AUX_DISK_1: copied datafile copy of datafile 00004 output file name=/u01/aux/DB12C/datafile/o1_mf_undotbs1_9crrq0jt_.dbf RECID=6 STAMP=835204197 channel ORA_AUX_DISK_1: restoring datafile 00003 input datafile copy RECID=2 STAMP=835203221 file name=/u01/app/oracle/fast_recovery_area/DB12C/datafile/o1_mf_sysaux_9crqr1k4_.dbf destination for restore of datafile 00003: /u01/aux/DB12C/datafile/o1_mf_sysaux_%u_.dbf channel ORA_AUX_DISK_1: copied datafile copy of datafile 00003 output file name=/u01/aux/DB12C/datafile/o1_mf_sysaux_9crrq7q2_.dbf RECID=7 STAMP=835204236 Finished restore at 26-DEC-13 datafile 1 switched to datafile copy input datafile copy RECID=8 STAMP=835204245 file name=/u01/aux/DB12C/datafile/o1_mf_system_9crrox6z_.dbf datafile 4 switched to datafile copy input datafile copy RECID=9 STAMP=835204245 file name=/u01/aux/DB12C/datafile/o1_mf_undotbs1_9crrq0jt_.dbf datafile 3 switched to datafile copy input datafile copy RECID=10 STAMP=835204245 file name=/u01/aux/DB12C/datafile/o1_mf_sysaux_9crrq7q2_.dbf contents of Memory Script: { # set requested point in time set until scn 1853267; # online the datafiles restored or switched sql clone "alter database datafile 1 online"; sql clone "alter database datafile 4 online"; sql clone "alter database datafile 3 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 4 online sql statement: alter database datafile 3 online Starting recover at 26-DEC-13 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 10 is already on disk as file /u01/app/oracle/fast_recovery_area/DB12C/archivelog/2013_12_26/o1_mf_1_10_9crrn5od_.arc channel ORA_AUX_DISK_1: starting archived log restore to default destination channel ORA_AUX_DISK_1: restoring archived log archived log thread=1 sequence=9 channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/DB12C/backupset/2013_12_26/o1_mf_annnn_DB12C_INCR_BACKUP_9crqs5hv_.bkp channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/DB12C/backupset/2013_12_26/o1_mf_annnn_DB12C_INCR_BACKUP_9crqs5hv_.bkp tag=DB12C_INCR_BACKUP channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03 archived log file name=/u01/aux/1_9_835199044.dbf thread=1 sequence=9 archived log file name=/u01/app/oracle/fast_recovery_area/DB12C/archivelog/2013_12_26/o1_mf_1_10_9crrn5od_.arc thread=1 sequence=10 media recovery complete, elapsed time: 00:00:03 Finished recover at 26-DEC-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 = ''/u01/aux/DB12C/controlfile/o1_mf_9crromyr_.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 2296576 bytes Variable Size 285213952 bytes Database Buffers 775946240 bytes Redo Buffers 5480448 bytes sql statement: alter system set control_files = ''/u01/aux/DB12C/controlfile/o1_mf_9crromyr_.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 2296576 bytes Variable Size 285213952 bytes Database Buffers 775946240 bytes Redo Buffers 5480448 bytes sql statement: alter database mount clone database contents of Memory Script: { # set requested point in time set until scn 1853267; # set destinations for recovery set and auxiliary set datafiles set newname for datafile 6 to new; # restore the tablespaces in the recovery set and the auxiliary set restore clone datafile 6; switch clone datafile all; } executing Memory Script executing command: SET until clause executing command: SET NEWNAME Starting restore at 26-DEC-13 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=11 device type=DISK channel ORA_AUX_DISK_1: restoring datafile 00006 input datafile copy RECID=4 STAMP=835203234 file name=/u01/app/oracle/fast_recovery_area/DB12C/datafile/o1_mf_users_9crqs296_.dbf destination for restore of datafile 00006: /u01/aux/UZVD_PITR_DB12C/datafile/o1_mf_users_%u_.dbf channel ORA_AUX_DISK_1: copied datafile copy of datafile 00006 output file name=/u01/aux/UZVD_PITR_DB12C/datafile/o1_mf_users_9crrv620_.dbf RECID=11 STAMP=835204326 Finished restore at 26-DEC-13 datafile 6 switched to datafile copy input datafile copy RECID=12 STAMP=835204327 file name=/u01/aux/UZVD_PITR_DB12C/datafile/o1_mf_users_9crrv620_.dbf contents of Memory Script: { # set requested point in time set until scn 1853267; # online the datafiles restored or switched sql clone "alter database datafile 6 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 6 online Starting recover at 26-DEC-13 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 10 is already on disk as file /u01/app/oracle/fast_recovery_area/DB12C/archivelog/2013_12_26/o1_mf_1_10_9crrn5od_.arc channel ORA_AUX_DISK_1: starting archived log restore to default destination channel ORA_AUX_DISK_1: restoring archived log archived log thread=1 sequence=9 channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/DB12C/backupset/2013_12_26/o1_mf_annnn_DB12C_INCR_BACKUP_9crqs5hv_.bkp channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/DB12C/backupset/2013_12_26/o1_mf_annnn_DB12C_INCR_BACKUP_9crqs5hv_.bkp tag=DB12C_INCR_BACKUP channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03 archived log file name=/u01/aux/1_9_835199044.dbf thread=1 sequence=9 channel clone_default: deleting archived log(s) archived log file name=/u01/aux/1_9_835199044.dbf RECID=3 STAMP=835204332 archived log file name=/u01/app/oracle/fast_recovery_area/DB12C/archivelog/2013_12_26/o1_mf_1_10_9crrn5od_.arc thread=1 sequence=10 media recovery complete, elapsed time: 00:00:02 Finished recover at 26-DEC-13 database opened contents of Memory Script: { # create directory for datapump import sql "create or replace directory TSPITR_DIROBJ_DPDIR as '' /u01/aux''"; # create directory for datapump export sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as '' /u01/aux''"; } executing Memory Script sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/u01/aux'' sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/u01/aux'' Performing export of tables... EXPDP> Starting "SYS"."TSPITR_EXP_uzvd_tzkC": 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 "TEST"."T1" 5.023 KB 1 rows EXPDP> Master table "SYS"."TSPITR_EXP_uzvd_tzkC" successfully loaded/unloaded EXPDP> ****************************************************************************** EXPDP> Dump file set for SYS.TSPITR_EXP_uzvd_tzkC is: EXPDP> /u01/aux/tspitr_uzvd_25551.dmp EXPDP> Job "SYS"."TSPITR_EXP_uzvd_tzkC" successfully completed at Thu Dec 26 17:14:39 2013 elapsed 0 00:01:02 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_uzvd_EgbA" successfully loaded/unloaded IMPDP> Starting "SYS"."TSPITR_IMP_uzvd_EgbA": IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA IMPDP> . . imported "TEST"."T1_PREV" 5.023 KB 1 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_uzvd_EgbA" successfully completed at Thu Dec 26 17:15:19 2013 elapsed 0 00:00:14 Import completed Removing automatic instance Automatic instance removed auxiliary instance file /u01/aux/DB12C/datafile/o1_mf_temp_9crrs2rj_.tmp deleted auxiliary instance file /u01/aux/UZVD_PITR_DB12C/onlinelog/o1_mf_3_9crrvl4d_.log deleted auxiliary instance file /u01/aux/UZVD_PITR_DB12C/onlinelog/o1_mf_2_9crrvk6g_.log deleted auxiliary instance file /u01/aux/UZVD_PITR_DB12C/onlinelog/o1_mf_1_9crrvhxc_.log deleted auxiliary instance file /u01/aux/UZVD_PITR_DB12C/datafile/o1_mf_users_9crrv620_.dbf deleted auxiliary instance file /u01/aux/DB12C/datafile/o1_mf_sysaux_9crrq7q2_.dbf deleted auxiliary instance file /u01/aux/DB12C/datafile/o1_mf_undotbs1_9crrq0jt_.dbf deleted auxiliary instance file /u01/aux/DB12C/datafile/o1_mf_system_9crrox6z_.dbf deleted auxiliary instance file /u01/aux/DB12C/controlfile/o1_mf_9crromyr_.ctl deleted auxiliary instance file tspitr_uzvd_25551.dmp deleted Finished recover at 26-DEC-13 RMAN>