问题描述:备份数据库报错 RMAN-20020: database incarnation not set
RMAN> backup database plus archivelog;
Starting backup at 22-OCT-19
current log archived
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 10/22/2019 04:57:39
RMAN-03014: implicit resync of recovery catalog failed
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20020: database incarnation not set
处理办法:取消注册重新向库中注册
RMAN> unregister database;
database name is “PROD2” and DBID is 1512727797
Do you really want to unregister the database (enter YES or NO)? yes
database unregistered from the recovery catalog
RMAN> reset database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of reset database command on default channel at 10/22/2019 05:04:57
RMAN-20001: target database not found in recovery catalog
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
最终备份成功
RMAN> backup database plus archivelog;
Starting backup at 22-OCT-19
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=19 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=146 device type=DISK