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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

9.12 Support <strong>for</strong> Oracle RDB database<br />

For the above example, the backup file data stream names<br />

FILENAME<br />

FILENAME02<br />

are specified <strong>to</strong> the archive <strong>to</strong> identify the two streams of data s<strong>to</strong>red in the archive by the two<br />

writer threads, which <strong>to</strong>gether represent the s<strong>to</strong>red database. When<br />

$RMU/RESTORE/LIBRARIAN=(READER_THREADS=2, trace=disk:[direc<strong>to</strong>ry]tracefile.trace)/LOG<br />

FILENAM.RBF<br />

is specified <strong>to</strong> res<strong>to</strong>re the database these same two data stream backup file names, one name<br />

specified by each of the two reader threads, will be generated by RMU and sent <strong>to</strong> the archive<br />

application <strong>to</strong> retrieve all the data associated with the database. If the number of reader threads is<br />

less than the number of backup writer threads one or more res<strong>to</strong>re reader threads will res<strong>to</strong>re<br />

more than one data stream.<br />

For example, reader threads can be equal <strong>to</strong>, less than or more than the number of writer threads.<br />

$RMU/RESTORE/LIBRARIAN=(READER_THREADS=1, trace=disk:[direc<strong>to</strong>ry]tracefile.trace)/LOG<br />

FILENAM.RBF<br />

$RMU/RESTORE/LIBRARIAN=(READER_THREADS=4, trace=disk:[direc<strong>to</strong>ry]tracefile.trace)/LOG<br />

FILENAM.RBF<br />

The user does not have <strong>to</strong> specify the same number of reader threads on the res<strong>to</strong>re as writer<br />

threads specified on the backup. If a smaller number of reader threads on the res<strong>to</strong>re is specified<br />

than the number of writer threads specified in the backup of the database, the data streams <strong>to</strong> be<br />

retrieved will be divided among the specified reader threads using an algorithm which assigns<br />

the data streams so that each thread will have an approximately equal amount of work <strong>to</strong> do. If a<br />

larger amount of reader threads is specified on the res<strong>to</strong>re than was specified on the backup, the<br />

number of reader threads will be au<strong>to</strong>matically changed <strong>to</strong> equal the number of writer threads<br />

used in the backup. This is done <strong>to</strong> prevent an error, which would occur if more data streams<br />

were requested than were s<strong>to</strong>red using SBT by the backup or if threads were created with no<br />

work <strong>to</strong> do.<br />

$RMU/RESTORE/LIBRARIAN=(READER_THREADS=1, trace=disk:[direc<strong>to</strong>ry]tracefile.trace)/LOG/DIRECTORY=<br />

disk:[direc<strong>to</strong>ry1] FILENAM.RBF<br />

During res<strong>to</strong>re, /DIRECTORY qualifier can be used <strong>to</strong> specifY the destination <strong>for</strong> the res<strong>to</strong>red<br />

database files. The files are res<strong>to</strong>red <strong>to</strong> the direc<strong>to</strong>ry specified.<br />

$RMU/RESTORE/ONLY_ROOT/LIBRARIAN=(trace=disk:[direc<strong>to</strong>ry]tracefile.trace)/LOG/DIRECTORY=<br />

disk:[direc<strong>to</strong>ry1] FILENAM.RBF<br />

RMU/RESTORE/ONLY_ROOT command rebuilds only the database root file from a backup<br />

file, produced earlier by an RMU/BACKUP command, <strong>to</strong> the condition the database root file<br />

was in when the backup was per<strong>for</strong>med.<br />

The /VOLUMES qualifier cannot be used on the RMU/RESTORE command if the /LIBRAR-<br />

IAN qualifier is used. RMU au<strong>to</strong>matically determines the number of data streams s<strong>to</strong>red using<br />

SBT based on the backup file name specified <strong>for</strong> the res<strong>to</strong>re command and sets the volume number<br />

<strong>to</strong> the actual number of s<strong>to</strong>red data streams. This makes sure that all data streams, which represent<br />

the database, are retrieved.<br />

The default <strong>for</strong> both WRITER_THREADS and READER_THREADS is "1". The<br />

WRITER_THREADS parameter can only be specified with the /LIBRARIAN qualifier <strong>for</strong> the<br />

RMU/BACKUP database command. The READER_THREADS parameter can only be specified<br />

with the /LIBRARIAN qualifier <strong>for</strong> the RMU/RESTORE database commands.<br />

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