Oracle Error RMAN-06077: datafile string is a different version than contained in the control file

Oracle Error Message

RMAN-06077: datafile string is a different version than contained in the control file

Reason for the Error

The control file entry for this datafile specifies a different version of this datafile. Different versions of a datafile can exist when a tablespace is dropped, and a new tablespace is created which reuses the same datafile numbers.

Solution

If the datafile is correct, the fix the control file by using the SWITCH command. Otherwise, RESTORE the correct version of this datafile and retry the RECOVER command.