免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4601 | 回复: 6
打印 上一主题 下一主题

[备份软件] NBU6.5 oracle 恢复归档日志是报错,麻烦帮忙分析一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-19 18:53 |只看该作者 |倒序浏览
list backup可以看到有做归档日志的备份,但在 resotre时却报找不到文件。现在如恢复nbu备份过的所有archivelog日志?

RMAN> run {
2> allocate channel t1 type SBT_TAPE;
3> RESTORE ARCHIVELOG ALL;
4> }

allocated channel: t1
channel t1: sid=159 devtype=SBT_TAPE
channel t1: Veritas NetBackup for Oracle - Release 6.5 (2007072323)

Starting restore at 19-4月 -11

released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/19/2011 18:18:16
RMAN-06026: some targets not found - aborting restore
RMAN-06025: no backup of log thread 1 seq 12 lowscn 12446583 found to restore
RMAN-06025: no backup of log thread 1 seq 11 lowscn 12446580 found to restore
RMAN-06025: no backup of log thread 1 seq 10 lowscn 12446520 found to restore
RMAN-06025: no backup of log thread 1 seq 9 lowscn 12446489 found to restore
RMAN-06025: no backup of log thread 1 seq 8 lowscn 12446480 found to restore




SQL> recover tablespace RMAN_TS;
ORA-00279: change 12560017 generated at 04/19/2011 15:44:40 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2011_04_19/o1_mf_1_18_%u_.ar
c
ORA-00280: change 12560017 for thread 1 is in sequence #18


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log
'/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2011_04_19/o1_mf_1_18_%u_.a
rc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3


ORA-00308: cannot open archived log
'/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2011_04_19/o1_mf_1_18_%u_.a
rc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3


SQL>

RMAN>list backu;
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
105     Full    2.07G      SBT_TAPE    00:01:05     19-4月 -11     
        BP Key: 109   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T154440
        Handle: bk_121_1_748885480   Media:
  List of Datafiles in backup set 105
  File LV Type Ckp SCN    Ckp Time   Name
  ---- -- ---- ---------- ---------- ----
  1       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/system01.dbf
  2       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/undotbs01.dbf
  3       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/sysaux01.dbf
  4       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/users01.dbf
  5       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/example01.dbf
  6       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/rman_ts.dbf
  7       Full 12560017   19-4月 -11 /u01/app/oracle/oradata/orcl/rmantable.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
106     Full    7.25M      SBT_TAPE    00:00:41     19-4月 -11     
        BP Key: 110   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T154440
        Handle: bk_122_1_748885555   Media:
  Control File Included: Ckp SCN: 12560042     Ckp time: 19-4月 -11

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
107     Full    7.25M      SBT_TAPE    00:00:53     19-4月 -11     
        BP Key: 111   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T154640
        Handle: c-1261790618-20110419-01   Media:
  Control File Included: Ckp SCN: 12560061     Ckp time: 19-4月 -11
  SPFILE Included: Modification time: 16-4月 -11

BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
108     256.00K    SBT_TAPE    00:00:42     19-4月 -11     
        BP Key: 112   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T154739
        Handle: arch-124-1-748885659   Media:

  List of Archived Logs in backup set 108
  Thrd Seq     Low SCN    Low Time   Next SCN   Next Time
  ---- ------- ---------- ---------- ---------- ---------
  1    18      12559749   19-4月 -11 12560091   19-4月 -11
  1    19      12560091   19-4月 -11 12560105   19-4月 -11

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
109     Full    7.25M      SBT_TAPE    00:00:45     19-4月 -11     
        BP Key: 113   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T154825
        Handle: c-1261790618-20110419-02   Media:
  Control File Included: Ckp SCN: 12560125     Ckp time: 19-4月 -11
  SPFILE Included: Modification time: 16-4月 -11

BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
110     1.25M      SBT_TAPE    00:00:42     19-4月 -11     
        BP Key: 114   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T164332
        Handle: 3uma68tk_1_1   Media:

  List of Archived Logs in backup set 110
  Thrd Seq     Low SCN    Low Time   Next SCN   Next Time
  ---- ------- ---------- ---------- ---------- ---------
  1    18      12559749   19-4月 -11 12560091   19-4月 -11
  1    19      12560091   19-4月 -11 12560105   19-4月 -11
  1    20      12560105   19-4月 -11 12561495   19-4月 -11

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
111     Full    7.25M      SBT_TAPE    00:00:43     19-4月 -11     
        BP Key: 115   Status: AVAILABLE  Compressed: NO  Tag: TAG20110419T164419
        Handle: c-1261790618-20110419-03   Media:
  Control File Included: Ckp SCN: 12561517     Ckp time: 19-4月 -11
  SPFILE Included: Modification time: 16-4月 -11

论坛徽章:
0
2 [报告]
发表于 2011-04-20 10:53 |只看该作者
run {
allocate channel t1 type SBT_TAPE;        
restore archivelog sequence 21 thread 1;
release channel t1;
}

这样就可以恢复。

论坛徽章:
0
3 [报告]
发表于 2011-04-20 11:31 |只看该作者
自问自答?

论坛徽章:
0
4 [报告]
发表于 2011-04-20 12:46 |只看该作者
回复 2# 月黑高飞


    这样才是正确的

论坛徽章:
0
5 [报告]
发表于 2011-04-20 12:48 |只看该作者
回复 3# 中国龙老张


    摸索前进啊老大,请多指导。

论坛徽章:
0
6 [报告]
发表于 2011-04-20 15:12 |只看该作者
从list backup结果看你的备份集备份的归档只有18,19,20。所以恢复sequence 8-12当然报错了。
如果在sql提示符下恢复,先确保'/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2011_04_19/下面有18-21的归档。
如果归档在别的位置,如/archivelog,应该执行recover from ‘/archivelog' tablespace RMAN_TS.
如果在rman下恢复,直接recover tablespace RMAN_TS就可以。所需归档自动会从备份集恢复到/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2011_04_19/下。

论坛徽章:
0
7 [报告]
发表于 2011-04-20 16:48 |只看该作者
回复 6# heroesray


    backup list 我拷贝出来的知识一部分,又明白了不少,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP