06.11.2014 Views

HP Archive Backup System for OpenVMS Guide to Operations

HP Archive Backup System for OpenVMS Guide to Operations

HP Archive Backup System for OpenVMS Guide to Operations

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape <strong>for</strong> Oracle Databases<br />

9.6 Using <strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape with Oracle's Recovery Manager<br />

9.6 Using <strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape with Oracle's Recovery Manager<br />

This section describes how <strong>to</strong> use SBT <strong>to</strong> backup your Oracle database. If you have configured<br />

SBT correctly using the above steps, you are now ready <strong>to</strong> use SBT with Oracle's Recovery<br />

Manager. How <strong>to</strong> use Oracle's Recovery Manager is described in Oracle's documentation. This<br />

section describes what Oracle Recovery Manager command keywords and parameters affect<br />

SBT.<br />

The following <strong>to</strong>pics are covered in this section:<br />

• Specify SBT shared library<br />

• Specifying an archive<br />

• Specifying a catalog<br />

• Specifying I/O block size<br />

• Specifying archives <strong>for</strong> duplex backups<br />

9.6.1 Specifying SBT Shared Library<br />

9.6.2 Specifying an <strong>Archive</strong><br />

This is applicable only <strong>to</strong> Oracle9i Release 2 (9.2.0.2). Oracle9i Release 2 (9.2.0.2) has support<br />

<strong>for</strong> shared libraries in RMAN. The SBT shared library must be specified as part of the RMAN<br />

script <strong>for</strong> Oracle <strong>to</strong> load the sbt shared library.<br />

run<br />

{<br />

allocate channel t1 type 'sbt_tape'<br />

parms="SBT_LIBRARY=abs_sbt,<br />

ENV=(MDMS$SBT_ARCHIVE=REG_RMAN_ARCH,<br />

MDMS$SBT_IO_BLOCK_SIZE=65024)";<br />

backup filesperset 4<br />

database;<br />

release channel t1;<br />

}<br />

In the above script SBT_LIBRARY is a keyword which is assigned the logical name abs_sbt.<br />

Remember that abs_sbt is a system wide logical pointing <strong>to</strong><br />

SYS$SHARE:MDMS$SBTSHR_MA64_9I2.EXE. We defined abs_sbt <strong>to</strong><br />

SYS$SHARE:MDMS$SBTSHR_MA64_9I2.EXE in rdbms_logicals.com<br />

If you do not specify SBT_LIBRARY params in the script, Oracle will not be able <strong>to</strong> load the<br />

SBT shareable image.<br />

Moreover params should be specified <strong>for</strong> each and every channel in the script.<br />

In order <strong>to</strong> have SBT select the archive that you want, you must specify the archive in the Oracle<br />

Recovery Manager allocate command. The archive is specified in the parms keyword <strong>for</strong> the<br />

allocate command. Example 9–9 shows how <strong>to</strong> code an Oracle Recovery Manager script <strong>for</strong> the<br />

archive OFFSITE_ARCH. The Oracle server creates the process logical<br />

MDMS$SBT_ARCHIVE.<br />

Example 9–9 Specifying the <strong>Archive</strong> in the Allocate Command<br />

run<br />

{<br />

allocate channel t1 type 'sbt_tape'<br />

parms="ENV=(MDMS$SBT_ARCHIVE=OFFSITE_ARCH)”;<br />

backup tablespace system;<br />

release channel t1;<br />

}<br />

9-12 <strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape <strong>for</strong> Oracle Databases

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!