Site icon IT Tutorial

ORA-01152: File 1 was Not Restored From a Sufficiently Old Backup

I got ” ORA-01152: File 1 was Not Restored From a Sufficiently Old Backup ”  error in Oracle database.

 

ORA-01152: File 1 was Not Restored From a Sufficiently Old Backup

 

Details of error are as follows.

ORA-01152: file 1 was not restored from a sufficiently old backup

Cause: An incomplete recovery session was started, but an insufficient number of logs were 
applied to make the database consistent. This file is still in the future of the last log 
applied. The most likely cause of this error is forgetting to restore the file from a backup
 before doing incomplete recovery.

Action: Either apply more logs until the database is consistent or restore the database file
 from an older backup and repeat recovery.




SQL> alter database open;
alter database open
*

ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '+DATA/msdb/datafile/system01.dbf'

 

 

 

file 1 was not restored from a sufficiently old backup

This ORA-01152 error is related with the incomplete recovery session was started, but an insufficient number of logs were applied to make the database consistent. This file is still in the future of the last log applied. The most likely cause of this error is forgetting to restore the file from a backup before doing incomplete recovery.

 

Catalog archivelogs if they are not cataloged or if they are not seen.

RMAN> catalog start with '/oradata/archivelog/';

RMAN> recover database;

 

 

If this command is not recover, then try to run the following command.

SQL> recover database using backup controlfile until cancel;

 

Open database again as follows.

SQL> alter database open;

Database altered.

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version