Document 2484229.1 Recover Oracle Error
Document 2484229.1 Recover Oracle Error
After PITR to alternate server open resetlogs fails with ORA-01547 / ORA-01152: file 1 was
not restored from a sufficiently old backup (Doc ID 2484229.1)
In this Document
Symptoms
Cause
Solution
References
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.2.0.1 [Release 10.2 to 12.2]
Information in this document applies to any platform.
SYMPTOMS
- Partial restore of the database to new server, skipping tablepspaces failing with error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/<path>/<filename>'
- Required datafiles have been recovered till the time required and files are non Fuzzy.
- Non CDB environment.
CAUSE
SOLUTION
- Ensure the database has been restored and recovery till the Until time or the SCN specified in the PITR script
- In the below example PITR is being done until time 24-DEC-2018 15:00:00.
- Only few Selected tablespaces have been restored (Out of 45 datafiles only 15 datafiles from system, sysaux, undo, and
required tablespace have been restored
Run the below query to find the checkpoint time and SCN in the restored datafiles
1 of 3 24/08/2023, 00:18
Document 2484229.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-stat...
15 rows selected.
All the 15 datafiles are at Same Checkpoint time, Checkpoint change#. These datafiles belong to the tablespaces which
have been included in the restore and recovery command
Ensure the needed datafiles are not Fuzzy:
The above confirms the 15 datafiles are all not fuzzy and at having the same SCN.
To resolve the issue try Option 1 first. If option 1 does not work, try Option 2
Type Cancel
2 of 3 24/08/2023, 00:18
Document 2484229.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-stat...
- Edit the controlfile dump file which should be created under the trace directory. Remove the datafiles which are not
needed. Keeping only 15 datafiles which were restored and needed
SQL>Startup nomount ;
SQL>@/<path>/<controlfile_dump>
Type cancel ;
REFERENCES
3 of 3 24/08/2023, 00:18