Integrating Oracle and Data Protector

Backing Up an Oracle Database

2. Allocate the Oracle channels.

Allocating a channel tells RMAN to initiate an Oracle Server process for backup, restore, or recovery on the Oracle target database. For example:

allocate channel 'dev_0' type 'disk'; or

allocate channel 'dev_1' type 'sbt_tape';

 

where you specify the backup directly to disk in the first case and

 

directly to tape in the second case. Note that if Data Protector is

 

linked with Oracle, Data Protector will perform the backup to the

 

tape in the second case.

 

If you specify more than a single allocate channel command,

 

RMAN will establish multiple logon sessions and conduct multiple

 

backup sets in parallel. This “parallelization” of backup and restore

 

commands is handled internally by RMAN.

 

 

IMPORTANT

On Windows, a maximum of 32 or 64 (if device is local) channels can be

 

allocated.

 

 

To use Data Protector backup media, specify the channel type

SBT_TAPE.

3.Specify the parms operand:

parms'ENV(OB2BARTYPE=Oracle8,

OB2APPNAME=<DB_NAME>,OB2BARLIST=<backup_ specification_name>)';

Note that the RMAN script will not work without the above parameters being specified in this form.

4.Specify format:

format '<backup_specification><<DB_NAME>_%s:%t:%p>.dbf'

Note that %s:%t:%p and the Oracle database name are required, whereas the backup specification is recommended.

64

Chapter 1