Databases Reference
In-Depth Information
Configuring OSB Parameters in RMAN
Problem
You want to configure Oracle Secure Backup (OSB) media management parameters in RMAN.
Solution
You can specify the following OSB parameters in a backup or restore job in RMAN:
ob_media_family [_n]: specifies the media family to use for a job
ob_device [_n]: specifies the tape drive to be used for the job
ob_resource_wait_time: specifies the length of time for which a job should wait
for a necessary resource to become available
You can specify media management parameters in RMAN in two ways. You can use environment variables via
the configure or allocate channel command. Or you can use the send command. We'll illustrate both methods
in this solution.
Using the Configure or Allocate Channel Command
Use the parms parameter to send instructions to the media manager from RMAN. In the following example, we use the
configure channel command to specify values for the ob_device and ob_media_family parameters:
RMAN> configure channel device type sbt
parms='env=(ob_device=drive3,
ob_media_family=med_fam1)';
The previous command specifies the ob_device parameter to direct the backup to the tape drive drive3 and the
ob_media_family parameter to specify the media family med_fam1 for the backup.
You can also use the allocate channel command to specify media management parameters, as shown in the
following example:
RMAN> run
{
allocate channel ch1 device type sbt
parms 'env=(ob_device=drive3, ob_media_family=med_fam1)';
}
This allocate channel command uses the env parameter of the parms option to specify the media family
med_fam1 for the backup.
 
Search WWH ::




Custom Search