| Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-02 |
|
|
View PDF |
release::=

To release a channel while maintaining the connection to the target database instance. Specify the channel name with the same identifier used in the ALLOCATE CHANNEL command. This command is optional because RMAN automatically releases all channels allocated when a RUN block terminates.
Execute this command only within a RUN block. See "releaseForMaint" for the form of RELEASE CHANNEL used for maintenance channels.
| Syntax Element | Description |
|---|---|
|
|
The case-sensitive channel ID used in the |
in this example, RMAN allocates channels ch1 and ch2. It then makes three identical backup sets of datafiles 1 to 4 to tape, then releases it. RMAN then uses channel ch2 to make three identical backups of datafiles 5 to 7 to tape, and then releases it:
RUN { SET BACKUP COPIES = 3; ALLOCATE CHANNEL ch1 DEVICE TYPE sbt FORMAT 'bkup_%U'; ALLOCATE CHANNEL ch2 DEVICE TYPE sbt MAXPIECESIZE = 5M; BACKUP CHANNEL ch1 DATAFILE 1,2,3,4; RELEASE CHANNEL ch1; BACKUP DATAFILE 5,6,7; }