Databases Reference
In-Depth Information
Solution
You can create or modify any of RMAN's persistent configuration settings affecting backup and recovery through the
configure command. The general format of the configure command is as follows:
RMAN> configure [<parameter> <syntax>];
If you want, you can script an entire set of configuration changes and run it from within a run block. Alternatively,
you may execute the configure command from the RMAN command prompt in order to change a single parameter at
a time. The following example changes many settings all at once from within a run block:
run
{
configure retention policy to redundancy 2;
configure backup optimization off;
configure default device type to disk;
configure controlfile autobackup on;
configure controlfile autobackup format for device type disk to
'/proj/11/backup/%F';
configure device type disk parallelism 2;
configure datafile backup copies for device type disk to 1;
configure archivelog backup copies for device type disk to 1;
configure maxsetsize to unlimited;
configure snapshot controlfile name to '/proj/11/backup/snapf_prod11.f';
}
It's quite common to specify the configure command within backup and recovery scripts to change the default
settings for one or more RMAN persistent configuration settings.
How It Works
Use the configure command to configure persistent settings for backup, restore, duplication, and maintenance jobs.
Once set, the settings will apply to all future RMAN sessions until you clear or modify those settings by using the
configure command again. RMAN stores the configuration for each of the target databases in that database's control
file. The recovery catalog, if you're using one, contains the configuration for all the databases that are registered
in the catalog.
You must connect to the target database, which must be in mount or open state, since RMAN configuration
settings are stored in the control file. In Chapter 15, you'll learn about the configure auxname command, which lets
you rename files when you're duplicating databases using RMAN.
Restoring Default Parameter Settings
Problem
You want to restore RMAN's default settings after performing a special task that required you to modify some
parameters.
 
Search WWH ::




Custom Search