Managing File Copies   «Prev 

Allocating a Channel

Multiple Channels

You can allocate up to 255 channels; each channel can read up to 64 files in parallel. You can control the degree of parallelism within a job by the number of channels that you allocate. Allocating multiple channels simultaneously allows a single job to read or write multiple backup sets or disk copies in parallel, which each channel operating on a separate backup set or copy. When making backups to disk, the guideline is to allocate one channel for each output device . If RMAN is writing to a striped file system or an ASM disk group, however, then multiple channels can improve performance. When backing up to tape, the guideline is that the number of tape channels should equal the number of tape devices divided by the number of duplexed copies

Using Multiple Channels in Oracle

automatic channel allocation: The ability of RMAN to perform backup and restore tasks without requiring the use of the ALLOCATE CHANNNEL command. You can use the CONFIGURE command to specify disk and tape channels. Then, you can issue commands such as BACKUP and RESTORE at the RMAN command prompt without manually allocating channels. RMAN uses whatever configured channels that it needs to execute the commands.

ALLOCATE CHANNEL
c1 TYPE DISK;

Create the first channel with this command

ALLOCATE CHANNEL 
c2 TYPE DISK;
Create the second channel with a similar command

Create the third channel with this command
ALLOCATE CHANNEL 
c3 TYPE DISK;

Issue a COPY command for three data files
COPY DATAFILE FILE2 
TO 'LOC1' 
DATAFILE FILE2 TO 'LOC2',
DATAFILE FILE3 TO 'LOC3'

Each datafile is copied through a separate channel