In this Document
Symptoms
Cause
Solution
Platforms: 1-914CU;
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review. |
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.5 and later [Release: 9.2 and later ]
Information in this document applies to any platform.
Symptoms
After putting database is backup mode and copying over the files and recreating the controlfile and applying several archivelogs to get beyond the database being in backup mode, an error was received when trying to open the database with resetlogs:
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/oracle/PRDDAT/DATA1/tables/PRDDAT.SYSTEM.data1.dbf'
The following queries resulted in:
select distinct(fhscn) from x$kcvfh;
just one value
select distinct(fhsta) from x$kcvfh;
only the value of 0
select distinct status from v$backup;
not active
Also we looked at the create controlfile script, it has resetlogs in the creation. The recovery command he was using was:
recover database using backup controlfile;
Then several logs would be applied and then eventually cancel and try to open with resetlogs.
Cause
Not using the correct syntax on the recovery commandSolution
The command that allowed the database to open was:
recover database using backup controlfile until cancel;
It seems to make a difference between initially telling Oracle that you are doing cancel or incomplete recovery and cancelling after applying archivelogs.