oracle create controlfile报 ORA-01503 ORA-01565 ORA-27037

如果一个很常规的操作报错找不到原因,并且在mos中搜索不到,那很可能就是犯了低级错误,呵,下面就是.

在重建控制文件
CREATE CONTROLFILE REUSE DATABASE "DBTEST" NORESETLOGS  ARCHIVELOG
...
时报以下错误:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '/data/u02/oradata/dbtest/system01.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3

这个报错的信息告诉你,create controlfile的时候要去读数据文件的信息,而此时如果数据文件不存在,或不可访问就会报这个错.
刚开始不确定create controlfile时会去读数据文件信息,所以怀疑是报错信息不准确,一直以为是create controlfile语句的语法错误.

最后查create controlfile的说明,http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_5003.htm#SQLRF01203,看到
DATAFILE Clause
Specify the data files of the database. You must list all data files. These files must all exist, although they may be restored backups that require media recovery.
Do not include in the DATAFILE clause any data files in read-only tablespaces. You can add these types of files to the database later. Also, do not include in this clause any temporary data files (temp files).
才发现,原来create controlfile时数据文件就要存在了,而且是可访问的.


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28539951/viewspace-2089459/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28539951/viewspace-2089459/

你可能感兴趣的:(oracle create controlfile报 ORA-01503 ORA-01565 ORA-27037)