RMAN> list incarnation of database;
List of Database Incarnations DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time ------- ------- -------- ---------------- --- ---------- ---------- 1 1 ORACLE19 3393293106 PARENT 1 2019/04/17:00:55:59 2 2 ORACLE19 3393293106 PARENT 1920977 2025/09/29:11:22:31 3 3 ORACLE19 3393293106 PARENT 3467016 2025/09/30:10:24:26 4 4 ORACLE19 3393293106 PARENT 3467841 2025/09/30:10:31:15 5 5 ORACLE19 3393293106 PARENT 3571668 2025/09/30:11:28:03 6 6 ORACLE19 3393293106 PARENT 3573418 2025/09/30:11:57:29 7 7 ORACLE19 3393293106 PARENT 3776147 2025/09/30:14:23:41 8 8 ORACLE19 3393293106 CURRENT 3782141 2025/09/30:15:00:03
RMAN> reset database to incarnation 7;
database reset to incarnation 7
RMAN> run { set until time='2025/09/30:14:24:00' ; restore database; recover database; } 2> 3> 4>
executing command: SET until clause
Starting restore at 2025/09/30:15:10:43 using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/ORACLE19/system01.dbf channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/ORACLE19/ts834b.dbf channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/ORACLE19/sysaux01.dbf channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/ORACLE19/undotbs01.dbf channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/ORACLE19/ts834.dbf channel ORA_DISK_1: restoring datafile 00007 to /u01/app/oracle/oradata/ORACLE19/users01.dbf channel ORA_DISK_1: restoring datafile 00008 to /u01/app/oracle/oradata/ORACLE19/ts899.dbf channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/ORACLE19/backupset/2025_09_30/o1_mf_nnndf_TAG20250930T120043_nfpkyw8n_.bkp channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/ORACLE19/backupset/2025_09_30/o1_mf_nnndf_TAG20250930T120043_nfpkyw8n_.bkp tag=TAG20250930T120043 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:25 Finished restore at 2025/09/30:15:11:08
Starting recover at 2025/09/30:15:11:08 using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 2 is already on disk as file /u01/app/oracle/fast_recovery_area/ORACLE19/archivelog/2025_09_30/o1_mf_1_2_nfprg0tj_.arc archived log for thread 1 with sequence 3 is already on disk as file /u01/app/oracle/fast_recovery_area/ORACLE19/archivelog/2025_09_30/o1_mf_1_3_nfptbxlz_.arc archived log for thread 1 with sequence 1 is already on disk as file /u01/app/oracle/fast_recovery_area/ORACLE19/archivelog/2025_09_30/o1_mf_1_1_nfpvxcx8_.arc archived log file name=/u01/app/oracle/fast_recovery_area/ORACLE19/archivelog/2025_09_30/o1_mf_1_2_nfprg0tj_.arc thread=1 sequence=2 archived log file name=/u01/app/oracle/fast_recovery_area/ORACLE19/archivelog/2025_09_30/o1_mf_1_3_nfptbxlz_.arc thread=1 sequence=3 archived log file name=/u01/app/oracle/fast_recovery_area/ORACLE19/archivelog/2025_09_30/o1_mf_1_1_nfpvxcx8_.arc thread=1 sequence=1 media recovery complete, elapsed time: 00:00:02 Finished recover at 2025/09/30:15:11:10
RMAN> alter database open resetlogs;
Statement processed
RMAN> exit
Recovery Manager complete. [oracle@ora19c ~]$ oracle19
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Sep 30 15:12:00 2025 Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0
15:12:00 SYS @ oracle19 > @datafile
FILE_ID TABLESPACE_NAME ---------- ------------------------------ FILE_NAME -------------------------------------------------------------------------------- 1 SYSTEM /u01/app/oracle/oradata/ORACLE19/system01.dbf
2 TS834 /u01/app/oracle/oradata/ORACLE19/ts834b.dbf
3 SYSAUX /u01/app/oracle/oradata/ORACLE19/sysaux01.dbf
FILE_ID TABLESPACE_NAME ---------- ------------------------------ FILE_NAME -------------------------------------------------------------------------------- 4 UNDOTBS1 /u01/app/oracle/oradata/ORACLE19/undotbs01.dbf
5 TS834 /u01/app/oracle/oradata/ORACLE19/ts834.dbf
7 USERS /u01/app/oracle/oradata/ORACLE19/users01.dbf
FILE_ID TABLESPACE_NAME ---------- ------------------------------ FILE_NAME -------------------------------------------------------------------------------- 8 TS899 /u01/app/oracle/oradata/ORACLE19/ts899.dbf
7 rows selected.
Elapsed: 00:00:00.00 15:12:03 SYS @ oracle19 > list incarnation of database; SP2-0224: invalid starting line number 15:12:55 SYS @ oracle19 > exit Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 [oracle@ora19c ~]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Tue Sep 30 15:13:07 2025 Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORACLE19 (DBID=3393293106)
RMAN> list incarnation of database;
using target database control file instead of recovery catalog
List of Database Incarnations DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time ------- ------- -------- ---------------- --- ---------- ---------- 1 1 ORACLE19 3393293106 PARENT 1 2019/04/17:00:55:59 2 2 ORACLE19 3393293106 PARENT 1920977 2025/09/29:11:22:31 3 3 ORACLE19 3393293106 PARENT 3467016 2025/09/30:10:24:26 4 4 ORACLE19 3393293106 PARENT 3467841 2025/09/30:10:31:15 5 5 ORACLE19 3393293106 PARENT 3571668 2025/09/30:11:28:03 6 6 ORACLE19 3393293106 PARENT 3573418 2025/09/30:11:57:29 7 7 ORACLE19 3393293106 PARENT 3776147 2025/09/30:14:23:41 9 9 ORACLE19 3393293106 CURRENT 3776999 2025/09/30:15:11:41 8 8 ORACLE19 3393293106 ORPHAN 3782141 2025/09/30:15:00:03
RMAN> |