ORA-01161: database name string in file header does not match given name of string
Cause: The database name given at the command line does not match the database name found in the file header.
Action: 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.
ORA-01161的意思是:数据库文件头中的数据库名称与给定的名称不匹配。
ORA-01161:database name in file string does not match given name string
Cause: The file header information does not match name information given in the CREATE DATABASE command.
Action: Change the name in the CREATE DATABASE command to match the name in the file header.
ORA-01161可能是在尝试创建新数据库或会话时发生的错误,其中提供的数据库名称与数据文件头中的名称不匹配。它也可能出现在将未正确关闭的数据库文件复制后重新创建数据库时。
1.打开文件查看详细信息
2.查看数据文件头上的数据库名称。
3.使用具有新给定名称的CREATE DATABASE语句重新创建数据库。