ORA-01190: control fil…


open resetlogs后使用旧的备份的控制文件恢复控制文件,打开报错

SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.

Total System Global Area 5346328576 bytes
Fixed Size                   2168728 bytes
Variable Size             2264926312 bytes
Database Buffers         3053453312 bytes
Redo Buffers               25780224 bytes
Database mounted.
ORA-01190: control file or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: '/share/oradata2/d1.dbf'




Oracle社区,君子所见略同:

看来只能重建控制文件了

3. Re: control file or data file 1 is from before the last RESETLOGS
  BPeaslandDBA
Titan
BPeaslandDBA 2015-1-20 上午9:36 (回复 user13389359)
The error is saying that at some point in time, you performed an OPEN RESETLOGS option. The control file you are currently using is from prior to that time and the datafiles are after that time. You need a more current control file.
 
If you multiplex your control files, check to see if the other copies are more recent. If so, then you can simply copy one of them to replace this one.
 
If all else fails, you can manually create the controlfiles. This part of the docs describes the process:   http://docs.oracle.com/cd/B28359_01/server.111/b28310/control003.htm#ADMIN11289
 
You will need to supply all of the info to the CREATE CONTROLFILE command. And you may have to apply incomplete recovery.
 
I make it a best practice to take a backup after the OPEN RESETLOGS   command is issued. This way, I don't have to worry about situations just like this.
 
Also, before you go and create a new control file if that is the way you want to recover from this error, I highly recommend that you back up everything before you begin. That way, if something goes wrong, you can always get back to this point in time and try again.
 
Once you have everything back up and running, make sure you get a good backup of the entire database.
 
HTH,
Brian







SQL> @TEST3_Con.sql
CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS FORCE LOGGING ARCHIVELOG
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01100: database already mounted


SQL> shutdown
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.

Total System Global Area 5346328576 bytes
Fixed Size                   2168728 bytes
Variable Size             2264926312 bytes
Database Buffers         3053453312 bytes
Redo Buffers               25780224 bytes
SQL>   @TEST3_Con.sql

Control file created.

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open


SQL> alter database open RESETLOGS;

Database altered.

SQL>   desc scott.test0814
  Name                                       Null?     Type
  ----------------------------------------- -------- ----------------------------
  ID                                                 NUMBER

SQL>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值