ORA-01190: control fil…
来源:互联网 发布:大乐透,简单公式算法 编辑:程序博客网 时间:2024/05/22 02:01
open resetlogs后使用旧的备份的控制文件恢复控制文件,打开报错
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified forRDBMS 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 lastRESETLOGS
ORA-01110: data file 1: '/share/oradata2/d1.dbf'
Oracle社区,君子所见略同:
看来只能重建控制文件了
3. Re: control file or data file 1 is from before the lastRESETLOGS
Titan
BPeaslandDBA 2015-1-20 上午9:36 (回复 user13389359)
The error is saying that at some point in time, you performedan OPEN RESETLOGS option. The control file you are currently usingis 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 othercopies are more recent. If so, then you can simply copy one of themto 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 CREATECONTROLFILE command. And you may have to apply incompleterecovery.
I make it a best practice to take a backup after the OPENRESETLOGS command is issued. This way, I don'thave to worry about situations just like this.
Also, before you go and create a new control file if that isthe way you want to recover from this error, I highly recommendthat you back up everything before you begin. That way, ifsomething goes wrong, you can always get back to this point in timeand try again.
Once you have everything back up and running, make sure youget a good backup of the entire database.
HTH,
Brian
SQL> @TEST3_Con.sql
CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS FORCELOGGING 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 forRDBMS 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 fordatabase open
SQL> alter database open RESETLOGS;
Database altered.
SQL> desc scott.test0814
SQL>
0 0
- ORA-01190: control fil…
- ORA-00245: control fil…
- OMF(Oracle Managed Fil…
- What is a Perforce "shelved" fil…
- ORA-16014,接着 …
- Error: ORA-1505…
- ORA-03137: TTC …
- ORA-00700: soft internal error, …
- ORA-02778 : Name given for the l…
- ORA-00600: internal er…
- 错误:ORA-28002: the …
- ORA-00265: instance re…
- ORA-00494: enqueue [CF…
- ORA-16433 The database…
- ORA-12709: error while…
- ORA-16179: incremental&nbsp…
- ORA-29702: error occur…
- ORA-27101: shared memo…
- Oracle 左连接、左外连接,右连接…
- TNS-01192: Missing SID…
- SQL优化案例150811
- shell学习
- SQL优化案例150812
- ORA-01190: control fil…
- 第三方应用处理ios上是否安装微信登录
- 丢失(移动)数据文件后的故障表现
- Java性能调优技巧
- Easy-2
- ORA-00845: MEMORY_TARGET&nb…
- MERGE JOIN CARTESIAN 优化…
- 关于11g+的统计信息收集
- 关于Oracle 补充日志