지금 지원 담당자와 채팅
지원 담당자와 채팅

NetVault Plug-in for Oracle 13.0 - User Guide

Introducing Quest® NetVault® 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-in in a failover cluster environment Using the plug-in with Oracle Data Guard Using the plug-in with Oracle Container Databases (CDBs) and Pluggable Databases (PDBs) Troubleshooting

Performing CLI-based backups

The following topics provide information for performing CLI-based backups:

Example of a basic CLI backup

This topic shows how to take a Full Backup of the “USERS” tablespace using RMAN commands:

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

The preceding commands are the minimum required to perform a CLI-based backup. The plug-in provides several additional parameters that can be used to set different options for a CLI backup job. The topics that follow provide a description of these parameters.

More parameters: the "format" clause

The “format” clause specifies the pattern to use in creating a filename 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. Use of the additional colon before the “%d_%u_%p_%c” variable is required; use of the “%d_%u_%p_%c” variable is critical because Oracle usually generates a unique string that you can use to identify the separate backup segments in the NetVault Media Manager.

format '<Variable_1>:<Variable_2>:<Variable_3>::%d_%u_%p_%c'

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 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_%u_%p_%c” variable.

Table 2. Variables

<Variable_1>

NetVault Server Name: The NetVault Machine Name of the NetVault Server from which you run the backup job. This value is required.

<Variable_2>

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’s default setting of “Any Device.” This option overrides the Target Set specified on the Configure dialog box. For more information on Target Sets, see the discussion of Selection Sets in the Quest NetVault Administrator’s Guide.

<Variable_3>

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’s default Advanced Options settings. This option overrides the Advanced Options Set specified on the Configure dialog box.

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, see the discussion of Selection Sets in the Quest NetVault Administrator’s Guide.

“%d_%u_%p_%c”

These values pertain to unique RMAN identifiers; that is, they are Oracle environmental variables. Oracle uses this variable to generate a unique string that can be used to identify the separate backup segments in the NetVault Media Manager.

%d: Specifies the name of the database.
%u: Specifies an eight-character name made up of a compressed representation of the backup set or image copy number and the time the set or copy was created.
%p: Specifies the piece number within the backup set.
%c: Specifies the copy number of the backup piece within a set of duplicated backup pieces.
NOTE: As an alternative, you can use “%d_%s_%t” or another combination of keywords that generates a unique identifier. For substitution variables that you can use with the formatSpec subclause, see your Oracle documentation.

More parameters: the "send" and "PARMS" clauses

Use the parameters described in this topic with either the “send” or the “PARMS” command to set up the NetVault options for a backup job run from the command line. This topic 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 affects 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 affects 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.

The following table describes the variables available for use with the “send” and “PARMS” clauses:

Table 3. Variables

Use these variables to set the NetVault user and password that performs the backup or restore. These variables must be set when a password has been defined for the default NetVault user or a non-default user performs the backup or restore.

NOTE: Use of the NETVAULTCLIPASSWORD variable is a security risk. As an alternative, Quest recommends using the nvpluginaccess utility described in Running the NetVault ‘nvpluginaccess’ utility. If the NETVAULTCLIPASSWORD variable is implemented, it displays the NetVault password in plain text.

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 Advanced Options during backup. This parameter overrides the Advanced Options Set that you specified on the Configure dialog box.

For more information on Advanced Option Sets, see the discussion of Selection Sets in the Quest NetVault Administrator’s Guide.

Use this variable to label and use any blank media automatically when no other media is available for the job. The permissible values are:

Use this variable to control how long a backup exists on its target media. The permissible values are:

The parameters within curly braces are optional. Count followed by full determines the number of generations that the backup is kept. This parameter is the default, 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.

Use this variable with the “PARMS” clause to establish the default NetVault Server for an entire Oracle Instance.

Use this variable to select a specific group of media based on its group label. This variable must be used with the “NV_TARGET_MEDIA” variable; otherwise, it has no effect.

Use this variable to set the NetVault Job Priority for the CLI task. The value input can range from 1 (highest priority) to 100 (lowest priority). If this parameter is not specified, the default job priority is 30.

Use this variable to assign a title to the job. Quest 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.

Use this variable to select a specific piece of media based on its media label. This variable must be used with the “NV_TARGET_MEDIA” variable; otherwise, it has no effect.

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:

Use this variable with the “PARMS” clause to establish the machine name of the original NetVault Client Machine Name where the backup was performed.

PARMS="ENV=(NV_ORIGINAL_NV_CLIENT= <nv_client_machine_name>)"

Use this variable to run a script after completion of a backup job. The script to 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.

Use this variable to run a script before a backup job. The script to 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.

Use this variable to reset the Oracle environment after the “PARMS” clause has been used in the run block.

Use this variable to set a specific media as reusable. The permissible values are:

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.

Use this variable to specify a Restore Device Source Set created for use with Oracle RMAN CLI restores. This variable lets you target a specific NetVault set of devices and device options during a restore. Do not use this option if you want to use the default NetVault setting of Any Device.

NOTE: To use this variable, specify a Restore Device Source Set that was created from the Restore Source option on the Restore Options tab. Do not use NetVault Target Sets. A NetVault Target Set is used to specify target devices during a backup. A NetVault Restore Source Set is used to specify a set of source devices and devices options during a restore.

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>)

Use this variable to specify a Schedule Set created for use with Oracle RMAN CLI backups to specify or reuse a pre-existing schedule set during backup.

For more information on Schedule Sets, see the Quest NetVault Administrator’s Guide.

Use this variable to set the media in the targeted device. The permissible values are:

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.

Use this variable to specify a Target Set created for use with Oracle RMAN CLI backups to target a specific NetVault device during backup. Ignore this option if you want to use the NetVault default setting of “Any Device.” This parameter overrides the Target Set specified on the Configure dialog box.

For more information on Target Sets, see the discussion of Selection Sets in the Quest NetVault Administrator’s Guide.

Use this variable to verify completion of a backup job. The permissible values are:

If set to True, the data transfer is checked and a job message is added to the NetVault Job log stating “Backup job has verified successfully.”

After the “PARMS” clause has been used, 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.

평가 결과 선택