立即与支持人员聊天
与支持团队交流

NetVault Plug-in for Oracle 7.1 - User Guide

Introducing Dell™ NetVault™ Backup Plug‑in for Oracle® Defining a backup strategy Installing and removing the plug-in Configuring the plug-in Backing up data Using the Oracle Flashback Database Restoring data
Restoring and recovering data – an overview Performing User Managed restores Using advanced User Managed restore procedures Performing RMAN restores Using RMAN types of recovery in a non-RAC environment Using advanced procedures with RMAN restores
Maintaining the Recovery Catalog Using the RMAN CLI Using the Plug-in with Oracle RAC Using the Plug-inin a failover cluster environment Using the plug-in with Oracle Data Guard Troubleshooting Glossary About Dell

Prerequisites for CLI-based backups and restores

Various installations of Linux include more than one executable named as rman. Because of this, you must verify that the correct Oracle RMAN application is started when you issue the rman command at the prompt. This can be done by making the path to the Oracle RMAN executable ($ORACLE_HOME/bin) as the first search path in the PATH environmental variable.
Plug‑in for Oracle uses an Oracle “SBT_TAPE” channel to conduct backups of an Oracle database. SBT is commonly used to specify a destination for RMAN commands used to back up to tape media. For complete information on establishing this type of channel for use, refer to Configuring and Allocating Channels for Use in Backups in the Oracle Database Backup and Recovery Advanced User’s Guide.
If the password for the NetVault Backup default user has been set or a non-default NetVault Backup user is used to run the backup and restore, you must execute the nvpluginaccess utility on the NetVault Backup Server and obtain the necessary security clearance for the plug-in to perform CLI backups and restores.
The nvpluginaccess utility is available in the “util” directory on the NetVault Backup Server.
On Linux/UNIX, the “util” directory is in “…/netvault/util”
On Windows, the “util” directory is in “…\NetVault\util”
where “…” represents the path to the NetVault Backup Server installation directory.
nvpluginaccess -remove -client <Client Machine Name>
nvpluginaccess -client <Client Machine Name> -account <username>
where <Client Machine Name> is the name of the NetVault Backup Client machine on which the plug-in is installed and <username> is the NetVault Backup user who will perform the backups and restores.
5
Verify that the nvpluginaccess utility has been correctly configured by reviewing the contents of the “hookplugs.cfg” file located in the “config” directory:
On Linux/UNIX, the “config” directory is in “…/netvault/config”
On Windows, the “config” directory is in “…\NetVault\config”
where “…” represents the path to the NetVault Backup Server installation directory.
*NOTE: The Password field in the “hookplugs.cfg” file contains an encrypted view of the password. The actual password is not displayed.

Performing CLI-based backups

2
From the prompt, generate a “Run Block” as follows:

Additional parameters: the &quot;format&quot; clause

The “format” clause specifies the pattern to use in creating a file name for the backup pieces or image copies that it creates. The plug-in provides additional parameters that can be used as variables along with the “format” clause. These variables let you specify three parameters for a backup job:
The “format” clause is used within a run block and is specified immediately after the “backup” command in the syntax. (Note that use of the additional colon before the “%d_%s_%t” variable is required, and that use of the “%d_%s_%t” variable is critical because Oracle will usually generate a unique string that can be used to identify the separate backup segments in the NetVault Backup Media Manager.)
format '<Variable_1>:<Variable_2>:<Variable_3>::%d_%s_%t'
Specific variables are included with this clause, each following a designated sequence (for example, “<Variable_1>”, “<Variable_2>”, and “<Variable_3>”). Each corresponds to specific NetVault Backup and RMAN values, and all are outlined in the following table. Ensure that each variable in the command is separated by a colon (“:”) and that a second colon is inserted before the “%d_%s_%t” variable.
Table 4. Variables
NetVault Backup Server Name – The NetVault Backup Machine Name of the NetVault Backup Server from which you will run the backup job. This is a required value.
Target Set Name – To target a specific device during backup, specify a Target Set created for use with Oracle RMAN backups. (Leave this option blank if you want to use NetVault Backup’s default setting of “Any Device.”) This option will override the Target Set specified on the Configure dialog. For more information on Target Sets, refer to the discussion of Selection Sets in the Dell NetVault Backup Administrator’s Guide.
Advanced Options Set Name – Specify an Advanced Options Set created for use with Oracle RMAN backups. (Leave this option blank if you want to use NetVault Backup’s default Advanced Options settings.) This option will override the Advanced Options Set specified on the Configure dialog.
When defining the CLI Backup Advanced Options Set, the Discard After Days/Weeks/Years option must be specified instead of Discard After Full Backups in the Backup Life section of the Advanced Options tab. CLI-based RMAN backups do not support backup-life generation for Full Backups, and backups might expire unexpectedly if the Discard After Full Backups option is specified. For more information on Advanced Option Sets, refer to the discussion of Selection Sets in the Dell NetVault Backup Administrator’s Guide.
%d – Specifies the name of the database.
%s – Specifies the number of the backup set. This number is a counter in the Control File that is incremented for each backup set. The counter value starts at 1 and is unique for the lifetime of the Control File. If you restore a Backup Control File, duplicate values can result. Also, the “CREATE CONTROLFILE” command initializes the counter back to one.
%t – Specifies the timestamp of the backup set, which is a 4-byte value derived as the number of seconds elapsed since a fixed reference time. The combination of this variable and the “%t” variable can be used to form a unique name for the backup set.

