如果自己搞不定可以找诗檀软件专业ORACLE数据库修复团队成员帮您恢复!

诗檀软件专业数据库修复团队

服务热线 : 13764045638 QQ号:47079569 邮箱:service@parnassusdata.com

 
ORA-01152 oerr ora 1152
01152, 00000, "file %s 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.
  适用于: Oracle Database - Enterprise Edition – 版本 9.2.0.8 到 12.1.0.2 [Release 9.2 到 12.1] 本文信息适用于任何平台。 ***于 11-DEC-2012检查相关性*** ***于 5-Aug-2014检查相关性*** **于'23-Nov-2015' 检查相关性** 症状 在从primary还原冷备份后尝试readonly打开standby 返回以下错误。 SQL> alter database open read only; alter database open read only * 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: '/DB/HERCPROD/data07/system01.dbf' . 更改 使用primary的冷备份创建新的物理standby。 在冷备份的同时,standby控制文件未被创建。 原因 为了standby只读打开,Standby数据文件和控制文件需要同步。 假设standby在primary的冷备份后创建(如1天后),所有归档日志需要被应用到standby控制文件创建的时间点。否则,如果尝试只读打开,预计会出现以下错误。为了standby只读打开,Standby数据文件和控制文件需要同步。 请注意,即使只读有错误,standby恢复仍然有效。因此,除非用户在应用生成到primary创建standby控制文件时间点的归档日志之前尝试只读打开,否则这不会有问题。 解决方案 要解决问题(如,在还原冷备份之后但在应用任意归档日志之前只读打开standby),在还原冷备份后且mount数据库后创建standby控制文件(如primary)。这是在Oracle® Data Guard, Concepts and Administration中提到的过程。 Chapter 3: Creating a Physical Standby Database