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>