podczas zabaw z restorem można trafić na RMAN-20003 (ustawiamy żądanego scn-a):
Starting recover at 2022-05-04 17:50:46
released channel: ch1
released channel: ch2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 05/04/2022 17:50:46
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20003: target database incarnation not found in recovery catalog
RMAN> list incarnation;
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 baza 2326959724 PARENT 1 2017-01-12 13:09:00
2 2 baza 2326959724 CURRENT 6974703964827 2022-05-04 12:39:48
RMAN> RESET DATABASE TO INCARNATION 1;
database reset to incarnation 1
RMAN>
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 baza 2326959724 CURRENT 1 2017-01-12 13:09:00
2 2 baza 2326959724 ORPHAN 6974703964827 2022-05-04 12:39:48
ponawiamy restora