ITPub博客

首页 > 数据库 > Oracle > RMAN-06023 no backup or copy of datafile 1 found to restore

RMAN-06023 no backup or copy of datafile 1 found to restore

原创 Oracle 作者:梓沐 时间:2016-03-25 14:12:13 0 删除 编辑

错误详情:

  1. RMAN> restore database from tag="NEAL_LV0";

  2. Starting restore at 09-MAR-16
  3. using channel ORA_DISK_1
  4. RMAN-00571: ===========================================================
  5. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  6. RMAN-00571: ===========================================================
  7. RMAN-03002: failure of restore command at 03/09/2016 10:11:53
  8. RMAN-06026: some targets not found - aborting restore
  9. ......
  10. RMAN-06023: no backup or copy of datafile 3 found to restore
  11. RMAN-06023: no backup or copy of datafile 2 found to restore
  12. RMAN-06023: no backup or copy of datafile 1 found to restore


检查了一下备份文件发现都是存在的。最后发现是incarnation的问题,由于之前做了一次不完全恢复,进行了alter database open resetlogs;

  1. RMAN> list incarnation;

  2. List of Database Incarnations
  3. DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
  4. ------- ------- -------- ---------------- --- ---------- ----------
  5. 1 1 NEAL 4033362200 PARENT 1 24-AUG-13
  6. 2 2 NEAL 4033362200 PARENT 925702 06-NOV-15
  7. 3 3 NEAL 4033362200 PARENT 1623729 19-NOV-15
  8. 4 4 NEAL 4033362200 PARENT 1716084 17-NOV-15
  9. 5 5 NEAL 4033362200 CURRENT 7160370 09-MAR-16
解决方法:

将数据库重置到上一次的incarnation,这里即是4,然后还原数据库,问题解决。

  1. RMAN> reset database to incarnation 4;
  2. database reset to incarnation 4

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29812844/viewspace-2063693/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
擅长PLS/QL开发,SQL调优和改写,数据库设计

注册时间:2014-08-18

  • 博文量
    161
  • 访问量
    1204428