Oracle® Database Backup and Recovery Reference 10g Release 2 (10.2) Part Number B14194-02 |
|
|
View PDF |
Syntax
release::=
Purpose
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.
Restrictions and Usage Notes
Execute this command only within a RUN block. See "releaseForMaint" for the form of RELEASE CHANNEL
used for maintenance channels.
Keywords and Parameters
Syntax Element | Description |
---|---|
channel_id |
The case-sensitive channel ID used in the ALLOCATE CHANNEL command. |
Examples
Releasing a Channel: Example This example makes three identical backup sets of datafiles 1
to 4
to tape with channel ch1
, then releases it. RMAN then makes three identical backups of datafiles 5
to 7
to tape with channel ch2
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; }