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

h71000.www7.hp.com
from h71000.www7.hp.com More from this publisher
06.11.2014 Views

System Backup to Tape for Oracle Databases 9.9 System Backup to Tape Defaults exit $ exit Note Since the RMAN script is just a DCL command procedure, the /AFTER_SCHEDULE qualifier cannot be used to link schedules that execute RMAN scripts. That is, schedules that execute RMAN scripts cannot be assigned to the /AFTER_SCHEDULE qualifier on any schedule object. This is a current design limitation. Please refer to release notes section 5.3.6 for more details on this restriction. Note When specifying a format in the backup command you must put in a % character that creates unique names being sent to SBT. You can put Oracle's Recovery Manager command line in the scheduler command and execute a stored script through a cmdfile. 9.9 System Backup to Tape Defaults 9.9.1 Archive Name 9.9.2 Catalog Name 9.9.3 I/O Block Size The SBT feature of ABS/MDMS has defaults. This section describes these defaults. If you do not pass the parms="ENV=(MDMS$SBT_ ARCHIVE=archive_name)" in an Oracle Recovery Manager allocate command, SBT will use the default ORACLE_DB_ ARCHIVE archive. If you do not pass the parms="ENV=(MDMS$SBT_ CATALOG=catalog_name)" in an Oracle Recovery Manager allocate command, SBT will use the default ABS$CATA- LOG:ORACLE_DB catalog. If you do not pass the parms="ENV=(MDMS$SBT_IO_BLOCK_ SIZE=block_size)" in an Oracle Recovery Manager allocate command, SBT will use a block size of 65024 bytes when writing blocks on the I/O device. This has nothing to do with the block size that Oracle sends down to be written on the I/O device. 9.9.4 MDMS$SBT_RESTORE_SINGLE_CHANNEL=TRUE If you do not pass params="ENV=(MDMS$SBT_RESTORE_SINGLE_CHANNEL=TRUE)" in an Oracle Recovery manager allocate command,SBT will not treat this restore as a single channel restore and will force a dismount operation after restoring each backup piece. 9.9.5 System Backup to Tape Logicals Names describes the logical names used to control your SBT sessions. These logical names can be a system wide logical (DEFINE/SYSTEM) or be defined in your Oracle Recovery Manager scripts. When using in Oracle's Recovery Manager scripts, the logical is declared when you allocate a channel with the keyword of ENVfor the keyword parms. The following example shows how the MDMS$SBT_ARCHIVE and MDMS$SBT_IO_BLOCK_SIZE logicals are defined as a process logical with Oracle's Recovery Manager allocate command: run { allocate channel t1 for 'sbt_tape' parms="ENV=(MDMS$SBT_ARCHIVE=OFFSITE_ARCHIVE, 9-18 System Backup to Tape for Oracle Databases

System Backup to Tape for Oracle Databases 9.10 System Backup to Tape Restrictions } ... MDMS$SBT_IO_BLOCK_SIZE=32768)"; Note Everything between the quotes in parms MUST be uppercase characters. The logical abs_sbt alone is an exception. It works for both upper and lower case. SBT Logical Names Logical Name MDMS$SBT_ ARCHIVE MDMS$SBT_ ARCHIVE_n MDMS$SBT_IO_ BLOCK_SIZE MDMS$SBT_ CATALOG MDMS$SBT_TRACE_ LEVEL Description This logical name is the name of the archive used during a backup of the Oracle database. These logical names are the names of the archives used during a backup of the Oracle database when using the duplex feature of Oracle's Recovery Manager. MDMS$SBT_ARCHIVE_1 is for copy 1, MDMS$SBT_ARCHIVE_2 is for copy 2, and so forth. Example 9–13 is an example of using these logical. This logical name is the size of the block that is written on the tape volume. The default size is 65024 bytes ( 127 * 512 bytes). You cannot specify a value larger than 65024 bytes. This logical name is the name of the catalog used for the following Oracle Recovery Manager commands: • restore • validate • list backup This logical allows you to define how much tracing appears in the trace file. The logical is defined in SYS$STAR- TUP:MDMS$SYSTARTUP.COM. By default the values TR_GENINFO and TR_MEDINFO are defined. 9.10System Backup to Tape Restrictions This section describes restrictions in the use of this version of SBT. 9.10.1 Doing Parallel Backups When doing a parallel backup and you do not have all of the SBT resources needed could cause a backup not to complete. When doing a parallel backup, the controlling Oracle server does not let any of the Oracle servers doing the backup end until all servers say they have completed their task. I believe this is to keep the database consistent. However, this can cause the backup to not complete if SBT resources are not available. Note This is not really a SBT restriction, but it is placed here to make you aware of the possibility of parallel backups not completing. The following three scenarios can cause a parallel backup not to complete: • Setting the Drives List in the archive to a number of drives less than the number of parallel streams that Oracle's Recovery Manager starts. If you do not need to restrict the Oracle System Backup to Tape for Oracle Databases 9–19

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

