Restore Archive logs in Oracle cluster Databases

Source: Internet
Author: User
Restore archived logs: select * fromv $ log_historytwheret.THREAD #

Restore archived logs: select * from v $ log_history t where t. THREAD # =

Restore archived logs: select * from v $ log_history t where t. THREAD # = '1'
Order by t. FIRST_TIME desc
Instance 1: Restore an archived log:
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 ;}

Restore multiple archived logs:
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 ;}

Instance 2: Restore an archived log: 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 ;}

Restore multiple archived logs:
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 ;}

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.