oracle01565与27037,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/,如需转载,请注明出处,否则将追究法律责任。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值