Backing up an Oracle Data Guard environment
Below an example of an RMAN script that allocates two channels and performs a database backup.
run {
allocate channel 'dev_0' type 'sbt_tape'
parms='ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=DG1, OB2BARLIST=OraSTBY_DG1,
OB2BARHOSTNAME=oracle1)';
allocate channel 'dev_1' type 'sbt_tape'
parms='ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=DG1, OB2BARLIST=OraSTBY_DG1,
OB2BARHOSTNAME=oracle1)';
backup incremental level 0
format 'OraSTBY_DG1<DG1_%s:%t:%p>.dbf'
database;
}
Make sure that the number of allocated channels is the same as the number of backup devices and
their concurrency settings.
In case 2 backup devices should be used and each device can deal with 2 parallel streams, then 4
channels have to be allocated within the RMAN script.
14