[oracle@cdb12c rmanbackup]$ rman target / Recovery Manager: Release 12.2.0.1.0 - Production on Sat Oct 10 00:07:04 2020 Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved. connected to target database: DB1 (DBID=1646212216) RMAN> RMAN> recover table faheem.temp1 until scn 1699874 2> auxiliary destination '/home/oracle/backup'; RMAN> recover table faheem.temp1 until scn 1699874 auxiliary destination '/home/oracle/backup'; Starting recover at 10-OCT-20 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=66 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='szkq' initialization parameters used for automatic instance: db_name=DB1 db_unique_name=szkq_pitr_DB1 compatible=12.2.0 db_block_size=8192 db_files=200 diagnostic_dest=/u01/app/oracle _system_trig_enabled=FALSE sga_target=2320M processes=200 db_create_file_dest=/home/oracle/backup log_archive_dest_1='location=/home/oracle/backup' #No auxiliary parameter file used starting up automatic instance DB1 Oracle instance started Total System Global Area 2432696320 bytes Fixed Size 8623592 bytes Variable Size 536873496 bytes Database Buffers 1879048192 bytes Redo Buffers 8151040 bytes Automatic instance created contents of Memory Script: { # set requested point in time set until scn 1699874; # 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 10-OCT-20 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=35 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/db1/DB1/autobackup/2020_10_10/o1_mf_s_1053389021_hr1jjxsy_.bkp channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/db1/DB1/autobackup/2020_10_10/o1_mf_s_1053389021_hr1jjxsy_.bkp tag=TAG20201010T000341 channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01 output file name=/home/oracle/backup/DB1/controlfile/o1_mf_hr1kpp3h_.ctl Finished restore at 10-OCT-20 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 1699874; # 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 /home/oracle/backup/DB1/datafile/o1_mf_temp_%u_.tmp in control file Starting restore at 10-OCT-20 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 00004 to /home/oracle/backup/DB1/datafile/o1_mf_undotbs1_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece /home/oracle/rmanbackup/db_1053388557_29_p1 channel ORA_AUX_DISK_1: piece handle=/home/oracle/rmanbackup/db_1053388557_29_p1 tag=COLD_RMAN_BACKUP channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03 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 00003 to /home/oracle/backup/DB1/datafile/o1_mf_sysaux_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece /home/oracle/rmanbackup/db_1053388557_28_p1 channel ORA_AUX_DISK_1: piece handle=/home/oracle/rmanbackup/db_1053388557_28_p1 tag=COLD_RMAN_BACKUP channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:35 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 /home/oracle/backup/DB1/datafile/o1_mf_system_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece /home/oracle/rmanbackup/db_1053388557_27_p1 channel ORA_AUX_DISK_1: piece handle=/home/oracle/rmanbackup/db_1053388557_27_p1 tag=COLD_RMAN_BACKUP channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:01:05 Finished restore at 10-OCT-20 datafile 1 switched to datafile copy input datafile copy RECID=4 STAMP=1053390343 file name=/home/oracle/backup/DB1/datafile/o1_mf_system_hr1kr5gq_.dbf datafile 4 switched to datafile copy input datafile copy RECID=5 STAMP=1053390343 file name=/home/oracle/backup/DB1/datafile/o1_mf_undotbs1_hr1kpyb2_.dbf datafile 3 switched to datafile copy input datafile copy RECID=6 STAMP=1053390343 file name=/home/oracle/backup/DB1/datafile/o1_mf_sysaux_hr1kq1g3_.dbf contents of Memory Script: { # set requested point in time set until scn 1699874; # 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 10-OCT-20 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 7 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_7_hr1jfxx2_.arc archived log for thread 1 with sequence 8 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_8_hr1jjrvn_.arc archived log for thread 1 with sequence 9 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_9_hr1jjvpv_.arc archived log for thread 1 with sequence 10 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_10_hr1jjvx9_.arc archived log for thread 1 with sequence 11 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_11_hr1joz3g_.arc archived log for thread 1 with sequence 12 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_12_hr1jp055_.arc archived log for thread 1 with sequence 13 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_13_hr1jp3yh_.arc archived log for thread 1 with sequence 14 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_14_hr1jp72z_.arc archived log for thread 1 with sequence 15 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_15_hr1jpf37_.arc archived log for thread 1 with sequence 16 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_16_hr1k7fqs_.arc archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_7_hr1jfxx2_.arc thread=1 sequence=7 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_8_hr1jjrvn_.arc thread=1 sequence=8 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_9_hr1jjvpv_.arc thread=1 sequence=9 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_10_hr1jjvx9_.arc thread=1 sequence=10 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_11_hr1joz3g_.arc thread=1 sequence=11 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_12_hr1jp055_.arc thread=1 sequence=12 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_13_hr1jp3yh_.arc thread=1 sequence=13 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_14_hr1jp72z_.arc thread=1 sequence=14 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_15_hr1jpf37_.arc thread=1 sequence=15 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_16_hr1k7fqs_.arc thread=1 sequence=16 media recovery complete, elapsed time: 00:00:02 Finished recover at 10-OCT-20 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 = ''/home/oracle/backup/DB1/controlfile/o1_mf_hr1kpp3h_.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 2432696320 bytes Fixed Size 8623592 bytes Variable Size 536873496 bytes Database Buffers 1879048192 bytes Redo Buffers 8151040 bytes sql statement: alter system set control_files = ''/home/oracle/backup/DB1/controlfile/o1_mf_hr1kpp3h_.ctl'' comment= ''RMAN set'' scope=spfile Oracle instance shut down connected to auxiliary database (not started) Oracle instance started Total System Global Area 2432696320 bytes Fixed Size 8623592 bytes Variable Size 536873496 bytes Database Buffers 1879048192 bytes Redo Buffers 8151040 bytes sql statement: alter database mount clone database contents of Memory Script: { # set requested point in time set until scn 1699874; # set destinations for recovery set and auxiliary set datafiles set newname for datafile 7 to new; # restore the tablespaces in the recovery set and the auxiliary set restore clone datafile 7; switch clone datafile all; } executing Memory Script executing command: SET until clause executing command: SET NEWNAME Starting restore at 10-OCT-20 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=35 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 00007 to /home/oracle/backup/SZKQ_PITR_DB1/datafile/o1_mf_users_%u_.dbf channel ORA_AUX_DISK_1: reading from backup piece /home/oracle/rmanbackup/db_1053388557_30_p1 channel ORA_AUX_DISK_1: piece handle=/home/oracle/rmanbackup/db_1053388557_30_p1 tag=COLD_RMAN_BACKUP channel ORA_AUX_DISK_1: restored backup piece 1 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03 Finished restore at 10-OCT-20 datafile 7 switched to datafile copy input datafile copy RECID=8 STAMP=1053390458 file name=/home/oracle/backup/SZKQ_PITR_DB1/datafile/o1_mf_users_hr1kxqg1_.dbf contents of Memory Script: { # set requested point in time set until scn 1699874; # online the datafiles restored or switched sql clone "alter database datafile 7 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 7 online Starting recover at 10-OCT-20 using channel ORA_AUX_DISK_1 starting media recovery archived log for thread 1 with sequence 7 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_7_hr1jfxx2_.arc archived log for thread 1 with sequence 8 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_8_hr1jjrvn_.arc archived log for thread 1 with sequence 9 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_9_hr1jjvpv_.arc archived log for thread 1 with sequence 10 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_10_hr1jjvx9_.arc archived log for thread 1 with sequence 11 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_11_hr1joz3g_.arc archived log for thread 1 with sequence 12 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_12_hr1jp055_.arc archived log for thread 1 with sequence 13 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_13_hr1jp3yh_.arc archived log for thread 1 with sequence 14 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_14_hr1jp72z_.arc archived log for thread 1 with sequence 15 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_15_hr1jpf37_.arc archived log for thread 1 with sequence 16 is already on disk as file /u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_16_hr1k7fqs_.arc archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_7_hr1jfxx2_.arc thread=1 sequence=7 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_8_hr1jjrvn_.arc thread=1 sequence=8 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_9_hr1jjvpv_.arc thread=1 sequence=9 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_10_hr1jjvx9_.arc thread=1 sequence=10 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_11_hr1joz3g_.arc thread=1 sequence=11 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_12_hr1jp055_.arc thread=1 sequence=12 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_13_hr1jp3yh_.arc thread=1 sequence=13 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_14_hr1jp72z_.arc thread=1 sequence=14 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_15_hr1jpf37_.arc thread=1 sequence=15 archived log file name=/u01/app/oracle/fast_recovery_area/db1/DB1/archivelog/2020_10_10/o1_mf_1_16_hr1k7fqs_.arc thread=1 sequence=16 media recovery complete, elapsed time: 00:00:02 Finished recover at 10-OCT-20 database opened contents of Memory Script: { # create directory for datapump import sql "create or replace directory TSPITR_DIROBJ_DPDIR as '' /home/oracle/backup''"; # create directory for datapump export sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as '' /home/oracle/backup''"; } executing Memory Script sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/home/oracle/backup'' sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/home/oracle/backup'' Performing export of tables... EXPDP> Starting "SYS"."TSPITR_EXP_szkq_pBex": EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE EXPDP> . . exported "FAHEEM"."TEMP1" 9.632 MB 72777 rows EXPDP> Master table "SYS"."TSPITR_EXP_szkq_pBex" successfully loaded/unloaded EXPDP> ****************************************************************************** EXPDP> Dump file set for SYS.TSPITR_EXP_szkq_pBex is: EXPDP> /home/oracle/backup/tspitr_szkq_99812.dmp EXPDP> Job "SYS"."TSPITR_EXP_szkq_pBex" successfully completed at Sat Oct 10 00:28:57 2020 elapsed 0 00:00:54 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_szkq_ujlF" successfully loaded/unloaded IMPDP> Starting "SYS"."TSPITR_IMP_szkq_ujlF": IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA IMPDP> . . imported "FAHEEM"."TEMP1" 9.632 MB 72777 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_szkq_ujlF" successfully completed at Sat Oct 10 00:29:41 2020 elapsed 0 00:00:30 Import completed Removing automatic instance Automatic instance removed auxiliary instance file /home/oracle/backup/DB1/datafile/o1_mf_temp_hr1ktfmx_.tmp deleted auxiliary instance file /home/oracle/backup/SZKQ_PITR_DB1/onlinelog/o1_mf_3_hr1ky1y8_.log deleted auxiliary instance file /home/oracle/backup/SZKQ_PITR_DB1/onlinelog/o1_mf_2_hr1kxzov_.log deleted auxiliary instance file /home/oracle/backup/SZKQ_PITR_DB1/onlinelog/o1_mf_1_hr1kxzos_.log deleted auxiliary instance file /home/oracle/backup/SZKQ_PITR_DB1/datafile/o1_mf_users_hr1kxqg1_.dbf deleted auxiliary instance file /home/oracle/backup/DB1/datafile/o1_mf_sysaux_hr1kq1g3_.dbf deleted auxiliary instance file /home/oracle/backup/DB1/datafile/o1_mf_undotbs1_hr1kpyb2_.dbf deleted auxiliary instance file /home/oracle/backup/DB1/datafile/o1_mf_system_hr1kr5gq_.dbf deleted auxiliary instance file /home/oracle/backup/DB1/controlfile/o1_mf_hr1kpp3h_.ctl deleted auxiliary instance file tspitr_szkq_99812.dmp deleted Finished recover at 10-OCT-20 RMAN>