9.9 <strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape Defaults<br />

exit<br />

$ exit<br />

Note<br />

Since the RMAN script is just a DCL command procedure, the /AFTER_SCHEDULE<br />

qualifier cannot be used <strong>to</strong> link schedules that execute RMAN scripts. That is, schedules<br />

that execute RMAN scripts cannot be assigned <strong>to</strong> the /AFTER_SCHEDULE qualifier<br />

on any schedule object. This is a current design limitation. Please refer <strong>to</strong> release<br />

notes section 5.3.6 <strong>for</strong> more details on this restriction.<br />

Note<br />

When specifying a <strong>for</strong>mat in the backup command you must put in a % character that<br />

creates unique names being sent <strong>to</strong> SBT.<br />

You can put Oracle's Recovery Manager command line in the scheduler command and execute a<br />

s<strong>to</strong>red script through a cmdfile.<br />

9.9 <strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape Defaults<br />

9.9.1 <strong>Archive</strong> Name<br />

9.9.2 Catalog Name<br />

9.9.3 I/O Block Size<br />

The SBT feature of ABS/MDMS has defaults. This section describes these defaults.<br />

If you do not pass the parms="ENV=(MDMS$SBT_ ARCHIVE=archive_name)" in an Oracle<br />

Recovery Manager allocate command, SBT will use the default ORACLE_DB_ ARCHIVE<br />

archive.<br />

If you do not pass the parms="ENV=(MDMS$SBT_ CATALOG=catalog_name)" in an Oracle<br />

Recovery Manager allocate command, SBT will use the default ABS$CATA-<br />

LOG:ORACLE_DB catalog.<br />

If you do not pass the parms="ENV=(MDMS$SBT_IO_BLOCK_ SIZE=block_size)" in an<br />

Oracle Recovery Manager allocate command, SBT will use a block size of 65024 bytes when<br />

writing blocks on the I/O device. This has nothing <strong>to</strong> do with the block size that Oracle sends<br />

down <strong>to</strong> be written on the I/O device.<br />

9.9.4 MDMS$SBT_RESTORE_SINGLE_CHANNEL=TRUE<br />

If you do not pass params="ENV=(MDMS$SBT_RESTORE_SINGLE_CHANNEL=TRUE)"<br />

in an Oracle Recovery manager allocate command,SBT will not treat this res<strong>to</strong>re as a single<br />

channel res<strong>to</strong>re and will <strong>for</strong>ce a dismount operation after res<strong>to</strong>ring each backup piece.<br />

9.9.5 <strong>System</strong> <strong>Backup</strong> <strong>to</strong> Tape Logicals Names<br />

describes the logical names used <strong>to</strong> control your SBT sessions. These logical names can be a<br />

system wide logical (DEFINE/SYSTEM) or be defined in your Oracle Recovery Manager<br />

scripts. When using in Oracle's Recovery Manager scripts, the logical is declared when you allocate<br />

a channel with the keyword of ENV<strong>for</strong> the keyword parms. The following example shows<br />

how the MDMS$SBT_ARCHIVE and MDMS$SBT_IO_BLOCK_SIZE logicals are defined as<br />

a process logical with Oracle's Recovery Manager allocate command:<br />

run<br />

{<br />

allocate channel t1 <strong>for</strong> 'sbt_tape'<br />

parms="ENV=(MDMS$SBT_ARCHIVE=OFFSITE_ARCHIVE,<br />

9-18 <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!