Oracle叢集資料庫中恢復歸檔日誌

mengzhaoliang發表於2011-10-08

恢復歸檔日誌: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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章