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
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.