Hi,
Sometimes You can get “RMAN-20004: target database name does not match name in recovery catalog ” error.
Details of error are as follows.
RMAN-20004: target database name does not match name in recovery catalog
Cause: name of the target database doesn’t match the one stored in the recovery catalog
Action: This is an internal error.
This error is related with the catalog database.
To solve this error, connect catalog database and run the unregister and register database again.
connect catalog user/pwd@CATALOG_DB connect target / RMAN> unregister database; RMAN> register database;
Do you want to learn more details about RMAN, then read the following articles.
https://ittutorial.org/rman-backup-restore-and-recovery-tutorials-for-beginners-in-the-oracle-database/