C RMAN Media Management Parameters
This appendix describes Oracle Secure Backup-specific media management parameters that you can specify in Recovery Manager (RMAN) backup and restore jobs. You can specify media management parameters in RMAN backup and restore jobs by the following means:
-
Environment variables, which are specified with the
ENV
parameter of thePARMS
option on theCONFIGURE
orALLOCATE
CHANNEL
commands -
The RMAN
SEND
command
This section describes Oracle Secure Backup parameters that are valid in RMAN jobs.
This section contains the following topics:
Database Backup Storage Selectors and RMAN Media Management Parameters
You can configure tape device and media family restrictions in both database backup storage selectors, which are created with the mkssel command, and the OB_DEVICE
and OB_MEDIA_FAMILY
Recovery Manager (RMAN) media management parameters.
During a backup operation, Oracle Secure Backup first checks if tape device or media family restrictions are specified using RMAN media management parameters. If RMAN parameters are not set, then the values specified in the backup storage selector are used for the backup operation.
Table C-1 explains the criteria used by Oracle Secure Backup when choosing the media family and tape device for an RMAN backup job.
Table C-1 Determining Media Family and Device Settings
Matching Selector | Device Set in Selector | OB_DEVICE Set in Job | OB_MEDIA_FAMILY Set in Job | Result |
---|---|---|---|---|
Yes |
Yes |
No |
No |
Oracle Secure Backup uses the tape device and media family settings in the backup storage selector. |
Yes |
Yes or No |
Yes |
Yes |
Oracle Secure Backup uses the tape device and media family settings in the RMAN channel parameters. |
Yes |
Yes or No |
Yes |
No |
Oracle Secure Backup uses the |
Yes |
Yes |
No |
Yes |
Oracle Secure Backup uses the tape device settings in the selector and media family settings in the RMAN channel parameters. |
Yes |
No |
No |
Yes |
Oracle Secure Backup does not restrict the tape device (that is, chooses any tape device in the domain) and uses the media family setting in the RMAN channel parameters. |
No |
N/A |
Yes |
No |
Oracle Secure Backup uses the |
No |
N/A |
No |
No |
Oracle Secure Backup does not restrict the tape device (that is, chooses any tape device in the domain) and uses the |
About Setting the Job Priority for RMAN Operations
If the OB_PRIORITY Media Management parameter is set for a backup job, then the specified job priority value is always used for the backup job.
Otherwise, if the RMAN priority is set in a storage selector that is associated with an RMAN backup job, then the job priority specified in the storage selector is used.
If neither the OB_PRIORITY
Media Management parameter is specified, nor any storage selector is specified, then the job priority value specified in the rmanpriority policy is used for the backup job.
OB_BACKUP_NAME
Purpose
Use the OB_BACKUP_NAME
parameter to specify the format information for a backup image.
See Also:
"name-format" for information about the format used for naming backup images
Example
This example uses the SEND
command to specify the name format information my_rman_backup_brhost2
for a backup image.
Example C-1 Backup Name with SEND Command
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt; SEND "OB_BACKUP_NAME my_rman_backup_brhost2"; BACKUP TABLESPACE users; }
OB_DEVICE
Restrictions and Usage Notes
Before specifying OB_DEVICE[_
n
]
in a Recovery Manager (RMAN) job, note the following:
-
This parameter does not affect restore jobs.
-
Channels can only be restricted to tape drives, not tape libraries.
-
Table C-1 explains the criteria used by Oracle Secure Backup when choosing the media family and tape device for an RMAN backup job.
Semantics
- _n
-
Specifies the copy number of duplexed backups. For duplexed backups,
OB_DEVICE_1
is for the first copy,OB_DEVICE_2
is for the second copy, and so on. - device_name
-
Specifies the name of the backup container to which the backup should be restricted.
- host_name
-
Specifies the name of the host to which the backup should be restricted.
If
drive_name
@
host_name
is specified, then Oracle Secure Backup uses the specified tape device with the specified host. If@
host_name
is specified, then Oracle Secure Backup uses any tape device attached to the host with the namehost_name
.
Examples
Example C-2 SBT Backup with SEND Command
This example uses the SEND
command to specify that RMAN backs up to any tape drive on host brhost1
. Note that no equal sign is inserted between the parameter OB_DEVICE
and the names of the tape drives.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt; SEND 'OB_DEVICE @brhost1'; BACKUP TABLESPACE users; }
Example C-3 SBT Backup with ENV Parameter
This example uses PARMS
to set the Oracle Secure Backup media family and device parameters. This parameter instructs RMAN to back up to the device named tape2
and use the media family my_full_backups. Note that an equal sign is inserted between the parameter OB_DEVICE
and the value tape2
.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt PARMS 'ENV=(OB_DEVICE=tape2, OB_MEDIA_FAMILY=my_full_backups)'; BACKUP TABLESPACE users; }
OB_ENCRYPTION
Restrictions and Usage Notes
In all cases, if the backup data is already encrypted by RMAN, then Oracle Secure Backup performs no further encryption.
If Oracle Secure Backup applies encryption, then the encryption algorithm depends on the algorithm configured for the Oracle Secure Backup host being backed up.
Semantics
- on
-
Uses Oracle Secure Backup to encrypt the backup data unless it has already been encrypted by RMAN.
- off
-
Does not use Oracle Secure Backup to encrypt the backup data unless either the host or global policy is set to
required
.Setting
OB_ENCRYPTION
tooff
is equivalent to specifying no value for it. All the normal rules of Oracle Secure Backup encryption still apply regarding whether the data will be stored on tape in encrypted form. - forcedoff
-
Does not use Oracle Secure Backup to encrypt the database backup, overriding any host-specific encryption settings.
The
forcedoff
setting does not affect RMAN, which can encrypt the backup data.The
forcedoff
setting is ignored for backups to cloud storage devices. - swencryption
-
Forces Oracle Secure Backup to use software encryption instead of hardware encryption.
Examples
Example C-4 Encrypted Backup with SEND Command
This example uses the SEND
command to specify Oracle Secure Backup encryption of the users tablespace backup. If RMAN is already encrypting the backup of users
, then Oracle Secure Backup does not apply further encryption. Note that no equal sign is inserted between the parameter OB_ENCRYPTION
and the value on
.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt; SEND 'OB_ENCRYPTION on'; BACKUP TABLESPACE users; }
Example C-5 Persistent Encryption Configuration
This example persistently configures Oracle Secure Backup not to apply encryption to an RMAN backup under any circumstances. Note that there is an equal sign between the parameter OB_ENCRYPTION
and the value forcedoff
.
CONFIGURE CHANNEL DEVICE TYPE sbt PARMS 'ENV=(OB_ENCRYPTION=forcedoff)';
OB_IGNORE_NUMA
Purpose
Use the OB_IGNORE_NUMA
parameter to indicate if Oracle Secure Backup must enable Non-Uniform Memory Access (NUMA) awareness. Enabling NUMA awareness may result in improved performance for Oracle Database backup and restore operations on NUMA machines.
See Also:
Oracle Secure Backup Administrator's Guide for more information about NUMA
Restrictions and Usage
None
Semantics
- 0
-
Oracle Secure Backup does not attempt to co-locate the Oracle shadow process and the Oracle Secure Backup data service. This setting is primarily used for testing.
- 1
-
Oracle Secure Backup ensures that, on NUMA machines, the Oracle shadow process and the Oracle Secure Backup data service are located in the same NUMA node. This is the default setting.
Example
Example C-6 Disabling NUMA-awareness
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt; SEND 'OB_IGNORE_NUMA 1'; BACKUP TABLESPACE users; }
OB_MEDIA_FAMILY
Restrictions and Usage Notes
Before specifying OB_MEDIA_FAMILY[_
n
]
in a Recovery Manager (RMAN) job, note the following:
-
This parameter does not affect restore jobs.
-
You can only specify a content-managed media family. By default RMAN uses the
RMAN-DEFAULT
media family. -
Table C-1 explains the criteria used by Oracle Secure Backup when choosing the media family and tape device for an RMAN backup job.
Semantics
Examples
Example C-7 SBT Backup with SEND Command
This example uses the SEND
command to specify the my_full_backups
media family in an RMAN database backup. Note that there is no equal sign between the parameter OB_MEDIA_FAMILY
and the value datafile_mf
.
SEND 'OB_MEDIA_FAMILY datafile_mf'; BACKUP TABLESPACE users;
Example C-8 SBT Backup with ENV Parameter
This example makes the same backup as Example C-7, but uses PARMS
to set the Oracle Secure Backup media family parameter. Note that there is an equal sign between the parameter OB_MEDIA_FAMILY
and the value datafile_mf
.
CONFIGURE CHANNEL DEVICE TYPE sbt PARMS 'ENV=(OB_MEDIA_FAMILY=datafile_mf)'; BACKUP TABLESPACE users;
OB_PRIORITY
This topic describes the OB_PRIORITY
parameter.
Purpose
Use the OB_PRIORITY
parameter to schedule the priority of occurrence for your backup and restore jobs.
The priority value set for a job using this parameter overrides any priority value specified within a database storage selector.
Semantics
Example
Example C-9 Setting Priority with SEND command
This example sets the priority to 10
for an RMAN backup job using theSEND
command. Note that there is no equal sign between the parameter OB_PRIORITY
and the value 10
.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt; SEND "OB_PRIORITY 10" BACKUP TABLESPACE users; }
Example C-10 Setting Priority with ENV Parameter
This example schedules the priority of a backup job to 25
using the ENV
parameter. Note that there is an equal sign between the parameter OB_PRIORITY
and the value 25
.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt PARMS 'ENV=(OB_DEVICE=tape2, OB_MEDIA_FAMILY=my_full_backups, OB_PRIORITY=25); BACKUP TABLESPACE users; }
OB_RESOURCE_WAIT_TIME
Purpose
Use the OB_RESOURCE_WAIT_TIME
parameter to specify the duration for which a backup or restore job should wait for the required resources to become available.
Restrictions and Usage Notes
Note that you can specify Recovery Manager (RMAN) resource wait times in the following locations, each of which overrides the preceding specifications in the list:
-
The
rmanresourcewaittime
policySee Also:
-
The
waittime
attribute in a database backup storage selector that matches an RMAN backup job -
The RMAN channel configuration parameter
OB_RESOURCE_WAIT_TIME
Semantics
- duration
-
Specifies how long Oracle Secure Backup should wait for the tape resources to become available. For valid values, refer to the description of the
duration
placeholder in "duration".
Examples
Example C-11 SBT Restore with SEND Command
This example uses the SEND
command to specify that the restore job should wait no longer than 10 minutes for tape resources to become available. Note that there is no equal sign between the parameter OB_RESOURCE_WAIT_TIME
and the value.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt; SEND 'OB_RESOURCE_WAIT_TIME 1minute'; RESTORE ARCHIVELOG ALL; }
Example C-12 SBT Restore with ENV Parameter
This example uses the ENV
parameter to specify the wait time on a configured channel. Note that there is an equal sign between the parameter OB_RESOURCE_WAIT_TIME
and the value.
CONFIGURE CHANNEL DEVICE TYPE sbt PARMS 'ENV=(OB_RESOURCE_WAIT_TIME=1minute)'; RESTORE ARCHIVELOG ALL;
OB_RESTORE_DEVICE
Purpose
Use the OB_RESTORE_DEVICE
parameter to define which tape drive, disk pool, or cloud storage device to use for a restore job.
This parameter enables you to restrict a restore job to a particular tape drive, disk pool, or cloud storage device. You can use this parameter to restore Oracle Database backups.
Note:
The OB_RESTORE_DEVICE
parameter is only available starting with Oracle Secure Backup 10.3.0.2.0.
Restrictions and Usage Notes
The device restriction is honoured above the location of the volume. If a volume required for the restore job is loaded into a drive other than the one specified by devicename
, then the volume will be unloaded from the drive and loaded into devicename
. However, this is possible only when the two drives, the one specified by OB_RESTORE_DEVICE
and the drive with the required volume, are both in the same library.
The device specified in the OB_RESTORE_DEVICE
parameter must be attached to the library where the volume resides. If the device is not attached, the restore job fails.
The volume must reside in the device specified using OB_RESTORE_DEVICE
or in the library that the specified device belongs to. If a restore job is restricted to a device that is not in the same library as the volume required for restore, then the restore job will go into a state that is pending resource availability. The restore job does not fail.
The restore job will fail if the SE slot where the volume resides is not is the uselist
of the device specified in devicename
. For more information about uselist
, refer to its description in "chdev".
Semantics
- devicename
-
Specifies the name of a tape library, tape drive, disk pool, or a cloud storage device that the restore job is restricted to use.
For
devicename
, do not use thedevice_name@hostname
or@hostname
formats. You must specify only the device name.For the complete description of
devicename
, see "devicename".For
OB_RESTORE_DEVICE
,devicename
can be tape, disk pool, or cloud storage devices.
Examples
Example C-13 Restore with Device Name Specified
This example restricts the restore job that restores the tablespace my_tbs
to use the tape device tape1
.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE SBT; SEND 'OB_RESTORE_DEVICE=tape1'; RESTORE TABLESPACE my_tbs; RECOVER TABLESPACE my_tbs; }