Oracle Error RMAN-06189: current DBID number does not match target mounted database (number)

Oracle Error Message

RMAN-06189: current DBID number does not match target mounted database (number)

Reason for the Error

SET DBID was used to set a DBID that does not match the DBID of the database to which RMAN is connected.

Solution

If the current operation is a restore to copy the database, do not mount the database. Otherwise, avoid using the SET DBID command, or restart RMAN.