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

Oracle Error Message

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

Reason for the Error

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

Solution

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.