Additional parameters: the &quot;send&quot; and &quot;PARMS&quot; clauses

The parameters described in this section can be used either with the “send” or the “PARMS” command to set up the NetVault Backup options for a backup job run from the command line. This section describes how the “send” and the “PARMS” clauses work.
“send” clause – The parameters specified with the “send” clause are applied to a specific job.
send '<Variable>=<Value>';
In this example, the “NV_TARGET_MEDIA” command will affect only the “SBT_TAPE” Channel “ch1”.
The “send” clause is used within a run block and is specified immediately after the “allocate” command in the syntax.
“PARMS” clause – The parameters specified with the “PARMS” clause are applied to all the jobs run from the Oracle Instance.
PARMS="ENV=(<Variable>=<Value>)"
In this example, the “NV_TARGET_MEDIA” command will affect the “SBT_TAPE” Channel “ch1” and any other channels set in the other run blocks.
The “PARMS” clause is used within a run block and is specified immediately after the “allocate” command in the syntax.
Table 5. Variables
NOTE: Use of the NETVAULTCLIPASSWORD variable is a security risk. As an alternative, Dell recommends using the nvpluginaccess utility described in Running the NetVault Backup ‘nvpluginaccess’ utility. If the NETVAULTCLIPASSWORD variable is implemented, it will display the NetVault Backup password in plain text.
You can use this variable to specify a template for an Advanced Options Set created for use with Oracle RMAN CLI backups to target a specific set of NetVault Backup Advanced Options during backup. Note that this parameter will override the Advanced Options Set that you specified on the Configure dialog.
For more information on Advanced Option Sets, refer to the discussion of Selection Sets in the Dell NetVault Backup Administrator’s Guide.
The parameters within curly braces are optional. Count followed by full determines the number of generations that the backup is kept. This is the default parameter (that is, if nothing is specified with count, the number of backup generations is considered for the backup life). Days, weeks, or years represents the number of days, weeks, or years that the backup is kept before it is discarded.
You can use this variable to assign a title to the job. Dell recommends that only use this variable with the “send” command on a per job basis (that is, to avoid the chance of all future jobs being labeled with this Job Title, when applied with the “PARMS” clause).
You can use this variable to compress backup data before it is transferred over the network (that is, in the same manner as the Advanced Options tab’s “Network Compression” option). The permissible values are:
You can use this variable with the “PARMS” clause to establish the machine name of the original NetVault Backup Client Machine Name where the backup was performed from.
PARMS="ENV=(NV_ORIGINAL_NV_CLIENT= <nv_client_machine_name>)"
You can use this variable to run a script after completion of a backup job. The script to be run must be saved in the “…\netvault\scripts” subdirectory on the Oracle Database Server (where “…” refers to the complete path to the installation of NetVault Backup).
You can use this variable to run a script before a backup job. The script to be run must be saved in the “…\netvault\scripts” subdirectory on the Oracle Database Server (where “…” refers to the complete path to the installation of NetVault Backup).
You can use this variable to reset the Oracle environment after the “PARMS” clause has been used in the run block.
If the value is set as Never, no media marked for reuse is used for the backup. With the parameter set as Any, any media previously marked for reuse is considered for the backup. If the value is set as With same group label as the target media, any media containing the specified group label that has been previously marked for reuse is considered for the backup.
NOTE: To use this variable, you must specify a Restore Device Source Set that was created from the Restore Source option on the Restore Options tab. Do not use NetVault Backup Backup Target Sets. A NetVault Backup Backup Target Set is used to specify target devices during a backup. A NetVault Backup Restore Source Set is used to specify a set of source devices and devices options during a restore.
You can set this variable through the “send” or “PARMS” clause in the RMAN CLI.
Using “send” – The specified parameters apply only to a specific job.

send '<Variable>=<Value>';
Using “PARMS” – The specified parameters apply to all jobs run from the Oracle Instance.

PARMS="ENV=(<Variable>=<Value>)
For more information on Schedule Sets, refer to the Dell NetVault Backup Administrator’s Guide.
Any not in a group – To target any media that does not have a Group Label assigned to it.
Any – To target any available media.
MID – To target a specific piece of media based on its media label (in which case the NV_MID_LABEL variable has to accompany this variable, and the applicable piece of media must be named).
Group Label – To target the media within a specific group based on its Group Label (in which case the NV_GROUP_LABEL variable has to accompany this variable, and the applicable Group Label must be named).
For more information on Target Sets, refer to the discussion of Selection Sets in the Dell NetVault Backup Administrator’s Guide.
If set to True, the data transfer is checked and a job message is added to the NetVault Backup Job log stating “Backup job has verified successfully.”
After the “PARMS” clause has been used, you can use either of the following lines of syntax to reset the RMAN environment:
*IMPORTANT: Close any terminal session or window in which you have set the NETVAULTCLIACCOUNT and NETVAULTCLIPASSWORD variables.
相关文档

The document was helpful.

选择评级

I easily found the information I needed.

选择评级