Name
ALLOCATE CHANNEL
Synopsis
Creates a communication channel for the purpose of performing input/output. Must be executed from within the RUN command.
Note
Many of the Oracle8i ALLOCATE CHANNEL commands, such as KBYTES and READRATE, have been deprecated. Refer to the CONFIGURE command for the preferred syntax.
Oracle9i syntax
ALLOCATE [AUXILIARY] CHANNEL [']channel_id
['] { DEVICE TYPE [=]deviceSpecifier
| NAME [=] 'channel_ name
' } [allocOperand [allocOperand ...]];
Oracle8i syntax
ALLOCATE [AUXILIARY] CHANNEL [']channel_id
['] { TYPE [=]deviceSpecifier
| NAME [=]deviceSpecifier
} [allocOperand
[allocOperand
...]];
Keywords
- NAME
'channel_name'
The name of the I/O device
Examples
In the following example, one channel of type disk
is established. A backup is then performed. The backup pieces are
directed to the default location:
$ORACLE_HOME/dbs.
RMAN>run {
2>allocate channel d1 type disk;
3>backup database;
4>}
In this next example, the backup pieces are created within the directory specified by the FORMAT subclause. A mask of %U provides each backup piece with a unique name.
RMAN>run {
2>allocate channel d1 type disk format
3>'/d99/backups/r_%U';
4>backup database; }
Get Oracle RMAN Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.