Configuring channels

A handy feature that comes with Oracle9i is the ability to alter the default channel characteristics. Once altered, these characteristics are stored in the control file, and persist from RMAN session to RMAN session. The following example changes the default disk rate and format style:

RMAN> configure channel device type disk 
2> rate 1000000 format '/d99/rmanback/rman_%U.bus';

To see all of your configuration settings, use the show all command:

RMAN> show all;

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE
  DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO
  1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO
  1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK RATE 1000000 FORMAT  
  '/d99/rmanback/rman_%U.bus';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/d00/app/oracle
  product/9.0.0/dbs/snapcf_dev900.f'; # default

In the output of a show all command, if a default setting has not been altered, it is followed by the text # default.

To clear the channel characteristics, use the configure clear command. The following example sets the device type back to your disk’s default:

RMAN> configure default ...

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.