Oracle Solution for Error ora-01161

Solution for Oracle Error ORA-01161

ORA-01161: database name string in file header does not match given name of string

What triggered the Error:

The database name given at the command line does not match the database name found in the file header.

What should we do to fix it:

Chance are good that the database name specified at the command line is incorrect. Resolve the descepency, and resubmit the command. If you are attempting to change the database name, be sure to use the SET DATABASE option.