Oracle Solution for Error ora-01177

Solution for Oracle Error ORA-01177

ORA-01177: data file does not match dictionary - probably old incarnation

What triggered the Error:

When comparing the control file with the data dictionary after a CREATE CONTROLFILE or OPEN RESETLOGS, it was noted that this datafile was inconsistent with the dictionary. Most likely the file is a backup of a file that was dropped from the database, and the same file number was reused for a new file. It may also be that an incomplete recovery stopped at a time when this file number was used for another datafile.

What should we do to fix it:

Do a CREATE CONTROLFILE with the correct file or none at all.