Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2580463
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 服务器与存储

2008-05-15 14:57:00

run {
allocate channel ch00 type 'sbt_tape';
restore archivelog like '%arch_2%' ;
release channel ch00;
}
或这种方式:
run {
allocate channel ch00 type 'sbt_tape';
restore archivelog from logseq 3000 until logseq 5000 ;
release channel ch00;
}
要查找恢复什么条件的archivelog可以用以下脚本查询:
rman catalog target msglog=/u01/rman_scripts/listbackup.list<list backup;
exit
EOF
 
在listbackup.list里可以看到你需要恢复的archivelog。
 
在OPS/RAC中,必须有thread标志才能查到归档日志的关系,如下:
run {
allocate channel ch00 type 'sbt_tape';
restore archivelog from logseq 3000 until logseq 5000 thread 2;
release channel ch00;
}
阅读(1180) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~