首页  ·  知识 ·  基础设施
把备到磁带库中的归档日志恢复到原来的磁盘上
网友  http://blog.chinaunix.net/u/10516/  数据中心  编辑:德仔   图片来源:网络
run { allocate channel ch00 type 'sbt_tape'; restore archivelog like '%arch_2%' ; release channel ch00; } 或
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 rman/rman@recvdb target sys/sys@prod 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;
}
 
本文作者:网友 来源:网络http://blog.chinaunix.net/u/10516/
CIO之家 www.ciozj.com 微信公众号:imciow
    >>频道首页  >>网站首页   纠错  >>投诉
版权声明:CIO之家尊重行业规范,每篇文章都注明有明确的作者和来源;CIO之家的原创文章,请转载时务必注明文章作者和来源;
延伸阅读
也许感兴趣的
我们推荐的
主题最新
看看其它的