ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle集群数据库中恢复归档日志

Oracle集群数据库中恢复归档日志

原创 Linux操作系统 作者:mengzhaoliang 时间:2011-10-08 17:32:13 0 删除 编辑

恢复归档日志:select * from v$log_history t where t.THREAD#='1'
order by t.FIRST_TIME desc
实例1:恢复一个归档日志:
run{
allocate channel 'dev_0' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,
ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=test,OB2BARLIST=db01)';
restore archivelog sequence 2102;
release channel dev1;}

恢复多个归档日志:
run{
allocate channel 'dev_0' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,
ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=test,OB2BARLIST=db01)';
restore archivelog sequence between 2104 and 2135;
release channel dev1;}

 


实例2:恢复一个归档日志:select * from v$log_history t where t.THREAD#='2'
order by t.FIRST_TIME desc
run{
allocate channel 'dev_0' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,
ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=test,OB2BARLIST=db01)';
restore archivelog sequence 2230 thread 2;
release channel dev1;}

恢复多个归档日志:
run{
allocate channel 'dev_0' type 'sbt_tape'
parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,
ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=test,OB2BARLIST=db01)';
restore archivelog sequence between 2231 and 2281 thread 2;
release channel dev1;}

 


 

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

下一篇: ORA-14452:问题处理
请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2008-01-30

  • 博文量
    335
  • 访问量
    2913705