Oracle Error RMAN-05520: database name mismatch, auxiliary instance has string, command specified string

Oracle Error Message

RMAN-05520: database name mismatch, auxiliary instance has string, command specified string

Reason for the Error

The database name specified in the initialization parameter was not the same as the database name provided in the DUPLICATE command.

Solution

Correct the database name in the command or adjust the database name of the auxiliary instance.