Oracle Error RMAN-06076: datafile string contains wrong datafile

Oracle Error Message

RMAN-06076: datafile string contains wrong datafile

Reason for the Error

The datafile header indicates the file contains a different datafile number.

Solution

RESTORE the datafile, and then retry the RECOVER command.