Oracle Error RMAN-06738: database name “string” is not unique in the recovery catalog

Oracle Error Message

RMAN-06738: database name “string” is not unique in the recovery catalog

Reason for the Error

The UNREGISTER DATABASE command was used with a database name that is ambiguous.

Solution

Use the SET DBID command to specify the database id and resolve the ambiguity.