Oracle Solution for Error ora-01229

Solution for Oracle Error ORA-01229

ORA-01229: data file string is inconsistent with logs

What triggered the Error:

The data file in the accompanying error is inconsistent with the contents of the logs given in the CREATE CONTROLFILE command. The most likely cause is that one or more of the online logs was missing from the command. It is also possible that one or more of the logs is an old copy rather than the current version. All online log files must be listed in the command and must be the current versions of the online logs.

What should we do to fix it:

Find the correct online logs or use the RESETLOGS option.