Oracle 在创建一个克隆数据库时ORA-01503 ORA-01161

如果自己搞不定可以找诗檀软件专业ORACLE数据库修复团队成员帮您恢复!

诗檀软件专业数据库修复团队

服务热线 : 13764045638 QQ号:47079569 邮箱:[email protected]

 

ORA-01503  oerr ora 1503
01503, 00000, "CREATE CONTROLFILE failed"
// *Cause:  An error occurred during CREATE CONTROLFILE
// *Action: See accompanying errors.

ORA-01161  oerr ora 1161
01161, 00000, "database name %s in file header does not match given name of %s"
// *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.

 

本文信息适用于:

Oracle RDBMS Server.

 

 

症状

———

 

在创建克隆数据库时,我们可能遇到ORA-01503 ORA-01161 错误。

1) 克隆数据库的创建。

2) 我们尝试将数据库名更改为其他名称。

3) 我们已crosscheck数据文件,且所有文件来自同一数据库。

4) 有了旧数据库名称,它运作没有任何问题。

5) 但当我们保持db_name=<new db name> ,我们遇到ORA-01503 ORA-01161 错误。

 

更改

——–

 

我们在使用控制文件脚本来重建控制文件。

其中它在控制文件创建失败。

 

 

原因

——

我们需要使用创建控制文件脚本中的子句SET DATABASE <new dbname>。

 

 

解决方法 (或)修正

——————-

我们要将创建控制文件脚本更改类似如下,

没有设置数据库 <newdbname> ,我们无法使用参数文件上设置的新db_name重建控制文件。

 

CREATE CONTROLFILE REUSE

SET DATABASE dbname

LOGFILE GROUP 1 (‘FILENAME’,’FILENAME2′) SIZE 50K,

GROUP 2 (‘FILENAME’,’FILENAME2′) SIZE 50K

RESETLOGS

DATAFILE ‘FILENAME’ SIZE 2M

 

参考

———–

 

Oracle8 Server SQL Reference

Oracle8 Server Reference

Oracle8 Server Administrator’s Guide


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *