Oracle Error RMAN-06569: DATABASE: string does not match previous DATABASE: string

Oracle Error Message

RMAN-06569: DATABASE: string does not match previous DATABASE: string

Reason for the Error

SET DBID or SET DATABASE was used to specify the target database name which does not match specified database name in DUPLICATE command.

Solution

Verify that the correct DBID or the correct DATABASE was specified or avoid specifying DATABASE in DUPLICATE command.