NetBackup10 AdminGuide Oracle
NetBackup10 AdminGuide Oracle
Administrator's Guide
Release 10.0
NetBackup™ for Oracle Administrator's Guide
Last updated: 2022-03-08
Legal Notice
Copyright © 2022 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, and NetBackup are trademarks or registered trademarks of Veritas
Technologies LLC or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
http://www.veritas.com
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:
https://www.veritas.com/support
You can manage your Veritas account information at the following URL:
https://my.veritas.com
If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:
Japan [email protected]
Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:
https://sort.veritas.com/documents
Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:
You can also see documentation information or ask a question on the Veritas community site:
http://www.veritas.com/community/
https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents
Before you install NetBackup Dedupe Direct for Oracle plug-in ............. 194
Installing NetBackup Dedupe Direct for Oracle plug-in on the Oracle
database server ................................................................... 195
Using NetBackup Dedupe Direct for Oracle plug-in ............................ 196
Configuring the NetBackup Dedupe Direct for Oracle plug-in ......... 196
NetBackup Dedupe Direct for Oracle rman.cfg file parameters
.................................................................................... 197
Configuring External Certificate Authority (ECA) .......................... 198
ECA msdp_app.cfg file parameters .......................................... 199
Configuring Oracle RAC ......................................................... 200
Disabling Oracle stream handler .............................................. 200
Performing the RMAN backup directly to MSDP server ................. 201
Performing the RMAN restore directly from the MSDP storage
server ........................................................................... 202
Uninstalling the NetBackup Dedupe Direct for Oracle plug-in ............... 202
Editing the RMAN script and configuring NetBackup for Oracle for a
proxy copy backup ................................................................ 228
Example RMAN script for a proxy copy backup ................................. 229
NetBackup for Oracle XML export and XML import ............................ 262
NetBackup for Oracle XML export and import archiving features
.................................................................................... 262
XML export archive process .................................................... 263
Sequence of operation: XML export archive ............................... 265
XML import restore process .................................................... 267
Sequence of operation: XML import restore ................................ 268
About the environment variables set by a user in the XML export
parameter file ....................................................................... 269
About XML export shell scripts ...................................................... 270
Creating XML export scripts manually ....................................... 270
Performing an XML export archive ................................................. 272
Running the NetBackup for Oracle XML export script on the client
.................................................................................... 273
Running bporaexp on the client as an Oracle user ....................... 273
Writing to a directory versus writing to a storage unit .................... 274
About bporaexp parameters .................................................... 275
Browsing XML export archives using bporaimp parameters ................. 278
Browsing XML export archives using bplist ....................................... 279
Restoring an XML export archive ................................................... 280
Running an XML import script on the client ................................ 281
Running bporaimp on the client ............................................... 281
About bporaimp parameters .................................................... 282
About redirecting a restore of an XML export archive to a different
client ............................................................................ 285
Troubleshooting XML export or XML import errors ............................. 288
Checking the logs to determine the source of an error .................. 288
Troubleshooting each stage of the XML export or XML import
.................................................................................... 290
Additional XML export and import logs ............................................ 292
Network (TCP/IP)
NetBackup software:
– NetBackup master server
– NetBackup media server
Feature Description
Media and device All devices that the Media Manager supports are available to
management NetBackup for Oracle.
This feature also lets you choose the times when these
operations can occur. For example, to prevent interference with
normal daytime operations, you can schedule your database
backups to occur only at night.
Multiplexed backups and NetBackup for Oracle lets you take advantage of NetBackup’s
restores multiplexing capabilities. Multiplexing directs multiple data
streams to one backup device, thereby reducing the time
necessary to complete the operation.
Transparent Oracle and All backups and restores run simultaneously and transparently
regular file system backup without any action from the NetBackup administrator. The
and restore operations database administrator can run database backup and restore
operations through NetBackup. An administrator or any other
authorized user can use NetBackup to run database backups
and restores.
If you use the command line interface or scripts, you must use
script-based Oracle policies. These policies use Oracle’s
Recovery Manager (RMAN) as if NetBackup were not present.
Introduction 14
NetBackup for Oracle features
Feature Description
You can create the instance groups that each contain a set of
instances that are registered with a common set of credentials.
A default instance group can be created for the newly
discovered instances that are then automatically registered into
this group.
Sharing the same storage You can share the same devices and media that are used for
units that are used for other other backups or give Oracle exclusive use of certain devices
file backups and media. NetBackup for Oracle can use the Media Manager,
disk, or Media Server Deduplication Pool (MSDP) storage units.
Centralized and networked From the NetBackup master server, you can schedule database
backup operations backups or start them manually for any client or instance. The
Oracle databases can also reside on the hosts that are different
from the devices on which NetBackup stores the backups.
Graphical user interfaces NetBackup provides the following graphical user interfaces for
client users and administrators:
Parallel backup and restore NetBackup for Oracle supports the parallel backup and restore
operations RMAN capabilities. For example, you can run more than one
tape device at a time for a single Oracle backup or restore.
This capability reduces the time necessary to complete the
operation.
Introduction 15
NetBackup for Oracle features
Feature Description
Support for Replication Replication director can be used to create snapshots of the
Director Oracle database. The snapshots can then be replicated to other
NetApp disk arrays or backup the snapshot to a storage unit.
To use Replication Director, the Oracle database must exist
on a NetApp NAS disk array. Replication Director is not
supported on SAN storage at this time.
Support on a NetBackup
Note: This feature requires a NetBackup appliance running
appliance for backup to an
software version 2.7.1 or later.
appliance share
(NetBackup Copilot for Oracle Copilot enhances the Oracle Intelligent Policy by giving
Oracle) you options for protecting an Oracle database using a share
on a NetBackup appliance. This feature gives you better control
of backups when an Oracle database backup is placed in a
database share by the DBA. This feature also lets you choose
a database share as the destination for the first backup copy.
The backup copy is a full set of database data file copies
created, incrementally updated, and protected by NetBackup.
You must create a share on the appliance for this option using
the NetBackup Appliance Shell Menu.
Immediate backup for The Oracle DBA can start an immediate backup from the client
Oracle DBA using the nboraadm -immediate command. The Oracle
DBA can start the backup instead of waiting for the backup to
be initiated based on the NetBackup schedule. This command
option is useful if the Oracle DBA wants to perform a backup
before maintenance. The command must be initiated from the
client where the instance resides.
Introduction 16
NetBackup for Oracle terminology
Feature Description
Support for Container and Oracle 12c introduced the container databases (CDB) and
Pluggable databases pluggable databases (PDB). The Oracle Intelligent Policy is
enhanced and allows a backup to include single or multiple
PDBs.
This feature also lets you select one or more Oracle 12c
instances along with non-Oracle 12c instances in OIP.
Full Oracle Real Application NetBackup supports Oracle RAC when you set up an Oracle
Clusters (RAC) support in policy in the NetBackup web UI. The NetBackup Administration
Oracle Intelligent Policies Console does not have support for Oracle RAC policy setup.
However, this manual contains all information for creating an
Oracle RAC policy that applies to the policy creation in the web
UI. The NetBackup Web UI Administrator’s Guide contains the
instructions to add an Oracle RAC.
Oracle RAC load balanced The NetBackup web UI has the ability to load balance the
backups Oracle RAC database during a backup. The NetBackup Web
UI Administrator’s Guide contains the information for load
balancing.
NetBackup Dedupe Direct NetBackup Dedupe Direct for Oracle offers a lightweight plug-in
for Oracle for RMAN backups to MSDP storage.
Term Definition
Full backup A full backup backs up all the blocks into the backup set, skipping only
data file blocks that have never been used. Note that a full backup is
not the same as a whole database backup; "full" is an indicator that the
backup is not incremental.
Multilevel RMAN lets you create multilevel backups. RMAN can create multilevel
incremental incremental backup. A value of 0 or 1 denotes each incremental level.
backup
A level 0 incremental backup, which is the base for subsequent
incremental backups, copies all blocks containing data. You can create
a level 0 database backup as backup sets or image copies.
Differential In a differential level 1 backup, RMAN backs up all blocks that have
incremental changed since the most recent incremental backup at level 1 (cumulative
backup or differential) or level 0. For example, in a differential level 1 backup,
RMAN determines which level 1 backup is the most recent backup.
RMAN backs up all blocks that have been modified after that backup.
If no level 1 is available, then RMAN copies all blocks that have changed
since the base level 0 backup.
Introduction 18
NetBackup for Oracle operation using the Oracle Intelligent Policy
Term Definition
When you back up Oracle database instances, each resultant backup set contains
at least one backup piece from the target database. You must give each backup
piece a unique name. Several substitution variables are available to aid in generating
unique names. The policy utility provides a set of default file name formats for the
backup pieces. NetBackup considers the backup piece name as the file being
backed up, so this name must be unique in the catalog.
To override any of the default file name formats, select Specify backup file name
formats. You can change the formats for the various backup file names for data
files, archived redo logs, the control file, and the Fast Recovery Area (FRA). Ensure
that the format that is specified for all RMAN backup piece names ends with _%t
to guarantee that each backup piece has a unique name in the catalog. NetBackup
uses this timestamp as part of its search criteria for catalog images. Without this
timestamp, performance may degrade as the NetBackup catalog grows.
For a backup, the following items apply:
■ The rman command starts the requested operation on the databases.
■ When the process requires media to store backup data, RMAN issues a backup
request to start a user-directed backup.
■ The NetBackup media server connects to NetBackup for Oracle on the client.
NetBackup for Oracle on the client sends the database data to the NetBackup
media server which saves the data to secondary storage. A restore operation
works in essentially the same manner except that RMAN issues a restore
request. Then NetBackup retrieves the data from secondary storage and sends
it to NetBackup for Oracle on the client.
■ RMAN supports parallel operations, so that a single rman command can start
more than one backup, or restore on the NetBackup system.
■ The status for an RMAN operation is stored in the RMAN catalog or in the
database control file. This same status appears in the output of the RMAN
command that is used to run the backup or restore. This status is the only status
that a database administrator must check to verify that a backup or restore has
been successful.
■ You can see the RMAN script and RMAN output in the details of the controlling
job (bphdb) in the Activity Monitor.
■ NetBackup also logs status, but only for its own part of the operation. The
database administrator cannot use the NetBackup status to determine whether
rman was successful. Errors can occur in rman that do not affect NetBackup and
are not recorded in its logs.
See “NetBackup for Oracle operation using a script-based policy” on page 20.
Introduction 20
Logging the RMAN input and output on a client
The directory_name is a directory to which the Oracle user has permission to create
files within the directory.
For information about these commands, see the NetBackup Commands Reference
Guide.
The file name has a specific format that includes the client name, policy name (OIP),
schedule type, date stamp (yyyymmdd), and timestamp (hhmmss). The following
is an example of how the file name looks in the directory:
orac121_backuppolicyname_full_20160201_184157_GMT.log
Term Definition
backup set A backup set is a backup of one or more data files, control files, SPFILEs,
and archived redo log files. Each backup set consists of one or more binary
files called backup pieces. Backup pieces are written in a proprietary format
that only RMAN can create or restore.
instance An Oracle database instance consists of a System Global Area (SGA) and
the Oracle background processes. When Oracle starts a database, it
allocates an SGA and starts Oracle background processes. The SGA is
de-allocated when the instance shuts down.
Real RAC is an option that allows multiple concurrent instances to share a single
Application physical database.
Clusters (RAC)
Introduction 23
About Oracle RMAN
Term Definition
RMAN RMAN backs up, restores, and recovers database files. RMAN starts Oracle
database server processes on the target database. These Oracle database
server processes perform the backup and restore. RMAN performs backup
and recovery procedures, and it greatly simplifies the tasks that
administrators perform during these processes.
However, RMAN cannot directly manage the storage devices and media
that are used in its backups. So it must be integrated with an application
that has these capabilities. NetBackup for Oracle provides device and media
management capabilities by integrating RMAN with NetBackup and its
media management software. Also, RMAN can access NetBackup’s
automatic scheduling facilities and its graphical interfaces.
RMAN An RMAN recovery catalog or the database control file is a repository for
repository the information that RMAN uses and maintains. RMAN uses this information
to determine how to run requested backup and restore actions.
RMAN script The RMAN script specifies the commands for RMAN to perform (for
example, backups and restores). For information on RMAN commands and
script files, see your Oracle documentation.
Windows:
install_path\NetBackup\dbext\Oracle\samples\rman
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
These example scripts run RMAN commands and are fully commented to
explain the features that are used. You can review these examples and use
them as a starting point for developing backup, restore, and recovery scripts.
Note: The Oracle database agent is installed as part of the NetBackup client
installation.
■ Click All Instances to display the list of instances. The list includes the
names of instances that you have added and the instances that the Oracle
Discovery Service has discovered. The following is an example of the screen
that appears:
■ Click Instance Groups to create an instance group to which you can then
add instances with the same credentials.
Procedures are available about how to create an instance group.
See “Creating an Oracle database instance group” on page 29.
3 Select one or more instances on the instance list. Use the Ctrl and Shift keys
as needed to select multiple instances.
NetBackup for Oracle QuickStart 28
Registering Oracle database instances
4 Select Actions > Register. The following Register Instance panel appears.
6 The credentials are validated and a Validation Report dialog shows the results.
You can save the credentials even if the validation fails. Click OK to display
the Instances list again.
7 Verify that the Instances list shows the date-time when you registered the
instance. The instance is now available to select for an Oracle Intelligent Policy.
8 Repeat for all other instances that you want registered individually or as part
of an instance group.
NetBackup for Oracle QuickStart 29
Creating an Oracle database instance group
3 Enter the Instance Group Name in the text window, then fill in the appropriate
credentials, and click OK.
Note: Instance group names cannot be localized. NetBackup does not support
non-US ASCII characters in the instance group name.
The newly created instance group name appears in the right pane.
Click Help for help with entering the appropriate credentials. If necessary,
contact the Oracle database administrator for the correct set of credentials.
4 To assign individual instances to this instance group, click Instances in the
left pane to display the list of instances.
5 Right-click the desired instance and select Register to display the following
Register Instance panel. You can use the Ctrl and Shift keys to select multiple
instances for registering.
NetBackup for Oracle QuickStart 31
Creating an Oracle policy
6 Make sure Add to group and register using group credentials is selected.
Use the Instance Group pulldown menu to select the instance group that you
want the instance to be added to, then click OK.
7 Repeat for each instance that you want included in the instance group.
8 You may want to make this instance group the default for all newly discovered
instances. If so, all newly discovered instances are automatically added to this
instance group. More information is available about auto-registering an instance
group.
See “Automatic Registration of an instance group” on page 64.
See “Installing NetBackup for Oracle” on page 25.
See “Registering Oracle database instances” on page 26.
See “Creating an Oracle policy” on page 31.
4 In the Policy Type pulldown menu, select Oracle. This action causes the tabs
across the top of the panel to change to the following:
5 The Add New Policy panels contain some default conditions and some
parameters that you must specify. The default values are the best values for
most configurations. However, you may need to customize the parameter
settings on one or more of the tabs.
The dialog contains the following set of tabbed pages:
■ Attributes tab. Default values are automatically selected on the Attributes
tab. More information is available about these attributes.
See the NetBackup Administrator’s Guide, Volume I.
■ Schedules tab. More information is available about this tab.
NetBackup for Oracle QuickStart 33
Creating an Oracle policy
6 To protect the newly discovered instances, you may have to create the instance
group first, then set up a policy for the default instance group.
See “Automatic Registration of an instance group” on page 64.
7 (Optional) Create bpstart_notify and bpend_notify scripts for an Oracle
Intelligent Policy (OIP).
For an OIP, the scripts must include the .policyname or
.policyname.schedule suffix or the script does not run at the start or end of
the policy. An OIP ignores the generic bpstart_notify and bpend_notify
scripts and they do not work for a non-OIP.
Note: For RAC OIP backups the bpstart_notify and the bpend_notify
scripts must reside on all Oracle RAC nodes.
■ Windows:
install_path\NetBackup\bin\bpstart_notify.oip_instance1.bat or
install_path\NetBackup\bin\bpend_notify.oip_instance2.full.bat
■ Requirements for using NetBackup for SAP MaxDB, SAP Oracle, and SAP
HANA in a NetBackup cluster
Note: The data size collection does not work properly if OS authentication is
disabled.
Licensing data is collected for each database that is protected even if there are
multiple databases on a single host or cluster. Licensing uses physical data file
characteristics the Oracle database reports, not logical or segment sizes. The
reason NetBackup collects data this way is that during a disaster recovery, RMAN
needs to restore the full physical data file and not just its logical pieces.
Oracle Data Guard configurations are licensed on a per database basis. Each of
the primary or the standby databases needs to be restored individually and FEDS
licensing is used for any Oracle backup that can be restored. Each of the primary
or the standby databases reports their FEDS data whenever NetBackup protects
it during a backup operation.
The following Oracle queries are used to gather file size information:
■ Get size of database files being backed up
This query retrieves the list of database files and their file sizes (in MB) for an
instance:
select NAME, BYTES/1024/1024 from v$datafile;
This query shows the sum of the database file sizes for an instance:
Note: The preceding queries do not have information about the transaction log.
To link your Oracle software with the NetBackup API library, use one of the following
methods:
■ (Recommended) Use the SBT_LIBRARY parameter in the PARMS section of
the allocate channel in the RMAN script. In the run block of the RMAN script,
modify the ALLOCATE statement so that the SBT_LIBRARY parameter points
to the NetBackup API library. For example:
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.*
mv libobk.a libobk.a.orig
ln -s /usr/openv/netbackup/bin/libobk.a64 libobk.a
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
Installing NetBackup for Oracle 42
About linking Oracle RMAN with NetBackup for UNIX
mv libobk.so libobk.so.orig
ln -s /usr/openv/netbackup/bin/libobk.so libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
mv libobk.so libobk.so.orig
Installing NetBackup for Oracle 43
About linking Oracle RMAN with NetBackup for UNIX
ln -s /usr/openv/netbackup/bin/libobk.so64 libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
mv libobk.so libobk.so.orig
ln -s /usr/openv/netbackup/bin/libobk.so libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
Installing NetBackup for Oracle 44
About linking Oracle RMAN with NetBackup for UNIX
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
3 Use the mv command to move the Oracle library to an alternate location. Perform
this step if the output from step 2 shows that libobk.so is present.
For example:
mv libobk.so libobk.so.orig
ln -s /usr/openv/netbackup/bin/libobk.so.1 libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
Installing NetBackup for Oracle 45
About linking Oracle RMAN with NetBackup for UNIX
mv libobk.so libobk.so.orig
ln -s /usr/openv/netbackup/bin/libobk.so64.1 libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
Chapter 4
Oracle policy configuration
This chapter includes the following topics:
■ Configuring the logon account for the NetBackup Client Service for NetBackup
for Oracle
■ Oracle Intelligent Policies. This method lets you create a single policy to protect
multiple Oracle database instances that are spread over multiple clients. You
select Oracle database instances for a policy from a repository of instances that
are automatically discovered in the NetBackup environment. Among the features
that these policies provide is the ability to schedule frequent backups of archived
redo logs. These backups are accomplished in minutes instead of hours or days.
■ Script-based policies. This method lets you create an Oracle backup policy by
using a script that is based on a list of clients.
A backup policy for a database defines the backup criteria for a specific group of
instances (Oracle Intelligent Policy) or clients (script-based policy).
The Intelligent Oracle Policy includes the following criteria:
■ Storage unit and media to use
■ Policy attributes
■ Backup schedules. Automatic schedule and archive log schedule.
■ Instances to be backed up
■ Backup selections: Whole database, tablespaces, data files, FRA
The script-based policy includes the following criteria:
■ Storage unit and media to use
■ Policy attributes
■ Backup schedules: Automatic schedule and application schedule.
■ Clients to be backed up
■ Backup script files to be run on the clients
To back up the database environment, define at least one script-based Oracle policy
with the appropriate schedules and clients. Or, you can configure a single Oracle
Intelligent Policy that includes all instances.
Note: The Backup, Archive, and Restore GUI cannot be used for performing Oracle
backups and restores.
Most requirements for database policies are the same as for file system backups.
In addition to the policy attributes for Oracle, other attributes are available that you
should consider.
See the NetBackup Administrator’s Guide, Volume I.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 53.
See “About Oracle Intelligent Policies (OIP)” on page 67.
Oracle policy configuration 48
Preparing for NetBackup for Oracle configuration
Full Backup – Script-based Stream-based backup: The specified script in the Backup
policy Selections tab is executed. If the script is set up properly,
RMAN initiates a full stream-based backup (full or incremental
level 0).
Note: The Application Backup schedule properties (For
example: storage and retention) are used.
Archived redo log backup – The policy dynamically generates an RMAN script on each
OIP Policy Only client for the instances and or instance groups that are
defined in the Instances and Databases tab. The policy
initiates a stream-based archive redo log backup.
Note: The frequency is granular down to intervals of minutes.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 53.
See “About Oracle Intelligent Policies (OIP)” on page 67.
to delete them manually otherwise NetBackup can continue to find the databases
that are deleted.
■ Oracle RAC databases are discovered when NetBackup queries the Oracle
Cluster Ready Services (CRS) in the Oracle Clusterware high availability API.
To change the default setting, use bpsetconfig to add or change the entry:
■ In the Windows registry.
■ In the /usr/openv/netbackup/bp.conf file on UNIX.
Use the following format: REPORT_CLIENT_DISCOVERIES = TRUE | FALSE
Set REPORT_CLIENT_DISCOVERIES to FALSE to shut down the discovery service.
The service shuts down within 10 minutes and remains down on the client. To turn
on the discovery service on that client, set REPORT_CLIENT_DISCOVERIES to TRUE
or remove the entire entry. Then run bp.start_all on the client to restart the
service.
To set this value on a client remotely, run the following command from the master
server:
echo REPORT_CLIENT_DISCOVERIES=FALSE | bpsetconfig -h clientname
See “Manually adding an Oracle database instance to the repository” on page 57.
See “Registering an Oracle database instance” on page 60.
See “About instance actions” on page 66.
See “Viewing the Oracle database instance repository” on page 55.
You can click on one of the instances to select it for an operation. You can also
select multiple instances for an operation with the following exceptions:
■ You can select only one instance at a time to view properties.
■ You can register multiple instances simultaneously only if the OS type is the
same (UNIX or Windows).
The instances are listed with the following column information:
OS Type Specifies the operating system of the host. Valid values are
Windows and UNIX.
ORACLE_HOME The file path of the Oracle home directory where the instance
resides.
Instance Group Specifies the Oracle database instance group name that this
instance is part of. This field is blank if the instance does not belong
to an instance group.
Oracle policy configuration 57
Instance management for an Oracle Intelligent Policy (OIP)
Registered Specifies the date and time when a user registered a set of
credentials for this instance. This field is blank if the instance has
not been given credentials.
Policies The names of the policies that the instance has been assigned to.
Note: If necessary, contact the Oracle database administrator for the correct set
of credentials. The DBA can also manually add the instance if the DBA is not willing
or allowed to share the credentials with the backup administrator. The DBA can
manually add the instance using the nboraadm command on the client. The Oracle
database user is required to have a certain level of credentials. The Oracle database
user must have SYSBACKUP or SYSDBA privileges (based on version of Oracle).
4 Fill in the Instance Name, Host, and ORACLE_HOME parameters. Click Help
to display descriptions of these parameters. For example:
6 Click Edit.
9 (Optional) You can also click Use Oracle RMAN Recovery Catalog to enter
credentials for the RMAN recovery catalog.
10 Click Ok.
The system tries to validate the credentials, report its findings, and return you to
the Change Instance dialog box. Validation can fail for multiple reasons and a
pop-up displays the error message. Click OK to save the credentials as entered. If
you want to enter the credentials again, you can click Cancel and re-enter the
credentials. If you save the credentials that caused the error, the instance is saved
Oracle policy configuration 60
Instance management for an Oracle Intelligent Policy (OIP)
in the repository. You can edit the instance at a later time to correct the validation
issue.
See “Registering an Oracle database instance” on page 60.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 53.
See “Creating an Oracle database instance group” on page 29.
3 Double-click the instance that you want to register. The Edit Instance dialog
box appears. For example, you can select ORAC13 to display the following:
5 In the Credential area, click Edit to display the Register Instance dialog box.
For example:
3 Select the instance that you want to be a member of an instance group. You
can select multiple instances from the list.
4 On the Actions menu, select Register. The Register Instance dialog appears.
For example:
5 On the Instance Group pulldown menu, select the desired instance group
(InstanceGroup1 in the example).
6 Click OK. A Validation Report dialog box appears that describes the validation
successes and failures.
See “About Oracle database instance groups” on page 63.
See “Creating an Oracle database instance group” on page 29.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 53.
See “Registering an Oracle database instance” on page 60.
Action Description
New instance To create a new instance, select Actions > New > Instance. A New Instance dialog
box appears. Enter the instance properties (instance name, host, ORACLE_HOME,
and credentials).
See “Manually adding an Oracle database instance to the repository” on page 57.
New Instance Group To create a new instance group, select Actions > New > Instance Group. A New
Instance Group dialog box appears.
Properties To display instance or instance group properties, highlight the desired item. Then select
Actions > Properties. The Edit Instance appears where you change the instance
properties (instance name, host, ORACLE_HOME, override default TNS_admin path,
and credentials).
Oracle policy configuration 67
About Oracle Intelligent Policies (OIP)
Action Description
Register To register an instance, highlight the instance, then select Actions > Register. The
Register Instance dialog box appears. Change credentials for the selected item.
Delete To delete an instance or an instance group from the instances repository list, highlight
the item to be deleted, then select Actions > Delete.
You cannot delete an instance or an instance group that is part of a policy. First, use
the Instances and Databases tab to delete the instance from the policy. Then, in the
instances repository list, highlight the instance to be deleted, then select Actions >
Delete.
Auto Registration To automatically register newly discovered instances as part of an instance group,
highlight Instances in the left pane, then select Actions > Auto Registration.
Clean up instances This option lets you configure NetBackup to automatically clear orphaned instances
from instance management. Orphaned instances are the databases that were
discovered at one time but were never registered.
To enable instance cleanup, select Clean up After. Next, select how often (days) that
you want NetBackup to perform instance cleanup.
Note: If instance cleanup is enabled and auto registration activated, cleaned up
instances may be rediscovered and added to the auto registration group.
■ All instances that you want backed up must be registered with credentials. If
multiple instances share the same credentials, you can create an instance group
for the set of instances with common credentials.
■ Multiple instance groups can be created for different sets of instances with
different credentials. You can create a default instance group for newly
discovered instances to be automatically added to the group, ensuring that new
instances are protected.
■ The database administrator can control all instances and instance group
credentials using the nboraadm command on the NetBackup client, which
provides improved security throughout the system.
■ You are not required to know RMAN or to write RMAN scripts. Instead, this
feature automatically generates the scripts at run-time.
■ The Job Details in the Activity Monitor lets you view the backup summary,
database state, RMAN input, and RMAN output for the OIP. Also, the Activity
Monitor includes a new Instances column that shows the instance that the
associated policy has backed up.
■ Enhanced error codes enable faster identification, troubleshooting, and correction
of problems. You can easily restart a failed job.
■ You no longer need to create an application backup schedule. You only need
to create automatic backup schedules for the data movement, which simplifies
how retention works on the backup pieces.
■ You can manually back up any number of instances or all the instances.
■ The OIP automatically selects parameter settings at run-time that enable optimal
deduplication.
■ You can create a new archived log schedule that backs up the archived redo
logs within intervals of minutes.
■ The Oracle Intelligent Policy can protect an Oracle database when the Oracle
DBA places database backups in the share on a NetBackup appliance.
■ The OIP can create and maintain a full set of data file copies in the share on a
NetBackup appliance. The Accelerator option is used to update the data file
copies using only the changed blocks since the last full backup.
■ Oracle 12c has introduced container databases (CDB) and pluggable databases
(PDB) and they can be protected using the OIP.
■ You can create bpstart_notify and bpend_notify scripts for an OIP. An OIP
ignores the generic bpstart_notify and bpend_notify scripts and they do
not work for a non-OIP.
Oracle policy configuration 69
About Oracle Intelligent Policies (OIP)
Note: For RAC OIP backups the bpstart_notify and the bpend_notify scripts
must reside on all Oracle RAC nodes.
Oracle DBAs can use the nboraadm command on the NetBackup client to manage
instances, instance groups, and their credentials. This command is particularly
useful in environments where the Oracle credentials are known only by the DBAs
and not the NetBackup administrators.
The Oracle DBA can use the nboraadm command to start an immediate backup
from the client if the NetBackup administrator has given the Oracle DBA proper
permissions. The nboraadm command allows the Oracle DBA to immediately protect
an Oracle database backup instead of waiting for the NetBackup schedule to protect
the database backup. Use nboraadm command with the –immediate option to start
a database backup.
You can select Oracle database instances and instance groups to be part of an
Oracle backup policy. An Oracle backup policy can be created for the default
instance group to ensure that all newly created instances are automatically protected.
You can create an OIP in the following ways:
■ The Policy Configuration Wizard of the NetBackup Administration Console: The
wizard guides you through the setup process by automatically choosing the best
values for most configurations.
■ The Oracle Policy utility on the NetBackup Administration Console: The Oracle
Policy utility is a set of five tabbed panels. The panels contain all the settings
and parameters that are needed to create or change an OIP.
See “Creating an Oracle Intelligent Policy (OIP)” on page 69.
See “About policy attributes” on page 93.
See “Instances and Databases tab” on page 77.
See “Backup Selections tab” on page 79.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 53.
See “About Oracle database instance groups” on page 63.
Step 2 (Conditional) Instance groups are for instances with common credentials.
Create Oracle Add an instance to a group to register that instance. This
instance group. step is not required to create an OIP.
Step 3 Add new policy In the left pane of the NetBackup Administration Console,
and policy name. expand NetBackup Management > Policies.
Step 4 Configure the In the Policy Type pull-down menu, select Oracle. This
Attributes tab. action causes the tabs along the top of the display to change
to a unique Oracle tab set.
Step 5 Configure the The schedules that are defined on the Schedules tab
Schedules tab. determine when backups occur for an OIP.
Step 6 Configure the Select the instances or the instance groups that the OIP will
Instances and back up. An OIP must include either the Protect Instances
Databases tab. and Databases or the Protect instance groups option.
Step 7 Configure the You can backup the Whole database, Partial database -
Backup Tablespaces, Partial database - Datafiles, Fast Recovery
Selections tab. Area (FRA), Database Backup Shares, or the Whole
Database - Datafile Copy Share.
Step 8 Configure the The tab contains setup options for databases, tablespaces,
Oracle tab. data files, archived redo logs, file name formats, and database
backup shares.
■ UNIX: /usr/openv/netbackup/bin/goodies/
■ Windows: Install_path/NetBackup/bin/goodies/
The renamed script must be copied from the server and
placed in the NetBackup bin directory on the client:
■ UNIX: /usr/openv/netbackup/bin/
■ Windows: Install_path\NetBackup\bin\
Examples of renamed scripts:
■ UNIX:
/usr/openv/netbackup/bin/bpstart_notify.oip_instance1
or
/usr/openv/netbackup/bin/bpend_notify.oip_instance2.full
■ Windows:
install_path\NetBackup\bin\bpstart_notify.oip_instance1.bat
or
install_path\NetBackup\bin\bpend_notify.oip_instance2.full.bat
When the discovery service (nbdisco) polls the clients again, it discovers the
database as a new instance. Consequently, there is no way to associate the new
instance to the old instance.
This issue is not version-specific and can affect any valid Oracle upgrade patch,
such as:
■ Oracle 10 to version 11
■ Oracle 10 to version 12
■ Oracle 11 to version 12
For more information on valid Oracle upgrade paths, review the following
documentation on the Oracle Support website:
http://www.oracle.com/technetwork/database/upgrade/
upgrading-oracle-database-wp-12c-1896123.pdf
Therefore, when an existing Oracle database is upgraded and the ORACLE_HOME,
ORACLE_SID, or Oracle User are modified, remove the existing instance in the
instance repository. After the existing instance is removed, update the instance
repository with the new instance information. Make sure to update any policies with
the newly-discovered instances.
See “About Oracle Intelligent Policies (OIP)” on page 67.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 53.
Property Description
Type of backup Specifies the type of backup that this schedule can control. The selection list shows only
the backup types that apply to the policy you want to configure.
Schedule type You can schedule a backup in one of the following ways:
■ Frequency
This setting is used only for scheduled backups. It is not used for user-directed backups.
Frequency specifies the period of time that can elapse until the next backup or archive
operation begins on this schedule. For example, assume that the frequency is 7 days
and a successful backup occurs on Wednesday. The next full backup does not occur
until the following Wednesday. Typically, incremental backups have a shorter frequency
than full backups.
■ Calendar
This setting is used only for scheduled backups. It is not used for user-directed backups.
The Calendar option lets you schedule the backup operations that are based on specific
dates, recurring week days, or recurring days of the month.
Oracle policy configuration 75
About Oracle Intelligent Policies (OIP)
Property Description
Retention Specifies a retention period to keep backup copies of files before they are deleted. The
retention period for an automatic schedule controls how long NetBackup keeps records of
when scheduled backups occurred. Set the time period to retain at least two full backups
of your database. In this way, if one full backup is lost, you have another full backup to
restore.
The type of schedule you select affects the retention period as follows:
■ Frequency-based scheduling
Set a retention period that is longer than the frequency setting for the schedule. For
example, if the frequency setting is set to one week, set the retention period to be at
least 2 weeks. The NetBackup scheduler compares the latest record of the automatic
backup schedule to the frequency of that automatic backup schedule. This comparison
is done to determine whether a backup is due. So if you set the retention period to expire
the record too early, the scheduled backup frequency is unpredictable. However, if you
set the retention period to be longer than necessary, the NetBackup catalog accumulates
unnecessary records.
Oracle is not notified when NetBackup expires a backup image. Use Oracle RMAN
repository maintenance commands to periodically delete expired backup sets from the
Oracle RMAN repository.
■ Calendar-based scheduling
The retention period setting is not significant for calendar-based scheduling.
Multiple copies If you want to specify multiple copies of a backup for the policy, configure Multiple copies
on the application backup schedule.
Accelerator forced This option instructs NetBackup to re-copy all the data files to the share. This option is only
rescan available when Whole Database - Datafile Copy Share is selected in the Backup
Selections tab and the Use Accelerator option is selected in the Attributes tab.
This option forces the creation of a new set of database data file copies. When this option
is not selected, the data file copies in the share are updated using an incremental backup.
The incremental backup contains only the changed blocks since the last full backup.
Property Description
Policy is a snapshot type If the policy is a snapshot type, the following are the possible scenarios of the retention
behavior:
■ If the schedule does not override the policy storage unit, and the policy storage unit
is a non-snapshot SLP, the SLP determines the retention period and the policy
uses the policy storage unit.
■ If the schedule does not override the policy storage unit and the policy storage unit
is not an SLP, the schedule determines the retention period, and the policy uses
the policy storage unit.
■ If the schedule does override the policy storage unit with an SLP, and it is not a
snapshot SLP, the override storage unit takes precedence over the policy storage
unit, and the SLP determines the retention period.
■ If the schedule overrides the policy storage unit with a snapshot SLP, the policy
storage unit must be a non-snapshot SLP. The SLP on the policy storage unit
determines the retention period for the streamed data. Also, the SLP on the schedule
determines the retention for the snapshot data.
Policy is not a snapshot If the policy is not a snapshot type, the following are the possible scenarios of the
type retention behavior:
■ If the schedule does not override the policy storage unit and the policy storage unit
is not an SLP, the schedule determines the retention period.
■ If the schedule does not override the policy storage unit and the policy storage unit
is an SLP, the SLP determines the retention period.
■ If the schedule overrides the policy storage unit, and the schedule storage unit is
not an SLP, the schedule determines the retention period.
■ If the schedule overrides the policy storage unit and the schedule storage unit is
an SLP, the SLP determines the retention period.
The following are examples of the Oracle Intelligent Policy storage and retention
behavior for snapshot-based policy types.
The following are examples of the Oracle Intelligent Policy storage and retention
behavior for stream-based policy types.
AdvancedDisk - Schedule
SLP - SLP
If you add a new Oracle policy or change an existing Oracle policy, this tab appears
along the top of the policy configuration dialog.
You cannot mix instances and instance groups in this list. If you select instances
for a policy, then you want to select an instance group, the instances you select
are deleted from the list.
The Instances and Databases tab displays all the instances or instance groups
that the Oracle policy is scheduled to back up. If you add a new Oracle policy or
change an existing Oracle policy, this tab is one of several tabs that appear along
the top of the dialog. Click Instances to display three possible categories of items:
■ Protect Instances and Databases (OIP option). This panel displays all instances
that you have selected to back up for this policy. To add new instances to this
list, click New. A Select Instances panel appears that displays all registered
instances. Click the check box next to the instance or instances that you want
to add to the list. Instances that are already selected and in the list have their
check boxes checked. If an instance does not appear in this panel because it
is unregistered, you can register that instance and add it to the policy later.
The instance selection does not take effect until you click OK.
Table 4-6 describes all the instance fields for the instances in this list.
■ Protect instance groups (OIP option). This panel displays all instance groups
that you have created. To add new instances to this list, click New. A Select
Instance Group panel appears that displays all instance groups that you have
created. All instances that are a part of an instance group at backup time are
backed up. To add an instance group to the list of groups that are displayed on
this panel, click New.
To see what instances are backed up if the policy is run for an instance group,
select the group from the list, then click Preview Instances. A panel appears
that shows a list of all the registered instances in the group to be backed up.
■ Clients for use with scripts (Non-OIP option). This option is not for use with
OIP. If you want to use the client with scripts method of configuring an Oracle
policy instead of the new instance method, select Clients for use with scripts.
If you select this option, the existing backup selections and instances or instance
group are erased. Also, the Options tab and the Instances and Databases
tab are removed, because those options must now be set in the RMAN script
that the user supplies.
■ Protect RAC databases. This option displays all RAC databases that you have
selected to backup for this policy. If the panel does not display any RAC
databases, click Add new in the web UI to add a RAC to this policy.
Oracle policy configuration 79
About Oracle Intelligent Policies (OIP)
Field Description
Instance Name The selection at the top of the panel determines the listing in the
panel window.
Database Name The name of the selection that is referenced for this policy. The
Backup Selections tab defines what is backed up for the
selections. This column only appears when you select Protect
Instances and Databases. The Database Name can reference:
OS Type Specifies the operating system of the host. Valid values are
Windows and UNIX.
ORACLE_HOME The file path of the Oracle home directory where the instance
resides.
Instance Group Specifies the Oracle database instance group name that this
instance is part of. This field is blank if the instance does not belong
to an instance group.
Registered Specifies the date and time when a user gave the instance a set
of credentials. This field is blank if the instance has not been given
credentials.
■ Whole Database - Datafile Copy Share. This option is used to create and
maintain a full set of data file copies in the share on a NetBackup appliance
(Oracle Copilot).
By default, the Whole database option is selected and the backup selections contain
the directive WHOLE_DATABASE. If you choose one of the partial options (tablespaces
or data files), you must click the New button to display a new panel. The panel
contains a list of instances from which you can select tablespaces or the data files
that the new policy can back up.
When you back up tablespaces or data files, this selection applies across all the
instances and PDBs that are selected in the policy. If a tablespace is selected for
one instance or PDB, that same tablespace is backed up for all instances and PDBs
in the policy.
If you set up an OIP and that policy contains a CDB with PDBs, the CDB$ROOT is
automatically included in the backup. If the policy contains a PDB that is not found
when a backup is performed, an error appears in the Activity Monitor. The
Administration Console displays a status of either 5421 or 5422.
If you select the Database Backup Shares option, the directive
ALL_DATABASE_BACKUP_SHARES is automatically added to the selection list. Using
this directive, the policy backs up all the shares that are used on all appliances per
Oracle policy configuration 81
About Oracle Intelligent Policies (OIP)
instance. Optionally, you can click Browse to display a new panel that contains a
list of appliance shares. The appliance shares are where Oracle DBAs have created
backups for the instances configured in the policy. Select one or more shares that
the new policy should back up. Also, you can click New and add an appliance share
to the policy manually.
When you back up appliance shares for multiple instances, the Database Backup
Shares selection applies across all the instances that are selected in the policy. If
a share is selected for one instance, the data in that share is backed up for all the
instances in that policy.
The Whole Database - Datafile Copy Share option allows the NetBackup
Administrator to choose an appliance share as the destination for the first backup
copy. When the policy runs the first time, an RMAN script is generated that creates
a full set of Oracle data file copies. The copies reside in the appliance share. The
next time that the full schedule runs, the backup is accelerated if the Use
Accelerator option is selected. The RMAN script that is generated performs an
incremental backup and the changed blocks are merged into the data files. This
incremental backup creates an updated full set of Oracle data file copies. After the
new full copy is created in the appliance share, an SLP is used to make additional
copies of the full backup. The first copy is always a remote_vxfs snapshot.
The Use Accelerator feature is automatically selected when you configure an OIP
with the Whole Database - Datafile Copy Share option. The first time that the full
schedule runs it creates a full set of data file copies. After the first full schedule,
only the changes are backed up as a backup set and merged with the existing full
backup. Basically, an incremental merge is performed and Oracle’s Block Change
Tracking feature should be enabled for faster incremental backups. Only one share
can be set up so if you have two or more instances, all instances reside in the same
share.
Note: The Database Backup Shares and Whole Database - Datafile Copy Share
options can only be configured when the media server is a NetBackup appliance.
This option does not work with any other type of media server.
Oracle tab
This tab contains options for databases, tablespaces, data files, archived redo logs,
file name formats, and database backup shares.
Oracle policy configuration 82
About Oracle Intelligent Policies (OIP)
Field Description
Field Description
Tablespace/Datafile Select the Data Guard backup options: option lets you specify a
Options(continued) policy to always back up the primary or a standby database. The
following options are available in the drop-down:
Field Description
Specify maximum Select Specify maximum limits to access several I/O and backup
limits set limits. The following parameters should only have to be modified
on rare occasions. If these values are not changed, the backup
uses the default values that are defined in RMAN. RMAN default
values usually provide the best performance.
Backup Identifier Backup set identifier: (TAG) specifies a user-specified tag name
Options for a backup set, proxy copy, data file copy, or control file copy.
The tag is applied to the output files that the backup generates.
Field Description
Archived Redo Log Select Include archived redo logs in full and incremental
Options schedules to include the archived redo logs on the full and the
incremental schedule backups.
Specify Specify maximum limits to set custom limits for the archive
redo logs.
User Specified Select Specify backup file name formats to set up formats for
Backup File Name various backup file names for data files, archived redo logs, the
Formats control file, and Fast Recovery Area (FRA).
Ensure that the format that is specified for all RMAN backup piece
names (except for auto-backups of the control file) uses the _%u
and ends with _%t. NetBackup uses this timestamp as part of its
search criteria for catalog images. Without this timestamp,
performance might degrade as the NetBackup catalog grows. These
recommendations help to ensure proper backup, restore, and
crosscheck functionality.
Note: By default OIP uses the following
_d%d_u%u_s%s_p%p_t%t.
Oracle policy configuration 86
About Oracle Intelligent Policies (OIP)
Field Description
Database Backup These options let you set a time when backup sets and backup
Share Options copies (data and control file copies) are automatically deleted from
the appliance share. However, the files are only deleted if they have
been successfully backed up from the share. The two options are
Delete protected backup sets from share after and Delete
protected backup copies from share after. The deletion is based
on the age of the file in the share. The original dump time or the
update time (if an incremental merge is done on the file) determines
the age of the file.
Use the drop downs to set the minutes, hours, days, or weeks.
Note: The Database Backup Shares delete options can only be
configured when the media server is a NetBackup appliance. This
option does not work with any other type of media server. This
feature requires a NetBackup appliance with software version 2.7.1
or later.
Note: This feature requires a NetBackup appliance running software version 2.7.1
or later.
This feature enhances the Oracle Intelligent Policy by giving you two options for
protecting an Oracle database using a share on a NetBackup appliance. The first
option gives you better control of backups when Oracle database backups are
placed in an appliance share by the DBA. The second option lets you choose an
appliance share as the destination for the first backup copy. Now you do not have
to rely on the DBA to create backups in the share. You must provision a share on
the appliance for these options using the NetBackup Appliance Shell Menu.
The Database Backup Shares option provides a share for the DBA on the
NetBackup appliance and is protected using the Oracle Intelligent Policy. The
Oracle policy configuration 87
About Oracle Intelligent Policies (OIP)
backup occurs on the appliance as an off-host backup and all data movement
occurs on the appliance and does not affect the Oracle client. Since the OIP protects
the appliance share, the backups are visible when the DBA uses RMAN or Oracle
Enterprise Manager.
The Whole Database - Datafile Copy Share option enhances the OIP to allow the
NetBackup Administrator to choose an appliance share as the destination for the
first backup copy. When the policy runs the first time, an RMAN script is generated
that creates a full set of Oracle data file copies. The data file copies reside in the
appliance share. The next time that the full schedule runs, the backup is accelerated
if the Use Accelerator option is selected. The RMAN script that is generated
performs an incremental backup and the changed blocks are merged into the data
files. This incremental backup creates an updated full set of Oracle data file copies.
After the new full copy is created in the database backup share, an SLP is used to
make additional copies of the full backup. The first copy is always a remote_vxfs
snapshot. The remote_vxfs snapshot creates a vxfs_checkpoint snapshot of the
share on the NetBackup appliance.
On the Attributes tab, the Use Accelerator feature is automatically selected when
you configure an OIP with Whole Database - Datafile Copy Share selected in the
Backup Selections tab. The first time that the full schedule runs it creates a full
set of data file copies. After the first full schedule, only the changes are backed up
as a backup set and merged with the existing full backup. Basically, an incremental
merge is performed. Oracle’s Block Change Tracking feature should be enabled
for faster incremental backups.
When using Oracle Copilot to protect your database, NetBackup does not protect
extended attributes, extent attributes, or Access Control Lists associated with the
database’s data files.
Oracle Copilot works with MSDP Universal share, NetBackup appliance, Flex, Flex
Scale, and BYO. For more information, review the Oracle Copilot with instant access
and universal share section in the NetBackup web UI Oracle Administrator’s Guide.
Note: These options are available to you but only configurable when you have a
NetBackup appliance configured as the media server. Create a share on the
appliance using the procedures in the Managing shares section of the NetBackup
52xx and 5330 Appliance Administrator’s Guide. If you enter a share path that is
not located on an appliance, nothing is backed up.
Note: The NetBackup appliance media server can only be configured in a pure
IPv4 or dual stack IPv4/IPv6 mode.
Oracle policy configuration 88
About Oracle Intelligent Policies (OIP)
See “Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)”
on page 88.
See “Backup Selections tab” on page 79.
See “Creating an Oracle Intelligent Policy (OIP)” on page 69.
See “About restoring from a data file copy to ASM storage using RMAN” on page 149.
Note: This feature requires a NetBackup appliance running software version 2.7.1
or later.
The Database Backup Shares option protects the database backups that an Oracle
DBA creates on a share on the NetBackup appliance.
The Whole Database - Datafile Copy Share option enhances the OIP to allow the
NetBackup Administrator to choose an appliance share as the destination for the
first backup copy. The backup copy is a full set of data file copies that are maintained
by updating only the changed blocks if Use Accelerator is selected.
If using Oracle Copilot with RAC then the following must be configured:
■ Each node of the RAC cluster must have access to the Oracle Copilot share.
■ The Oracle Copilot share has to be mounted on each node of the RAC cluster
using the same mount point name on each node.
Use the following procedure to set up a backup policy that protects shares on the
NetBackup appliance.
To configure an OIP using the Database Backup Shares or Whole Database
- Datafile Copy Share options
1 (Database Backup Shares option) The Oracle DBA asks NetBackup
administrator for the appliance share information.
2 The NetBackup administrator uses the NetBackup Appliance Shell Menu to
create a share on the appliance and then sets permissions for the share.
■ For more information about how to set up the share, see Creating a share
from the NetBackup Appliance Shell Menu in the Veritas NetBackup 52xx
and 5330 Appliance Administrator’s Guide
Schedules tab On the Schedules tab, click New and select Full
Backup.
Backup Selections tab Select the Database Backup Shares option in the
Backup Selections tab.
Oracle tab Set up the deletion of backup sets and data file copies
in the Oracle tab.
Note: The Database Backup Shares option can only be configured when the
media server is a NetBackup appliance. This option does not work with any other
type of media server.
Oracle policy configuration 90
About script-based Oracle policies
Note: The NetBackup appliance media server can only be configured in a pure
IPv4 or dual stack IPv4/IPv6 mode.
Note: All scripts must be stored and run locally. One recommendation is that scripts
should not be world-writable. Scripts are not allowed to be run from network or
remote locations. Any script that is created and saved in the NetBackup db_ext
(UNIX) or dbext (Windows) location needs to be protected during a NetBackup
uninstall.
For more information about registering authorized locations and scripts, review the
following article:
Registering authorized locations used by a NetBackup database script-based policy
On UNIX, NetBackup for Oracle includes a library of functions that enable RMAN
to use NetBackup. You can link to this library.
See “About linking Oracle RMAN with NetBackup for UNIX” on page 38.
On Windows, NetBackup for Oracle includes a library of functions that enable RMAN
to use NetBackup. This library is in c:\Windows\system32.
When you use the RMAN backup command, each resulting backup set contains
at least one backup piece (data file, data file copy, control file, or archive log) from
the target database. You must give each backup piece a unique name using the
format operand. Several substitution variables are available to aid in generating
unique names. You can specify the format operand in the backup command.
NetBackup considers the backup piece name as the file being backed up, so this
name must be unique in the catalog.
For a backup, the following items apply:
Oracle policy configuration 91
About script-based Oracle policies
5 In the Add New Policy dialog box, in the Policy type list, select Oracle. The
tabs along the top of the dialog change to include an Instances and Databases
tab.
The database agent policy type does not appear in the drop-down list unless
your master server has a license for the database agent.
6 Click the Instances and Databases tab and select Clients for use with
scripts.
7 Click Yes on the Backup Policy Management dialog box. The tabs along the
top of the dialog change again to include a Clients tab.
8 Click OK to return to the main screen of the NetBackup Administration
Console. Select View > Refresh to refresh the GUI so that the appropriate
schedule information appears in the Schedules tab.
9 In the right pane, double-click the policy that you have added. Another option
is to right-click on the policy name in the center pane and select Change from
the menu.
10 Complete the entries on the Attributes tab.
See “About policy attributes” on page 93.
11 Add other policy information as follows:
■ Add schedules.
See “Configuring NetBackup for Oracle automatic backup schedules”
on page 73.
■ Add clients. On the Clients tab, click Clients for use with scripts option.
Then click New to display a list of all possible clients. Select new clients
from this list, then click OK.
See “Adding clients to a policy” on page 97.
■ Add scripts to the backup selections list.
See “About adding backup selections to an Oracle policy” on page 98.
See “Registering authorized locations used by a NetBackup database
script-based policy” on page 294.
12 When you have added all the schedules, clients, and backup selections you
need, click OK.
Oracle policy configuration 93
About script-based Oracle policies
Attribute Description
Policy type Determines the types of clients that can be backed up with the policy. For Oracle databases,
select the policy type Oracle.
Limit jobs per policy Sets the maximum number of instances that NetBackup can back up concurrently with this
policy.
Follow NFS This option is available for Oracle policies on UNIX. Select this attribute to back up the files
from NFS-mounted file systems. If this option is not selected, NetBackup cannot perform a
backup of NFS-mounted files.
Keyword phrase For NetBackup for Oracle, the Keyword phrase entry is ignored.
Snapshot Client and This group contains the options that enable backups with Snapshot Client and Replication
Replication Director Director.
Property Description
Type of backup Specifies the type of backup that this schedule can control. The selection list shows only
the backup types that apply to the policy you want to configure.
Oracle policy configuration 94
About script-based Oracle policies
Property Description
Schedule type You can schedule an automatic backup in one of the following ways:
■ Frequency
Frequency specifies the period of time that can elapse until the next backup operation
begins on this schedule. For example, assume that the frequency is 7 days and a
successful backup occurs on Wednesday. The next full backup does not occur until the
following Wednesday. Typically, incremental backups have a shorter frequency than full
backups.
■ Calendar
The Calendar option lets you schedule the backup operations that are based on specific
dates, recurring week days, or recurring days of the month.
Retention The retention period for an application backup schedule refers to the length of time that
NetBackup keeps backup images (stream-based backups). The retention period for an
automatic schedule controls how long NetBackup keeps records of when scheduled backups
occurred (proxy backups). For example, if your database is backed up once every Sunday
morning, you should select a retention period of at least 2 weeks.
The type of schedule you select affects the retention period as follows:
■ Frequency-based scheduling
Set a retention period that is longer than the frequency setting for the schedule. For
example, if the frequency setting is set to one week, set the retention period to be more
than one week. The NetBackup scheduler compares the latest record of the automatic
backup schedule to the frequency of that automatic backup schedule. This comparison
is done to determine whether a backup is due. So if you set the retention period to expire
the record too early, the scheduled backup frequency is unpredictable. However, if you
set the retention period to be longer than necessary, the NetBackup catalog accumulates
unnecessary records.
Oracle is not notified when NetBackup expires a backup image. Use Oracle RMAN
repository maintenance commands to periodically delete expired backup sets from the
Oracle RMAN repository.
Oracle XML export operations create archives for long-term storage and recovery. Set
the retention level to a period of years or to infinity.
■ Calendar-based scheduling
The retention period setting is not significant for calendar-based scheduling.
Multiple copies If you want to specify multiple copies of a backup for the policy, configure Multiple copies
on the application backup schedule. If using Snapshot Client, also specify Multiple copies
on the automatic schedule.
Property Description
Policy is a snapshot type If the policy is a snapshot type, the following are the possible scenarios of the retention
behavior:
■ If a schedule has overridden the policy storage, the override storage on the schedule
takes precedence over the policy storage.
■ If the policy storage is a snapshot SLP, the application schedule must override the
policy storage. The storage that is specified on the application schedule may not
be a snapshot SLP.
■ If the storage being used is not an SLP, the schedule determines the retention for
the snapshot data.
■ If you use the policy storage unit as an SLP, the SLP determines the retention for
the snapshot data.
Policy is not a snapshot If the policy is not a snapshot type, the following are the possible scenarios of the
type retention behavior:
■ If the application schedule has overridden the policy storage, the override storage
on the schedule takes precedence over the policy storage.
■ If the storage being used is not an SLP, the retention is derived from the schedule.
■ If the storage being used is an SLP, the retention is derived from the SLP.
Since all data is streamed, the data is processed using the application schedule.
The following are examples of the script-based policy storage and retention behavior
for snapshot-based policy types:
The following are examples of the script-based policy storage and retention behavior
for stream-based policy types:
See “About NetBackup for Oracle schedule properties using Oracle Intelligent
Policy” on page 74.
Note: All scripts must be stored and run locally. One recommendation is that scripts
should not be world-writable. Scripts are not allowed to be run from network or
remote locations. Any script that is created and saved in the NetBackup db_ext
(UNIX) or dbext (Windows) location needs to be protected during a NetBackup
uninstall.
For more information about registering authorized locations and scripts, review the
knowledge base article:
Registering authorized locations used by a NetBackup database script-based policy
Add scripts to the backup selections list only if you want to set up a policy for
automatic backups. These scripts are run for manual backups and for automatic
schedules as specified under the Schedules tab. NetBackup runs the scripts in
the order that they appear in the backup selections list.
See “Adding a script to the backup selections list in the NetBackup Administration
Console” on page 98.
Note: Be sure to specify the correct script name in the backup selections list to
prevent an error or a wrong operation.
/backup_scripts/db/cold_backup.sh
C:\backup_scripts\db\cold_backup.cmd
Note: Be aware of what may happen if an automatic schedule invokes a script that
a user authored. NetBackup does not provide safeguards to prevent an automatic
backup schedule from running a restore or a recovery script.
■ A backup script
■ An interactive terminal session
Additionally, once RMAN is started it connects to the database instance and starts
the Oracle database server processes that perform the backup. If the connection
is by local logon and password (without a TNS alias), the Oracle database server
process is a child of the RMAN program. The Oracle database server process
inherits the environment from RMAN. Because the NetBackup for Oracle agent is
a shared library loaded into the Oracle database server process it too inherits that
environment.
However, if RMAN connects to the database instance by SQL*Net (logon and
password@TNSalias) the Oracle database server process is a child of the SQL*Net
listener service. This SQL*Net listener service was started previously and
independently of RMAN. As a result, the NetBackup for Oracle agent does not
inherit the environment from RMAN. Instead, the agent inherits the environment
from which the listener service was started
To avoid unexpected results, it is recommended to configure RMAN to always use
the send command to pass the desired variables and values to NetBackup explicitly.
Alternatively the RMAN ENV parameter can be used to make the variables and
values available to NetBackup.
Example 1. Use the send command to specify the policy and server to use for a
database backup. As this example shows, specify the variables in the string in the
RMAN script after all channels have been allocated and before the backup
command.
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
send 'NB_ORA_POLICY=your_policy,NB_ORA_SERV=your_server';
backup (database format 'bk_%U_%t');
release channel t1;
release channel t2;
}
Example 2. Use the parms operand to specify the policy and server to use for a
database backup. The parms operand is set with each allocate channel command
in the shell script.
run {
allocate channel t1 DEVICE TYPE 'SBT_TAPE'
PARMS "SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,
ENV=(NB_ORA_POLICY=your_policy,NB_ORA_SERV=your_server)";
allocate channel t2 DEVICE TYPE 'SBT_TAPE'
Oracle policy configuration 102
About script-based Oracle policies
PARMS "SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,
ENV=(NB_ORA_POLICY=your_policy,NB_ORA_SERV=your_server)";
backup (database format 'bk_%s_%p_%t');
release channel t1;
release channel t2;
}
Option Purpose
SEND 'BKUP_IMAGE_PERM=ANY';
Note: The BKUP_IMAGE_PERM option does not affect the
permissions for the physical files that are included in an
RMAN Proxy copy backup. Ensure the physical file owner,
group, and permissions are set correctly before the backup.
NB_ORA_COPY_NUMBER Specifies which copy of the backup image to use for the
restore.
Option Purpose
NB_ORA_POLICY Specifies the name of the policy to use for the Oracle
backup.
http://www.veritas.com/docs/TECH227741
NB_ORA_DISK_MEDIA_SERVER Specifies which media server to use when more than one
has access to the image to be restored.
Option Purpose
For more information, see the NetBackup System Administrator’s Guide, Volume
I.
See “About configuring the run-time environment” on page 99.
See “About the bp.conf file on UNIX systems” on page 105.
See “About the environment variables set by a user in the XML export parameter
file” on page 269.
See “About the environment variables set by NetBackup for Oracle” on page 102.
Option Purpose
BPBACKUP_POLICY This option specifies the name of the policy to use for
the backup.
Option Purpose
For more information, see the NetBackup System Administrator’s Guide, Volume
I.
The following shows example bp.conf entries for an Oracle user:
SERVER=jupiter
CLIENT_READ_TIMEOUT=900
VERBOSE=1
Note: The Backup, Archive, and Restore GUI cannot be used for performing Oracle
backups and restores.
Backup type RMAN supports the following different types of backups (In the
examples, n must be 1 or higher):
■ BACKUP FULL
■ BACKUP INCREMNTAL LEVEL 0 (Full backup base for incremental
backups)
■ BACKUP INCREMENTAL LEVEL n (Differential incremental
backup)
■ BACKUP INCREMENTAL LEVEL n CUMULATIVE (Cumulative
incremental backup)
When generating a data file backup set, you can make either an
incremental backup or a full backup. Both a full backup and an
incremental level 0 perform a complete backup of the data file. However,
an incremental level 0 backup can be used as the base for incremental
level n and or incremental level n cumulative backups.
■ Each output file must have a unique name. Use the %U format
specifier to satisfy this restriction. %U is equivalent to %u_%p_%c,
and it guarantees the uniqueness of the backup set name in all
circumstances.
■ Put %t at the end of the backup file name format. NetBackup uses
the timestamp as part of its search criteria for catalog images.
Without this timestamp, performance might degrade as the
NetBackup catalog grows.
■ Ensure that the format that is specified for all RMAN backup piece
names does not contain any space characters.
See “About the NetBackup for Oracle sample scripts” on page 108.
See “Using the NetBackup for Oracle sample scripts” on page 109.
See “About the set duplex command” on page 109.
install_path\NetBackup\dbext\Oracle\samples\rman
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
cold_duplex_cluster_database_backup_full.cmd
cold_cluster_database_backup.cmd
cold_database_backup.cmd
cold_pdb_backup.cmd
cluster_database_restore.cmd
complete_database_restore.cmd
complete_pdb_restore.cmd
hot_database_tablespace_backup_proxy.cmd
hot_pdb_backup.cmd
hot_database_backup.cmd
hot_pdb_tablespace_backup_proxy.cmd
pit_database_restore.cmd
pit_cluster_database_restore.cmd
pit_pdb_restore.cmd
UNIX:
cold_database_backup.sh
cold_pdb_backup.sh
hot_database_backup.sh
hot_database_tablespace_backup_proxy.sh
hot_pdb_backup.sh
hot_pdb_tablespace_backup_proxy.sh
Oracle policy configuration 109
About script-based Oracle policies
complete_database_restore.sh
complete_pdb_restore.sh
pit_database_restore.sh
pit_pdb_restore.sh
By default, duplex is OFF (a single backup set is produced). If you specify ON, it
produces two identical backup sets.
Note that you must enable the BACKUP_TAPE_IO_SLAVES initialization parameter to
perform duplexed backups. RMAN configures all media as needed for the number
of backup copies you request. For more information on BACKUP_TAPE_IO_SLAVES,
see your Oracle documentation.
Oracle policy configuration 110
Configuring the logon account for the NetBackup Client Service for NetBackup for Oracle
Use the send command to specify the policy and schedule to use with each backup.
Because NetBackup uses the policy or schedule to determine what media to use,
this information is required for each copy, or an error occurs.
The command syntax is as follows:
The keywords that are used to specify a policy are CPF1_POLICY, CPF2_POLICY,
CPF3_POLICY, and CPF4_POLICY, which specify the backup policy for duplexed file
1 through duplexed file 4.
The keywords that are used to specify a schedule are CPF1_SCHED, CPF2_SCHED,
CPF3_SCHED, and CPF4_SCHED, which specify the Application Backup schedule for
duplexed file 1 through duplexed file 4.
Note: In a cluster environment, perform the steps on each database node in the
cluster. For an off-host backup, perform the steps on the alternate client.
To configure the logon account for the NetBackup Client Service for
NetBackup for Oracle
1 Open the Windows Services application.
2 Double-click the NetBackup Client Service entry.
3 Click the Log On tab.
4 Type the account name with SYSDBA privileges.
5 Type the password.
6 Click OK.
7 Stop and start the NetBackup Client Service.
8 Close the Services control panel application.
■ Cleaning up the Oracle Copilot share after point in time restore of database
■ About restoring from a data file copy to ASM storage using RMAN
can also use the Oracle Enterprise Manager to perform Oracle backup and recovery
operations. The Oracle RMAN command line interface is also used to maintain and
query the RMAN repository.
Register a Before using RMAN with a recovery catalog, register the target database in the recovery catalog.
database with the To register, start and mount the target database but do not open it. At the RMAN prompt, issue
recovery catalog a register database command.
Reset the The reset database command directs RMAN to create a new database incarnation record in
incarnation in the the recovery catalog.
recovery catalog
Performing backups and restores of Oracle 115
Maintaining the RMAN repository
Crosscheck the Because NetBackup can expire images independently from Oracle, the RMAN repository can
information in the contain outdated information. Run an RMAN crosscheck to ensure that data in the recovery
RMAN repository catalog or control file is in sync with data in the backup image catalog. The crosscheck queries
NetBackup for the existence of each backup piece and then marks it as available or expired in
the RMAN repository. Use one of the following commands to check the specified files. You need
to run separate commands to delete images or repository records.
■ The crosscheck backupset command operates on available and expired backup pieces.
RMAN updates their status with the result (available or expired).
■ To crosscheck a database, start RMAN and connect to the target database and to the recovery
catalog (if used). At the rman command prompt, enter the following:
Crosscheck using If files on an Oracle Copilot share are deleted outside of RMAN, the subsequent incremental
the Oracle Copilot merge backups that are done to the share fail. An RMAN crosscheck of the share must be done
share before the next backup to prevent more failures. This version of the RMAN crosscheck is slightly
different from the other crosscheck examples because of the need to specify type disk instead
of type SBT_TAPE. When running the RMAN crosscheck, the default is the
NetBackup_policyname. However, if the Datafile copy tag is changed in the Oracle tab, then
that tag name must be used in place of NetBackup_policyname. An example of the command
syntax follows (using the default NetBackup_policyname):
Run {
Allocate channel ch00 type 'disk';
crosscheck backup tag <Netbackup_policyname>;
delete noprompt expired backup;
crosscheck copy <Netbackup_policyname>;
delete noprompt expired copy;
release channel ch00;
}
Delete obsolete The DELETE OBSOLETE command deletes the backups that are no longer needed to satisfy
backups specified recoverability requirements. You can delete obsolete pieces according to the configured
default retention policy, or another retention policy that a DELETE OBSOLETE option specifies.
As with other forms of the DELETE command, the deleted files are removed from the backup
media (expired from NetBackup). Then they are deleted from the recovery catalog, and marked
as DELETED in the control file.
If you specify the DELETE OBSOLETE command with no arguments, then RMAN deletes all the
obsolete backups that the currently configured retention policy defines. For example:
You can also use the REDUNDANCY or RECOVERY WINDOW clauses with DELETE to delete the
backups that are obsolete under a specific retention policy instead of the configured default:
Delete expired The delete expired backupset command operates only on the expired backup pieces that
backups are found in the recovery catalog. RMAN removes them from the recovery catalog and also from
the backup media (expires them from NetBackup).
To delete expired backup sets of a database from the recovery catalog, start RMAN and connect
to the target and the recovery catalog databases. At the RMAN command prompt, type the
following commands:
The crosscheck and delete backupset commands restrict the list of objects to only those
that are operated on. The restrictions are placed on the specified Oracle device type (disk or SBT
tape), object type (archived logs or database files), and date range.
Resynchronize the RMAN compares the recovery catalog to either the current control file of the target database or
recovery catalog a backup control file. It subsequently updates the catalog with the missing information or changed
information.
If you are running in ARCHIVELOG mode, do the following: Resynchronize the recovery catalog
regularly because the recovery catalog is not updated automatically when a log switch occurs or
when a redo log is archived.
You must also resynchronize the recovery catalog after making any change to the physical
structure of the target database. As with log archive operations, the recovery catalog is not
automatically updated when a physical schema change is made.
The RMAN backup, copy, restore, and switch commands update the recovery catalog
automatically when the target database control file is available. The recovery catalog database
is available when one of these commands is executed.
If the recovery catalog is unavailable when you issue backup or copy commands, you should
resynchronize it manually.
To resynchronize the recovery catalog, start RMAN and issue the resync catalog command.
Performing backups and restores of Oracle 118
Querying the RMAN repository
Change the Periodically, you might need to notify RMAN that the status of a backup set, backup piece, data
availability of a file copy, or archived redo log has changed. The RMAN change command enables you to make
backup set or file a variety of useful record changes.
copy
The change ... uncatalog command removes references to a backup piece, data file copy,
or archive log from the recovery catalog. This command works only with a recovery catalog.
The change ... delete command removes references to a backup piece, data file copy, or
archive log from the control file and recovery catalog. It physically deletes the file. This command
works with or without a recovery catalog.
The change ... crosscheck command removes references to a backup piece, data file
copy, or archive log from the control file and recovery catalog. The references are removed when
that file no longer exists. This command works with or without a recovery catalog.
The change ... unavailable command marks a backup piece, data file copy, or archive
log as unavailable. This command works only with a recovery catalog.
Validate the A restore validation retrieves the backup pieces from storage (NetBackup) and checks that the
restore of backups retrieved pieces are intact. But the restore validation discards the backup pieces without saving
the contents into the database.
Use restore ... validate when you want RMAN to choose the backups to test.
Use validate backupset when you want to specify the backup sets to test.
■ What was the physical schema of the database at some previous point in time?
The list command queries the recovery catalog and control file and produces a
listing of its contents. The primary purpose of the list command is to determine
the backups that are available.
You can list the following information:
■ Backup sets containing a backup of a specified list of data files.
■ Backup sets containing a backup of any data file that is a member of a specified
list of tablespaces.
■ All backup sets or copies of all data files in the database.
■ Backup sets containing a backup of any archive logs with a specified name or
within a specified range.
■ Incarnations of a specified database or of all databases that are known to the
recovery catalog.
For more information on querying the RMAN repository, see your Oracle
documentation.
Automatic backups When the NetBackup scheduler invokes a schedule for an automatic
backup, the NetBackup for Oracle backup shell scripts run as
follows:
The NetBackup for Oracle backup shell scripts start the database
backup by running the rman command.
Manual backups You can use the NetBackup server software to manually run an
automatic backup schedule for the Oracle policy. For more
information, see the NetBackup Administrator’s Guide, Volume I.
See “Running the NetBackup for Oracle shell script” on page 120.
See “Overview of using NetBackup for Oracle” on page 113.
See “Browsing backups using the bplist command” on page 121.
install_path\oracle\scripts\db_full_backup.cmd
UNIX:
/oracle/scripts/db_full_backup.sh
The shell starts the database backup by running the Oracle shell script. The Oracle
shell script contains commands to run rman.
The NetBackup installation script installs sample scripts in the following location:
Windows:
install_path\NetBackup\dbext\oracle\samples\rman
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
Running RMAN
As an Oracle user, you can run the rman command from the command prompt with
the RMAN command file as a parameter. This topic describes how to set the master
server to hag and the Oracle policy to obk before you start the backup.
On Windows, RMAN functionality runs as a service, so use the send operand to
set up the run-time environment. To start a backup using the rman command from
the command prompt, type the following:
Performing backups and restores of Oracle 121
Browsing backups using the bplist command
If you intend to connect to a database using a TNS alias, the RMAN send command
specifies the environment variables. The example sets the master server to hag
and the Oracle policy to obk before you start the backup.
See “About the bp.conf file on UNIX systems” on page 105.
Note: To run script files for database operations other than backups or restores, it
is recommended that you run the rman command directly rather than NetBackup.
For rman command script syntax and examples, see your Oracle documentation.
# bplist -C jupiter -t 4 -R /
/exb_n2bm5bco_1_1392342936
/exb_mabm02ko_1_1392170136
/exb_lqbltds6_1_1392083334
The -t 4 on this command specifies the Oracle backups. The -R specifies the
default number (999) of directory levels to search.
Performing backups and restores of Oracle 122
Managing expired backup images
For more information on the bplist command, see the NetBackup Commands
Reference Guide.
You can also use the RMAN report and list commands to browse Oracle backups.
See “Querying the RMAN repository” on page 118.
■ Ensure that the format that is specified for all RMAN backup piece names (except
for autobackups of the control file) ends with _%t.
■ Ensure that the format that is specified for all RMAN backup piece names does
not contain any space characters.
■ Avoid the creation of excessive, small backup pieces of database files or archive
logs.
You can manually remove references to backup images from the Oracle RMAN
repository. Use RMAN repository maintenance commands to remove references
to backup files. You can use these commands to delete backup image information
from both the Oracle RMAN repository and the NetBackup repository.
More information is available on the RMAN repository maintenance commands.
See “Maintaining the RMAN repository” on page 114.
When a request is issued to delete a backup file from the RMAN repository, RMAN
sends the request to NetBackup. The request tells NetBackup to delete the
corresponding image from the NetBackup repository, regardless of the retention
level.
Note: The normal image expiration (retention) and the bpexpdate command are
unaffected by this setting.
In a clustered primary server environment, these settings should be set and match
in all the primary server bp.conf files.
The following is an example of a log entry when a status code of 1420 is produced.
The dbclient log message for Oracle:
install_path\oracle\scripts\database_restore.cmd
UNIX:
/oracle/scripts/database_restore.sh
The operating system shell starts the database restore by running the Oracle shell
script file. The Oracle shell script file contains commands to run RMAN.
The NetBackup installation script writes sample scripts to the following location:
Windows:
install_path\Netbackup\dbext\oracle\samples\rman\
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
Performing backups and restores of Oracle 125
About NetBackup for Oracle restores
About catalog names with RAC and Data Guard aware intelligent
policies
Oracle Data Guard and RAC aware intelligent policies catalog the backup images
under a special client name within the NetBackup catalog. Data Guard enabled
policies use the format databaseName_databaseID as the client name. RAC aware
policies use the format databaseUniqueName_databaseID. If a RAC database is
in a Data Guard enabled policy, the catalog name uses the Data Guard catalog
name.
See the NetBackup Commands Reference Guide for details of the nboraadm
command.
RAC databases and single instances databases can be associated with a single
Data Guard configuration. For Data Guard enabled policies, the Data Guard
configuration in NetBackup is added or updated automatically at policy run time.
Only RAC databases and single instance databases are added to a Data Guard
configuration after a back up has occurred. Any client that is part of a RAC database
configuration or single instance databases has access to the associated Data Guard
backup images. User name and user IDs along with group name and group IDs
should match across hosts in the Data Guard configuration to have access to the
backed-up files.
To see the list of RAC databases or single instance databases that are associated
with a Data Guard configuration use the nboraadm command with the
-list_data_guard_rac_databases or the -list_data_guard_instances option.
If a database has not been backed up with NetBackup and needs future access to
the database backups that NetBackup stores, it must be added to the Data Guard
configuration. You can use the nboraadm command using the
Performing backups and restores of Oracle 126
About NetBackup for Oracle restores
See the NetBackup Commands Reference Guide for details of the nboraadm
command.
Note: Multistream restore only works when using Oracle backup images and is
only accessible using command-line inputs.
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_PC_STREAMS=<number of restore streams>';
RESTORE DATABASE; RECOVER DATABASE;
RELEASE CHANNEL ch00;
}
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE'
PARMS "ENV=(NB_ORA_PC_STREAMS= <number of restore streams>)";
RESTORE DATABASE; RECOVER DATABASE;
RELEASE CHANNEL ch00;
}
The user on client A cannot initiate a redirected restore to client B. Only the user
on client B, which is the client receiving the backup image, can initiate the redirected
restore. Any user who belongs to the database group that performed the backup
can restore it, unless the BKUP_IMAGE_PERM variable was set to USER.
Performing backups and restores of Oracle 129
About NetBackup for Oracle restores
If you use a non-root service user account, specific access must be allowed for that
user when you add files to the /usr/openv/netbackup/db/altnames directory.
The service user account must have full access to these files through the ownership
or group and the permissions. For example, if the service user is svcname and its
group is srvgrp, the file can have permissions of 400. If the file owner is for a
different user and group, the file permissions must allow access to the service user.
For example, 777. Equivalent permission settings must be used in a Windows
environment.
Note: If the RMAN catalog database has been lost, restore the catalog database
first before continuing with the redirected restore.
3 On UNIX, check the bp.conf files on the source client. Make sure that the
CLIENT_NAME variable either is not set or is set to the host name of the source
client.
4 Make the init.ora file of the source client available to the destination client.
Copy the file to the destination client or modify the file on the destination client.
Change all location-specific parameters.
5 Create a folder or set the permissions for a directory to restore the data files:
■ On Windows, create and start an Oracle service for the previously set
ORACLE_SID. Create the folder to which you want to restore the data files.
■ On UNIX, grant write permission to the directory to which you want to restore
the data files.
9 On UNIX, set dbid to be the DBID of the source client database. Connect to
the target database without using a user ID and password.
10 Run an RMAN restore script. On UNIX, you can alternatively type the RMAN
commands for the restore.
■ The user is connected to the Oracle database using a local connection, not
SQL*Net
■ UNIX user is ora on both camel and giraffe
To perform a redirected restore (example)
1 Create the following file on server lion:
Windows: install_path\NetBackup\db\altnames\giraffe
UNIX: /usr/openv/netbackup/db/altnames/giraffe
Edit giraffe to contain the name camel:
2 Do one of the following:
■ Windows: Use the BAR GUI to set lion as the master server.
■ UNIX: Log onto giraffe as ora. Set SERVER=lion in
$ORACLE_HOME/bp.conf. This server must be the first server that is listed
in the bp.conf file.
3 Modify the network tnsnames.ora file to enable the RMAN catalog connection.
4 Create inittest.ora.file.
5 Windows: Using Oracle administration, create and start ORACLESERVICETEST.
6 Set the environment variable ORACLE_SID to test. On UNIX, also set
NB_ORA_CLIENT to camel.
Performing backups and restores of Oracle 132
Using NetBackup for Oracle in a Microsoft Windows cluster environment
7 Make sure that the destination database directory exists and has appropriate
access permissions.
The data files are restored to the directory path with the same name they had
when they were backed up.
8 Start the database in a nomount state.
On UNIX, the following is the output:
Now apply the archived logs. Type cancel when you decide to stop recovery.
NetBackup for Oracle users in a Microsoft Cluster environment must take some
additional steps to prepare for server-directed backups, user-directed backups, and
user-directed restores.
install_path\NetBackup\dbext\oracle\samples\rman\
To take the database instance offline with Failsafe graphical user interface
1 Select the Oracle database resource in the Failsafe graphical user interface.
2 Choose to bring it offline.
To take the database instance offline with Failsafe command line (FSCMD), type
the following command:
■ fscmd offlineresource salesdb /cluster=curly /offline=immediate
/domain=domainname /user=user /pwd=pwd
normal Shuts down the database and doesn’t allow new connections after
the command was issued. This command waits for the connected
users to disconnect before the database is shut down.
transactional Shuts down the database only after all of the current transactions
have completed.
Because the offlineresource operation shuts down the Oracle database service,
enter the following command to start the Oracle database service:
Note: When performing user-directed backups, make sure that you are on the node
that owns the shared drive where the Oracle database is installed.
Note: When user-directed client restores are performed with different configuration
options of NetBackup failover media servers and a UNIX or Windows master server,
see the NetBackup Administrator’s Guide, Volume I.
Note: The functionality for creating an instant recovery point is not in the GUI. This
feature is command line option only.
Refer to the NetBackup Commands Reference Guide for more usage options using
the nborair command.
To create an instant recovery point
1 Determine if there are any images available for instant recovery by running the
nborair –list_images [-client name] [-server master] command.
The NetBackup administrator or the DBA can run this command from the
NetBackup client or master server.
Example output:
2 List the files that are included in the backup image by running the nborair
–list_files –backupid backup_id command.
The NetBackup administrator or the DBA can run this command from the
NetBackup client or master server. The DBA sees only the files they can access
when this command is run.
Example output:
4 Mount the recovery point on the destination client using the OS tools and with
the required mount options per Oracle documentation.
Example:
mount –t nfs
appl5330:/shares/share1_orachost1.demo.com_1472590277_rp1 /mnt
For Windows, Oracle’s DNFS needs to be configured. The recovery point has
to be exported with the insecure option.
5 (Conditional) On the destination host, verify the mount point is from the backup
ID that was requested by running the nborair –validate –backupid
backup_id -mount_path mount_path command.
The NetBackup administrator or the DBA can run this command on the
destination host.
Example output:
Note: The NetBackup appliance media server can only be configured in a pure
IPv4 or dual stack IPv4/IPv6 mode.
See “Single-step restore to ASM storage from an Oracle Copilot recovery point”
on page 145.
Performing backups and restores of Oracle 138
Deleting an instant recovery point for Oracle Copilot instant recovery
Note: The functionality for deleting an instant recovery point is not in the GUI. This
feature is command line option only.
Refer to the NetBackup Commands Reference Guide for more usage options using
the nborair command.
To delete an instant recovery point
1 (Conditional) Verify the recovery point is unmounted from the destination client
using the OS tools.
UNIX: umount /mnt
2 List the recovery point on the NetBackup appliance by running the nborair
–list_recovery_points –appliance appliance_name command.
The NetBackup administrator must run this command from the NetBackup
master server.
Example output:
3 Delete the recovery point on the NetBackup appliance by running the nborair
-delete_recovery_point -appliance appliance_name -export_path
export_path command.
The NetBackup administrator must run this command from the NetBackup
master server.
Example output:
Note: The functionality for cleaning up an Oracle Copilot share is not in the GUI.
This feature is command line option only.
NLS_DATE_FORMAT=DD-MON-YY_HH24:MI:SS
export NLS_DATE_FORMAT
Windows:
set NLS_DATE_FORMAT=DD-MON-YY_HH24:MI:SS
3 Log into RMAN and if NetBackup uses the RMAN catalog, it is required to log
in to the catalog.
4 Use the RMAN> list incarnation of database; command to find the Reset
Time for the current incarnation.
Example:
Example:
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- ------------------ ------- ------- ---------- ---
10192 B F A DISK 27-APR-17_10:42:59 1 1 NO TAG20170427T104257
10193 B F A DISK 27-APR-17_13:16:37 1 1 NO TAG20170427T131636
10194 B F A DISK 27-APR-17_13:16:55 1 1 NO TAG20170427T131654
10195 B F A DISK 27-APR-17_13:28:52 1 1 NO TAG20170427T132851
10196 B F A DISK 27-APR-17_13:29:08 1 1 NO TAG20170427T132906
10197 B F A DISK 27-APR-17_14:00:31 1 1 NO TAG20170427T140031
10198 B F A DISK 27-APR-17_14:00:43 1 1 NO TAG20170427T140043
10199 B F A DISK 27-APR-17_14:07:31 1 1 NO TAG20170427T140730
10200 B F A DISK 27-APR-17_14:07:48 1 1 NO TAG20170427T140747
10759 B A A DISK 28-APR-17_10:28:46 1 1 NO DCS_CDB
10786 B F A DISK 28-APR-17_10:28:56 1 1 NO DCS_CDB
10814 B F A DISK 28-APR-17_10:29:08 1 1 NO DCS_CDB
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- ------------------ ------- ------- ---------- ---
10759 B A A DISK 28-APR-17_10:28:46 1 1 NO DCS_CDB
10786 B F A DISK 28-APR-17_10:28:56 1 1 NO DCS_CDB
10814 B F A DISK 28-APR-17_10:29:08 1 1 NO DCS_CDB
Performing backups and restores of Oracle 141
Cleaning up the Oracle Copilot share after point in time restore of database
7 Use the list backup completed before "to_date()" device type disk
tag ''; command to remove the summary option to see what files need
deleting.
Example:
Example:
Do you really want to delete the above objects (enter YES or NO)? YES
deleted backup piece
backup piece handle=C:\HA_NBA_SHARE\ARCH_D-ORACLEC2_I-3019371157_SCN-2323355_26S2QF5F_DCS_CDB
RECID=50 STAMP=942488751
deleted backup piece
backup piece handle=C:\HA_NBA_SHARE\SPFILE_D-ORACLEC2_I-3019371157_T-20170428_27S2QF5I_DCS_CDB
RECID=51 STAMP=942488754
deleted backup piece
backup piece handle=C:\HA_NBA_SHARE\CF_D-ORACLEC2_I-3019371157_T-20170428_28S2QF5L_DCS_CDB
RECID=52 STAMP=942488758
Deleted 3 objects
Performing backups and restores of Oracle 143
Cleaning up the Oracle Copilot share after point in time restore of database
9 Use the list copy completed before "to_date()" tag ''; command to
find the data file copies on the share using the same reset time and tag.
Example:
specification does not match any control file copy in the repository
List of Datafile Copies
=======================
Key File S Completion Time Ckp SCN Ckp Time
------- ---- - ------------------ ---------- ------------------
10649 1 A 28-APR-17_10:25:39 2323417 28-APR-17_10:25:15
Name: C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-SYSTEM_FNO-1_1GS2QE1J_S-48_
I-3019371157_DCS_CDB
Tag: DCS_CDB
10 Use the delete copy completed before "to_date()" tag ''; command
to delete the data file copies on the selected share.
Example:
Do you really want to delete the above objects (enter YES or NO)? YES
deleted datafile copy
datafile copy file name=C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-SYSTEM_FNO-1_1GS2QE1J_
S-48_I-3019371157_DCS_CDB RECID=36 STAMP=942488739
deleted datafile copy
datafile copy file name=C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-SYSTEM_FNO-2_1LS2QEGQ_
S-53_I-3019371157_DCS_CDB RECID=29 STAMP=942488132
deleted datafile copy
datafile copy file name=C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-SYSAUX_FNO-3_1IS2QE8G_
S-50_I-3019371157_DCS_CDB RECID=35 STAMP=942488739
deleted datafile copy
datafile copy file name=C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-SYSAUX_FNO-4_1JS2QEBG_
S-51_I-3019371157_DCS_CDB RECID=27 STAMP=942487999
deleted datafile copy
datafile copy file name=C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-UNDOTBS1_FNO-5_1HS2QE57_
S-49_I-3019371157_DCS_CDB RECID=34 STAMP=942488738
deleted datafile copy
datafile copy file name=C:\HA_NBA_SHARE\DATA_D-ORACLEC2_I-3019371157_TS-USERS_FNO-6_1NS2QEJV_
S-55_I-3019371157_DCS_CDB RECID=33 STAMP=942488737
Deleted 6 objects
Note: The functionality for single-step restore to ASM storage is not in the GUI.
This feature is run with RMAN only.
The procedure example assumes that a recovery point is already mounted and
uses the mount point of /db_mp as the example. All RMAN commands must run
from the target host.
Performing backups and restores of Oracle 146
Single-step restore to ASM storage from an Oracle Copilot recovery point
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
2 Restore the data files from the point in time of the recovery point.
The following RMAN restore is from disk (DISK). Also, this example uses the
NLS_DATE_FORMAT="DD-MM-YYYY-HH24:MI:SS" command that was set in the
environment before RMAN was run. Use the date format for your environment.
RMAN> run
{
allocate channel ch00 type sbt_Tape;
recover database;
release channel ch00;
}
archived log for thread 1 with sequence 508 is already on disk as file
/db/orac112/app/fast_recovery_area/ORAC112/archivelog/2016_09_29/o1_mf_1_508_cytbkv22_.arc
archived log for thread 1 with sequence 509 is already on disk as file
/db/orac112/app/fast_recovery_area/ORAC112/archivelog/2016_09_29/o1_mf_1_509_cytbkv36_.arc
....
archived log file name=
/db/orac112/app/fast_recovery_area/ORAC112/archivelog/2016_09_29/o1_mf_1_508_cytbkv22_.arc
thread=1 sequence=508
archived log file name=
/db/orac112/app/fast_recovery_area/ORAC112/archivelog/2016_09_29/o1_mf_1_509_cytbkv36_.arc
thread=1 sequence=509
....
media recovery complete, elapsed time: 00:00:55
Finished recover at 2016-10-12:15:55:09
RMAN>
See “Creating an instant recovery point from an Oracle Copilot image” on page 135.
See “About using a NetBackup appliance share for Oracle backups (Oracle Copilot)”
on page 86.
Performing backups and restores of Oracle 149
About restoring from a data file copy to ASM storage using RMAN
See “Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)”
on page 88.
RUN {
ALLOCATE CHANNEL ch00
TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=clientname,NB_ORA_SERV=servername';
SET NEWNAME FOR TABLESPACE USERS TO '/dump/%U';
RESTORE TABLESPACE USERS;
RELEASE CHANNEL ch00;
}
Once the file is on a file system, then you can restore to ASM storage by running
the following:
RUN {
ALLOCATE CHANNEL dc00 DEVICE TYPE DISK;
RESTORE TABLESPACE USERS;
RECOVER DATABASE;
RELEASE CHANNEL dc00;
}
Chapter 6
NetBackup for Oracle with
Snapshot Client
This chapter includes the following topics:
Snapshot backup captures the data at a particular instant without having caused
significant client downtime. Client operations and user access continue without
interruption during the backup. The resulting capture or snapshot can be backed
up without affecting the performance or availability of the database.
The following NetBackup Snapshot Client features are available for use with
NetBackup for Oracle.
Table 6-1 Snapshot Client features used with NetBackup for Oracle
Feature Description
Instant recovery This feature enables instant recovery of backups from disk.
It combines snapshot technology with the ability to do rapid
disk-based restores. NetBackup creates the image without
interrupting user access to data. Optionally, the image is
retained on disk as well as backed up to storage. Instant
recovery enables block-level restores.
Table 6-1 Snapshot Client features used with NetBackup for Oracle
(continued)
Feature Description
File-based operations Oracle provides the list of files that require backup or restore
to NetBackup for Oracle with Snapshot Client.
Proxy copy
A proxy copy is a special type of backup in which the NetBackup for Oracle agent
manages the control of the data transfer. During the backup and restore operations,
proxy copy enables the agent to manage the entire data movement between the
disks that contain the data files and the storage devices that NetBackup manages.
With proxy copy, RMAN provides a list of files that require backup or restore to the
NetBackup for Oracle agent. The agent determines how the data is moved and
when to move the data. Proxy copy is an extension to Oracle’s Media Management
API.
Backups and restores remain tightly integrated with RMAN and its catalog, which
greatly simplifies administration tasks.
moves the data that the server process provides. NetBackup captures the data
stream content that RMAN provides. If the user has specified multiple streams,
then RMAN opens multiple streams and NetBackup catalogs them as separate
images.
Figure 6-1 represents a stream-based backup or restore.
Oracle Server
Data
Control commands
Oracle database Oracle database
disk disk
NetBackup
Storage
Figure 6-2 NetBackup for Oracle with Snapshot Client file-based backup or
restore
Oracle Server
Control commands
List of files
Oracle database Oracle database
disk disk
Data Data
NetBackup
Storage
The agent checks that the policy it uses for the backup is configured with the
appropriate Snapshot Client attributes. The agent then initiates file-based backups
of the Oracle files and uses the NetBackup Snapshot Client interface to perform
the data movement.
When Oracle performs proxy copy backups, it puts the data files being backed up
into backup mode. NetBackup then creates a snapshot of the files. After the snapshot
has been created, the NetBackup for Oracle agent signals back to Oracle to take
the data files out of backup mode. The data files being backed up are in backup
mode only for the period of time necessary to capture a snapshot of the data.
See “About the NetBackup for Oracle backup and restore operations” on page 155.
See “About configuring Snapshot Client with NetBackup for Oracle” on page 162.
See “Database objects supported by advanced backup methods” on page 156.
See “About NetBackup multistreaming” on page 156.
See “RMAN multiple channels” on page 156.
See “Restoring data files to a new location” on page 157.
See “Redirecting a restore to a different client” on page 157.
See “Symbolic links and raw data files (UNIX)” on page 157.
See “Quick I/O data files (UNIX)” on page 158.
See “RMAN incremental backups” on page 158.
See “About Oracle RMAN” on page 22.
can be used for a stream-based (non-proxy) backup of the control file or archived
redo logs.
See “Proxy backup examples” on page 159.
RUN
{
allocate channel t1 'SBT_TAPE';
sql 'alter tablespace TEST offline immediate'
# restore the datafile to a new location
set newname for datafile '/oradata/test.f' to
'/oradata_new/test.f';
restore tablespace TEST;
# make the control file recognize the restored file as current
switch datafile all;
recover tablespace TEST;
release channel t1;
}
The RMAN procedure for the data files that are backed up by proxy is the same as
for conventionally backed up data files. RMAN knows that the data files were backed
up by proxy, and it issues a proxy restore request to NetBackup for Oracle, which
restores the data files to the new location. For more information on the required
procedure, see your Oracle documentation.
file. When you use instant recovery, if the symbolic link resides on a different file
system than the data file it points to, the restore fails.
NetBackup for Oracle with Snapshot Client backs up and restores data files created
on raw partitions.
run {
allocate channel t1 type 'SBT_TAPE';
backup
incremental level 0
NetBackup for Oracle with Snapshot Client 159
How NetBackup for Oracle with Snapshot Client works
proxy
format ’bk_%U_%t’
tablespace tbs1;
release channel t1;
}
run {
allocate channel t1 type 'SBT_TAPE';
backup
incremental level 1
format ’bk_%U_%t’
tablespace tbs1;
release channel t1;
}
The agent splits the files into three streams and initiates a file-based
backup for each stream. After the proxy backup is done, RMAN starts
a non-proxy conventional backup of the control file on channel t1.
NetBackup for Oracle with Snapshot Client 160
How NetBackup for Oracle with Snapshot Client works
If the RMAN recovery catalog is not used, the version of the control file
being backed up does not contain information about the current backup.
To include the information about the current backup, back up the control
file as the last step in the backup operation. This step is not necessary
if the recovery catalog is used.
Run {
allocate channel t1 type 'SBT_TAPE';
backup
format 'cntrl_%s_%p_%t'
current controlfile;
release channel t1;
}
NetBackup for Oracle with Snapshot Client 161
How NetBackup for Oracle with Snapshot Client works
run {
allocate channel t1 type 'SBT_TAPE';
backup proxy
format 'bk_%U_%t'
(tablespace tbs1, tbs2);
release channel t1;
}
To use NAS snapshot with NetBackup for Oracle, the Oracle database must be
installed and configured to work in a NAS environment.
If you want to use a SnapVault storage unit, make sure that the storage unit is
configured before you start configuring the NAS snapshot policy.
For more information about NAS snapshot and SnapVault, see the NetBackup
Snapshot Client Administrator’s Guide.
■ Snapshot Client backups do not back up all database objects. Your backup
configuration must include schedules to perform snapshot and stream-based
backups. This configuration ensures that the entire database can be restored
successfully.
■ On UNIX, the user identification and group identification numbers (UIDs and
GIDs) associated with the files to be backed up must be available. The UID and
GID must be available to both the primary client and the alternate backup client.
The UID on the primary client and the alternate backup client must be the same.
Similarly, the GID on the primary client and the alternate backup client must be
the same.
Note: The UID number can be different than the GID number.
■ Allocate different areas for data files, archived redo logs, and the control file for
database activities. Write the data files to their own repository because it is
required for an instant recovery point-in-time rollback. Only data files can exist
on the volume or the file system that you want to restore.
■ The hardware and software that is required for the appropriate snapshot method
must be installed and configured correctly.
■ NetBackup Snapshot Client must be installed and configured correctly, and the
license for this option must be registered.
■ To perform off-host backups, perform any special configuration that is required.
Select appropriate
storage unit or
storage unit group
Click Perform
snapshot backups
Click Retain
snapshot for Instant
Recovery or SLP
management
Use Alternate If you select Alternate client, also specify the name of the client
client (UNIX and to perform the backup. This option may require additional
Windows clients) configuration. The alternate client must be a client that shares the
disk array.
Use Data mover If you click Data mover, select Network Attached Storage.
(UNIX clients only).
16 On the Backup Selections tab, specify the correct setup depending on policy
setup.
■ Oracle Intelligent Policy backup policy. Use the radio button to select Whole
Database, Partial database – Tablespaces, Partial database – Datafiles,
Fast Recovery Area, Database Backup Shares, or Whole Database -
Datafile Copy Share when using this type of policy.
■ Script-based backup policy. Specify the backup script when you use this
type of policy.
More information is available about how to use scripts for a NetBackup for
Oracle policy with Snapshot Client.
See “About Snapshot Client effects” on page 177.
17 Configure other attributes and add any additional schedules and backup
selections.
NetBackup for Oracle with Snapshot Client 167
About configuring Snapshot Client with NetBackup for Oracle
See “Configuration requirements for snapshot backups with NetBackup for Oracle”
on page 162.
See “About configuring Snapshot Client with NetBackup for Oracle” on page 162.
Note: This feature requires a NetBackup appliance running software version 2.7.1
or later.
Use the following procedure to configure an Oracle snapshot policy that uses
Database Backup Shares or Whole Database - Datafile Copy Share options.
This procedure uses the Oracle Intelligent Policy, which makes configuration easier.
To configure a snapshot policy using a NetBackup appliance share
1 Open the policy you want to configure or create a new policy.
Do not use the Policy Configuration Wizard when performing this procedure.
2 Select the Attributes tab.
3 Select Oracle as the policy type if this policy is new.
4 Select a policy storage unit from the Policy storage list.
■ Policy storage
Oracle combines snapshots (proxy) and stream-based backups as part of the
same backup. The storage that is indicated here is used for the stream-based
part of the Database Backup Shares or Whole Database - Datafile Copy
Share backup.
Select a storage lifecycle policy that is configured to contain the stream-based
(non-snapshot) part of the database backup. The storage must use a storage
lifecycle policy that is configured for non-snapshot backups.
5 Select Perform snapshot backups.
NetBackup for Oracle with Snapshot Client 168
About configuring Snapshot Client with NetBackup for Oracle
Note: If there is more than one backup share that is associated with the
database instance, then Maximum Snapshots should be set to number of
recovery points you want multiplied with number of backup shares. Example:
If you want three recovery snapshot points and the database instance is
associated with two backup shares then Maximum Snapshots should be set
to 6.
12 Select the Instances and Databases tab and specify the instances to back
up. The policy must include at least one instance. To continue to use the Oracle
Intelligent Policy method, select either Protect instances or Protect instance
groups.
13 On the Backup Selections tab, use the radio button to select Database
Backup Shares or Whole Database - Datafile Copy Share options.
14 (Optional) Configure other attributes and add any additional schedules.
Note: The NetBackup appliance media server can only be configured in a pure
IPv4 or dual stack IPv4/IPv6 mode.
See “Configuring a snapshot policy for NetBackup for Oracle” on page 163.
See “About Snapshot Client effects” on page 177.
See “Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)”
on page 88.
If instant recovery is enabled, NetBackup attempts to restore the file by using the
unique restore methods available with the instant recovery feature. The type of
restore method that NetBackup uses depends on your environment and the type
of backup performed. If NetBackup is unable to use any of the instant recovery
methods, it restores the file in the typical manner. Data is copied from the snapshot
to the primary file system. Information on the instant recovery methods that
NetBackup uses is available.
See the NetBackup Snapshot Client Administrator’s Guide.
Note: If the data file you want to restore has not changed since it was backed up,
the rollback may fail. Initiate the restore from a script and use the Oracle FORCE
option.
■ If you want to use a shell script or RMAN command, set a new variable,
NB_PC_ORA_RESTORE=rollback
■ Example:
RUN {
allocate channel t1 'SBT_TAPE';
send 'NB_ORA_PC_RESTORE=rollback';
sql 'alter tablespace TEST offline immediate'
restore tablespace TEST;
recover tablespace TEST;
release channel t1;
}
Note: Veritas recommends that Snapshot Client users who want to perform BLI
backups use BLI with RMAN.
NetBackup for Oracle also provides a method for BLI backup without RMAN that
uses scripts to put tablespaces into, and take them out of, backup mode. This
method is not recommended, and it requires a significantly different configuration.
But for Oracle 12c, using script-based BLI backups without the use of RMAN are
not supported.
See “How BLI works with NetBackup for Oracle (UNIX)” on page 173.
See “Configuration requirements for BLI backups with NetBackup for Oracle”
on page 175.
NetBackup for Oracle with Snapshot Client 173
About configuring NetBackup for Oracle block-level incremental backups on UNIX
See “Configuring policies for BLI backups with NetBackup for Oracle” on page 175.
See “About NetBackup for Oracle with Snapshot Client” on page 150.
See “How NetBackup for Oracle with Snapshot Client works” on page 154.
Oracle does not support proxy backups of database control files and archived
redo logs. To perform a whole database proxy backup, which automatically
includes a backup of the control file, configure the following:
■ One or more automatic backup schedules to perform proxy BLI backups
of the data files.
■ An Application Backup schedule type to back up the control files and
archived redo logs.
Application Backup An application backup applies only to script-based policies not the
Oracle Intelligent Policies.
Full backup The full and incremental backup schedule types automatically start
the backups by running the NetBackup for Oracle RMAN scripts.
Differential incremental
They also store the snapshot backups.
backup,
Note: For most snapshot types, any automatic backup schedule
Cumulative incremental
(full, cumulative, or differential) results in a full volume snapshot.
backup
BLI is the only snapshot method that can perform an incremental
backup.
See “How Snapshot Client software affects schedule properties” on page 177.
See “How Snapshot Client software affects scripts” on page 178.
See “ Oracle with Snapshot Client environment variables” on page 178.
Property Description
Application Schedules:
Multiple Copies For snapshot backup, configure Multiple copies on the automatic
backup schedule.
For NetBackup for Oracle with Snapshot Client, the order of precedence for
environment variables is the same as for standard NetBackup for Oracle. Refer to
the instructions for how to configure the NetBackup and the user variables.
See “About configuring the run-time environment” on page 99.
NetBackup for Oracle installs sample scripts in the following location:
Windows:
install_path\NetBackup\dbext\oracle\samples\rman
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
The following are the scripts for NetBackup for Oracle with Snapshot Client that
show how to configure the required variables:
If you use scripts, use the send command to pass the environment variables to the
agent. The following example uses the send command to specify the values for
NB_ORA_PC_SCHED and NB_ORA_PC_STREAMS:
run {
allocate channel t1 type 'SBT_TAPE';
send 'NB_ORA_PC_SCHED= sched, NB_ORA_PC_STREAMS= number’;
backup proxy
(database format 'bk_%U_%t');
}
For more information, see the sample scripts that are provided with the agent.
See “How NetBackup for Oracle with Snapshot Client works” on page 154.
See “Performing a snapshot rollback restore using a script or RMAN command”
on page 170.
See “Proxy backup examples” on page 159.
See “How Snapshot Client software affects backup types” on page 177.
See “How Snapshot Client software affects schedule properties” on page 177.
See “How Snapshot Client software affects scripts” on page 178.
Scripts ■ All scripts that are necessary to protect all ■ NetBackup can continue to use custom scripts
parts of the database are automatically to perform database backups.
generated at run-time. ■ The administrator must know how to configure
■ The administrator does not need to know how RMAN scripts.
to configure RMAN scripts. ■ The administrator must set the retention levels
■ The retention levels for the different parts of for the different parts of the database
the database are automatically assigned. correctly.
■ The administrator must ensure that a
snapshot of the proxy data is created.
Schedules The administrator configures only one schedule The administrator must configure two schedules
that backs up all parts of the database and sets with two retentions:
the correct retention automatically.
■ One Full Backup schedule to back up the
The Archived Redo Log schedule is not snapshot (proxy) data part of the database.
supported with a snapshot backup. ■ One Application Backup schedule to back
up the stream-based part of the Oracle
database.
Backups User-directed backups are not supported. To User-directed backups are supported.
attempt a user-directed backup (results in a
status 240 (no schedules of the correct type exist
in this policy).
Load balancing RAC load balancing is not supported. RAC load balancing is supported.
4 Select the Attributes tab. The following items are specific to creating an Oracle
policy for snapshots with Replication Director:
■ Policy type
For NetBackup to perform Oracle backups, select Oracle. An Oracle tab
appears.
■ Policy storage
Oracle combines snapshots (proxy) and stream-based backups as part of
the same backup. The storage that is indicated here is used for the
stream-based part of the Replication Director backup.
Select a storage lifecycle policy that is configured to contain the
stream-based (non-snapshot) part of the database backup. The storage
must use a storage lifecycle policy that is configured for non-snapshot
backups.
■ Use Replication Director
Enable Use Replication Director to automatically select other options that
Replication Director requires:
■ Perform snapshot backups: Ensures that the policy creates snapshots
of the disk array.
■ Retain snapshots for Instant Recovery or SLP management: Ensures
that the policy retains the snapshot after the backup completes.
■ Options button
NetBackup for Oracle with Snapshot Client 183
About Oracle support for Replication Director
Note: Unless creating Block Level Incremental (BLI) backups, always select
Full Backup to create snapshots of the Oracle database.
■ Override policy storage selection: Enable and select the SLP that is
configured for snapshot replication. (A snapshot SLP is one in which the
NetBackup for Oracle with Snapshot Client 185
About Oracle support for Replication Director
6 Select the Instances and Databases tab and specify the instances to back
up. The policy must include at least one instance. To continue to use the Oracle
Intelligent Policy method, select either Protect instances or Protect instance
groups.
Script- or template-
based Oracle policy
method
7 Select the Backup Selections tab. Select the parts of the database to back
up. Note that the selection applies to all listed instances.
The following can be selected for the policies that use Replication Director:
■ Whole database: Backs up the entire database (default).
■ Partial database - Tablespaces: Backs up the tablespaces.
■ Partial database - Datafiles: Backs up the data files.
■ Fast Recovery Area (FRA): Do not select for a policy that uses Replication
Director.
■ Database Backup Shares: Do not select for a policy that uses Replication
Director.
■ Whole Database - Datafile Copy Share: Do not select for a policy that
uses Replication Director.
Note: If you back up the partial database, and later want to perform a
Point-in-time rollback restore, make sure that you select all of the tablespaces
or data files from a partition in the Backup Selections.
For copy-back restores, this step is not a requirement.
4 Select the Attributes tab. The following items are specific to creating an Oracle
policy for snapshots with Replication Director:
■ Policy type
For NetBackup to perform Oracle backups, select Oracle. An Oracle tab
appears.
■ Policy storage
Oracle combines snapshots (proxy) and stream-based backups as part of
the same backup. The storage that is indicated here is used for the
stream-based part of the Replication Director backup.
Select the storage that is configured to contain the stream-based
(non-snapshot) part of the database backup. The storage can be either a
storage lifecycle policy that is configured for non-snapshot backups, or a
disk or Media Manager unit.
■ Use Replication Director
Enable Use Replication Director to automatically select other options that
Replication Director requires:
■ Perform snapshot backups: Ensures that the policy creates snapshots
of the disk array.
■ Retain snapshots for Instant Recovery or SLP management: Ensures
that the policy retains the snapshot after the backup completes.
■ Options button
NetBackup for Oracle with Snapshot Client 188
About Oracle support for Replication Director
5 Select the Instances and Databases tab and specify the instances to back
up. Select Clients for use with scripts. If either of the other two are selected,
the Oracle Intelligent Policy is used and the scripts are created automatically.
Oracle Intelligent
Policy method
Script-based Oracle
policy method
NetBackup for Oracle with Snapshot Client 190
About Oracle support for Replication Director
After you select the Clients for use with scripts option, a message appears
that describes the effect of this choice:
■ Existing selections (if any) for this policy are erased.
■ The Oracle tab is removed from this policy.
■ Another effect is that the Selections tab turns into the Clients tab.
Click Yes to continue Oracle policy configuration.
Note: Unless creating Block Level Incremental (BLI) backups, always select
Full Backup to create snapshots of the Oracle database.
■ Override policy storage selection: Enable and select the SLP that is
configured for snapshot replication.
■ Retention: The SLP indicates the retention for the backup.
NetBackup for Oracle with Snapshot Client 192
About Oracle support for Replication Director
9 Configure the schedule in the Start Window tab and the Exclude Days tab.
Click OK to save and close the schedule.
10 Select the Clients tab. By default, the Clients for use with scripts option is
selected for this script-based Oracle policy.
11 Add the client names that contain the Oracle database and indicate the
operating system of each.
12 Select the Backup Selections tab. Specify the script that NetBackup should
use. Indicate only one script.
13 When the policy configuration is complete, click OK.
See “Configuring an Oracle Intelligent Policy using Replication Director” on page 181.
See “About Oracle support for Replication Director” on page 180.
Chapter 7
NetBackup Dedupe Direct
for Oracle
This chapter includes the following topics:
■ Installing NetBackup Dedupe Direct for Oracle plug-in on the Oracle database
server
Requirement Description
Requirement Description
/usr/openv/pdde/pdcr/bin/spauser
--app -a -u <username> -p
<password>
Firewall and ports For information about firewall and ports, see
About MSDP port usage topic of the
NetBackup Deduplication Guide.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/oracle/sbt/lib:/home/
oracle/sbt/ost-plugins
export MSDP_DBA_USER=<Your username>
export MSDP_DBA_PASSWORD=<Your password>
Settings Description
■ 0: 1 week
■ 1: 2 weeks
■ 2: 3 weeks
■ 3: 1 month
■ 4: 2 months
■ 5: 3 months
■ 6: 6 months
■ 7: 9 months
■ 8: 1 year
Settings Description
■ 0: Fatal
■ 1: Error
■ 2: Warning
■ 3: Info
■ 4: Debug
■ 5: Trace
To configure an ECA
1 Ensure that the external certificate files are saved to the local directory on the
Oracle server that this plug-in can access.
2 Use a text editor to open the msdp_app.cfg file.
The msdp_app.cfg file is available under <plugin installation path>/etc/
directory:
See “ECA msdp_app.cfg file parameters” on page 199.
For example,
Settings Descriptions
For example,
For example,
Settings Descriptions
For example,
For example,
certpath="cert local
path"/trusted/cacerts.pem"
You can disable the Oracle stream handler by updating the marker.cfg configuration
file. This file is stored at the plug-in installation directory.
NetBackup Dedupe Direct for Oracle 201
Using NetBackup Dedupe Direct for Oracle plug-in
RUN
}
NetBackup Dedupe Direct for Oracle 202
Uninstalling the NetBackup Dedupe Direct for Oracle plug-in
Performing the RMAN restore directly from the MSDP storage server
Make sure that a backup using the NetBackup Dedupe Direct for Oracle plug-in
has completed successfully before you attempt a restore. You can run the rman
command from a command prompt on the client. Use the appropriate RMAN
command file as a parameter.
Before you perform restore, use the SBT_LIBRARY parameter in the PARMS section
of the allocate channel in the RMAN script. In the RMAN script, modify the ALLOCATE
statement so that the SBT_LIBRARY parameter points to the NetBackup Dedupe
Direct for Oracle library, and specify the rman.cfg location in script. The rman.cfg
location is in etc directory under installed path.
For example,
RUN
{
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=<plugin_install_path>
/lib/libmsdp_sbt.so, SBT_PARMS=(SBTCONFIG=<plugin_install_path>/etc/rman.cfg)';
RESTORE DATABASE;
RECOVER DATABASE;
RELEASE CHANNEL ch00;
}
■ Enabling the debug logs manually for NetBackup Dedupe Direct for Oracle
plug-in
For more information about debug logs and reports, refer to the NetBackup
Administrator’s Guide, Volume I.
2 For the Oracle Intelligent Policy, verify that the following binaries exist.
On Windows: install_path\NetBackup\bin\bpdbsbora.exe
On Windows: install_path\NetBackup\bin\dbsbrman.dll
On UNIX: /usr/openv/netbackup/bin/bpdbsbora
On UNIX: /usr/openv/lib/libdbsbrman.so (libdbsbrman.sl on HP-UX)
3 Check that both the NetBackup server and the client software work properly.
That is, check that normal operating system files can be backed up and restored
from the client. The NetBackup client must be running the same version of
software as the NetBackup server.
4 The logs can become very large, especially bpdbm. Ensure that enough free
disk space exists in the log directory disk partition.
5 Check that the following NetBackup log directories exist:
■ On the client: bpdbsbora, bporaexp (or bporaexp64), bporaimp (or
bporaimp64), dbclient, bphdb, bpfis, and bpcd.
install_path\NetBackup\logs\README.debug file
UNIX:
/usr/openv/netbackup/logs/README.debug file
NetBackup provides other reports that are useful in isolating problems. One such
report is All Logs Entries on the server. Information on server reports is available.
See the NetBackup Administrator’s Guide, Volume I.
■ bphdb
For any backup that is initiated from an automated schedule on the master
server.
install_path\NetBackup\logs\bphdb
■ bpdbsbora
For any OIP backup restore operations.
install_path\NetBackup\logs\bpdbsbora
■ dbclient
For any backup or restore using RMAN.
install_path\NetBackup\logs\dbclient
■ bpbkar
For any snapshot backup.
install_path\NetBackup\logs\bpbkar
■ tar
For any snapshot restore.
install_path\NetBackup\logs\tar
2 Verify the user or group that the Oracle process (process that loads
orasbt.dll) has appropriate permissions to write to the following directories
if they exist. If the following directories do not exist, the directories are created
automatically with the correct permissions.
install_path\NetBackup\logs\user_ops
install_path\NetBackup\logs\user_ops\dbext
install_path\NetBackup\logs\user_ops\dbext\logs
Also verify that the user or group that the Oracle process runs as has
appropriate permissions to write to the log directories in step 1.
Troubleshooting 209
Enabling the debug logs manually (UNIX)
3 On the NetBackup server or servers, create the debug log directories for the
legacy processes that interact with the Oracle agent.
On the master server:
install_path\NetBackup\logs\bprd
install_path\NetBackup\logs\bptm
4 The debug logs for unified processes on the server and the client hosts are
created automatically by NetBackup.
NetBackup writes unified logs to install_path\NetBackup\logs.
For information on how to use logs and reports, see the NetBackup
Troubleshooting Guide.
/usr/openv/netbackup/logs/bphdb
■ bpdbsbora
For any OIP backup restore operations.
/usr/openv/netbackup/logs/bpdbsbora
■ dbclient
For any backup or restore using RMAN.
/usr/openv/netbackup/logs/dbclient
■ bpbkar
For any snapshot backup.
/usr/openv/netbackup/logs/bpbkar
Troubleshooting 210
About the NetBackup for Oracle log files
■ nbtar
For any snapshot restore.
/usr/openv/netbackup/logs/tar
2 Verify the user or group that the Oracle process (process that loads libobk)
has appropriate permissions to write to the following directories if they exist. If
the following directories do not exist, the directories are created automatically
with the correct permissions.
/usr/openv/logs/user_ops
/usr/openv/logs/user_ops/dbext
/usr/openv/logs/user_ops/dbext/logs
Also verify that the user or group that the Oracle process runs as has
appropriate permissions to write to the log directories in step 1.
3 On the NetBackup server or servers, create the debug log directories for the
legacy processes that interact with the Oracle agent.
On the master server:
/usr/openv/logs/bprd
/usr/openv/logs/bptm
4 The debug logs for unified processes on the server and the client hosts are
created automatically by NetBackup.
NetBackup writes unified logs to /usr/openv/logs.
For information on how to use logs and reports, see the NetBackup
Troubleshooting Guide.
■ Windows: obk_stdout.mmddyy.hhmmss.txt
UNIX: obk_stdout.mmddyy
Unless it is redirected elsewhere, NetBackup writes the shell script output to this
file.
■ Windows: obk_stderr.mmddyy.hhmmss.txt
UNIX: obk_stderr.mmddyy
Unless it is redirected elsewhere, NetBackup writes any shell script errors to this
file.
■ Windows: mmddyy.log
UNIX: log.mmddyy
This log contains debugging information for the bphdb process. bphdb is the
NetBackup database backup binary. It is invoked when an automatic backup
schedule is run. NetBackup for Oracle uses this client process for the shell script
execution.
■ Windows: mmddyy.log
■ UNIX: log.mmddyy
This log contains debugging information and execution status for the Oracle for
NetBackup client processes.
On Windows, the processes are linked to the library program that is provided with
NetBackup for Oracle.
■ Windows: mmddyy.log
■ UNIX: log.mmddyy
NetBackup for Oracle OIP uses this log for backup and recovery.
bporaexp64 The bporaexp (or bporaexp64 on UNIX) directory contains the following execution
log:
■ Windows: mmddyy.log
■ UNIX: log.mmddyy.log
Troubleshooting 212
Setting the debug level on a Windows client
bporaimp64 The bporaimp (or bporaimp64 on UNIX) directory contains the following execution
log:
■ Windows: mmddyy.log
■ UNIX: log.mmddyy
VERBOSE = X
msglog ‘logfile_name’
■ RMAN verifies its environment and then issues requests to the API.
On Windows, some information, such as the NetBackup version, API versions,
and trace file name, is registered with RMAN. An error now is usually due to a
problem with client and server communication. Check the messages in the bprd
and the bpcd logs for clues.
On UNIX, some information, such as the NetBackup version, API versions, trace
file name, and NetBackup signal handlers, is registered with RMAN. An error
now is usually due to a problem with client and server communication. Check
Troubleshooting 215
Troubleshooting RMAN backup or restore errors
the messages in the bprd and the bpcd logs for clues. Also verify the bp.conf
entries on the client.
■ RMAN issues a backup or restore request.
The API gathers necessary parameters and sends the backup or restore
request to the NetBackup server. The API waits until both the server and client
are ready to transfer data before it returns to the request.
The API then sends this information to the master server’s bprd process.
To troubleshoot a problem in this part of the first sequence, examine the following
file:
Windows:
install_path\NetBackup\logs\dbclient\mmddyy.log
UNIX:
/usr/openv/netbackup/logs/dbclient/log.mmddyy
If the bprd process failed, check the logs for bprd and bpbrm.
A failure now is frequently due to bad NetBackup server or Oracle policy
configuration parameters.
NetBackup can usually select the correct Oracle policy and schedules. But
NetBackup can select a policy or schedule in error if there are several Oracle
policies in its database.
On Windows, try setting the SERVER and NB_ORA_POLICY values in the client
environment.
On UNIX, try setting the SERVER and POLICY values in the bp.conf file on the
client or by setting environment variables.
For example, the following C Shell setenv commands specify the Oracle policy,
schedule, and server for NetBackup to use:
■ RMAN issues read or write requests to the API, which then transfers data to or
from the NetBackup server.
A failure here is probably due to NetBackup media, network, or time-out errors.
■ RMAN tells the API to close the session.
The API waits for the server to complete its necessary actions (for example, it
verifies the backup image) and then exits.
An error can originate from either NetBackup or RMAN, as follows:
Troubleshooting 216
Troubleshooting NetBackup for Oracle with Snapshot Client
■ RMAN aborts if it encounters an error while it reads a data file during the
backup (for example, if Oracle blocks are out of sequence). It also aborts if
NetBackup sends a bad backup image during the restore.
■ NetBackup might return an error code to the API if for some reason it could
not complete the backup successfully.
install_path\NetBackup\logs
UNIX:
/usr/openv/netbackup/logs/
Note: This change may delay detecting problems during subsequent backups.
Consider putting the original value back in place once any restore that requires a
change is complete.
Troubleshooting 218
Minimizing the loading and unloading of tapes for database backups
Settings Description
■ 0 Fatal
■ 1 Error
■ 2 Warning
■ 3 Info
■ 4 Debug
■ 5 Trace
Settings Description
■ Editing the RMAN script and configuring NetBackup for Oracle for a proxy copy
backup
ORACLE_OVERRIDE_DATA_MOVEMENT = 1
Note: When you use the Oracle stream handler, it is not recommended to use
variable-length deduplication.
The cacontrol command utility with the --sth flag, is used to override the default
behavior of NetBackup by creating a Marker Entry for a client, policy, or stream
type in a configuration file. The cacontrol command utility is located in the following
locations:
■ Windows: install_path\Veritas\pdde\cacontrol
■ UNIX: /usr/openv/pdde/pdcr/bin/cacontrol
In the following examples for cacontrol, STHTYPE must be set to Oracle to
configure the Oracle stream handler.
In NetBackup 8.3, you can configure cacontrol using the following options:
■ You can query the settings for the stream handler per client and policy.
■ You can enable the stream handler per client and policy.
■ You can delete the settings for client and policy (return to default behavior).
When using the cacontrol command utility to create a Marker Entry in NetBackup
10.0, priority is given to the more granular configuration. For example:
Deduplication best practices 224
Oracle stream handler
The stream handler is enabled because the more granular configuration in Marker
Entry 1 has higher priority.
In NetBackup 10.0, you can configure cacontrol using the following options:
■ You can query the settings for the stream handler per client and policy.
■ You can enable the stream handler per client and policy.
■ You can delete the settings for a client and policy (return to default behavior).
■ You can query the settings for the stream handler per policy.
■ You can delete the settings for the stream handler per policy (return to default
behavior).
■ You can query the settings for the stream handler per stream handler type.
Deduplication best practices 225
Configuring a stream-based Oracle backup
■ You can delete the settings for a stream handler (return to default behavior).
■ You can disable the stream handler per stream handler type.
BACKUP
FILESPERSET=1
%BACKUP_TYPE%
FORMAT 'bk_u%%u_s%%s_p%%p_t%%t'
DATABASE;
If your site requires encryption, you can specify encryption in the NetBackup
for Oracle backup policy.
3 Disable Oracle's compression for the duration of the database backup.
By default, Oracle disables compression. If compression is enabled, Oracle
compresses unused sections in streams, and the result is unpredictable
deduplication rates. If compression is enabled, run the following RMAN
command from the command line to disable compression:
Note: Make sure that Oracle optimization, encryption, and compression are disabled
for the entirety of the database backup. Make sure to check specifications outside
of the RMAN backup script, too.
Deduplication best practices 227
Example RMAN script for a stream-based backup
RUN {
BACKUP
$BACKUP_TYPE
SKIP INACCESSIBLE
TAG hot_db_bk_level0
# The following line sets FILESPERSET to 1 and facilitates database deduplication.
FILESPERSET 1
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
RELEASE CHANNEL ch02;
RELEASE CHANNEL ch03;
BACKUP
FORMAT 'bk_u%u_s%s_p%p_t%t'
PROXY
DATABASE;
For an example that shows an edited backup script, see the following:
See “Example RMAN script for a proxy copy backup” on page 229.
2 Disable Oracle's optimization and encryption for the duration of the database
backup.
By default, Oracle disables optimization and encryption. If the optimization and
encryption are enabled, run the following RMAN commands from the command
line to disable optimization and encryption:
If your site requires encryption, you can specify encryption in the NetBackup
for Oracle backup policy.
3 Disable Oracle's compression for the duration of the database backup.
By default, Oracle disables compression. If compression is enabled, Oracle
compresses unused sections in streams, and the result is unpredictable
deduplication rates. If compression is enabled, run the following RMAN
command from the command line to disable compression:
Note: Make sure that Oracle optimization, encryption, and compression are
disabled for the entirety of the database backup. Also, make sure to check
specifications outside of the RMAN backup script.
RUN {
# Specify 2 streams.
SEND 'NB_ORA_PC_STREAMS=2';
BACKUP
PROXY
SKIP INACCESSIBLE
TAG hot_db_bk_proxy
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
#
# Note: During the process of backing up the database, RMAN also backs up the
# control file. This version of the control file does not contain the
# information about the current backup because "nocatalog" has been specified.
# To include the information about the current backup, the control file should
# be backed up as the last step of the RMAN section. This step would not be
# necessary if we were using a recovery catalog or auto control file backups.
#
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND ' NB_ORA_SERV=$NB_ORA_SERV’;
Deduplication best practices 231
Example RMAN script for a proxy copy backup
BACKUP
FORMAT 'cntrl_%s_%p_%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
}
Appendix B
Snapshot Client support of
SFRAC
This appendix includes the following topics:
CLIENT_NAME = <virtual_name>
■ Alternatively, add the following parameter to the RMAN script file that you
are using for backup and restore, and keep the default CLIENT_NAME as
the hostname:
NB_ORA_CLIENT = <host_name>
3 Specify the required host mode options in the storage array that provides the
storage LUNs. For example, in the Host group options of an Hitachi array, enter
the type of host (for example, Solaris) and enable the VERITAS Database
Edition/Advanced Cluster for Oracle RAC (Solaris) option.
Snapshot Client support of SFRAC 234
Performing a rollback restore in an SFRAC environment
4 Add the following line to the bp.conf file, on each node in the cluster.
PREFERRED_NETWORK = <virtual-host-name>
[QUIESCENCE_INFO]
"QUIESCENCE_SERIAL_QUIESCENCE"=dword:00000001
The following are entities in the VCS that monitor the application I/O stack:
■ CFSMount contains the mount points (cfs) where data files, archive logs, and
control files are stored.
■ CVMVolDg contains all the Volume Groups (cvm) configured on top of the
various array LUNs that participate in the hardware snapshot.
■ The Database Resource Group contains the database instance and assists in
failover.
To perform a rollback restore in the SFRAC environment
1 Ensure that you previously created a virtual IP for the clustered node. Point
that virtual IP to the master node of the cluster.
2 On all the clustered nodes, take the VCS database service group (Oracle,
CFSMount, and CVMVolDg resources) offline by using the following command:
4 Mount the CFSMount points manually outside VCS on the master node. This
action helps when you start the database in mount state.
5 Start the database with mount option on the clustered master node using one
of these options:
Option 1:
Option 2:
6 Run the rollback restore operation from the RMAN script or the client GUI. A
sample RMAN script file (hot_database_backup_proc) is located in the
following directory path:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
NB_ORA_PC_RESTORE=rollback
# umount <mntPt>
9 On all the clustered nodes, take the VCS database service group (Oracle,
CFSMount, and CVMVolDg resources) back online:
Resolution: The client name mentioned in the policy and in the bp.conf file at
the client are different.
■ Problem: The backup failed with error 156. The bpfis logs show the following
error.
file:[QUIESCENCE_INFO]
"QUIESCENCE_SERIAL_QUIESCENCE"=dword:00000001
■ Problem: The rollback failed with the following error displayed in the GUI:
Resolution : Add the following line in the bp.conf file on the master node of the
cluster PREFERRED_NETWORK = <virtual_name>
Appendix C
Script-based Block-Level
Incremental (BLI) Backups
without RMAN on UNIX
and Linux systems
This appendix includes the following topics:
of Oracle database files. NetBackup for Oracle script-based BLI performs backups
using the Storage Checkpoint facility in the Veritas File System (VxFS) available
through the Veritas Storage Foundation for Oracle.
See “About NetBackup for Oracle with Snapshot Client” on page 150.
See “About BLI backup and restore operations” on page 239.
See “Verifying installation requirements for BLI backups without RMAN” on page 240.
See “About NetBackup for Oracle agent automatic backups” on page 254.
See “About NetBackup for Oracle manual backups” on page 254.
See “About NetBackup backup and restore logs” on page 257.
See “Creating NetBackup policies for script-based BLI backup” on page 241.
See “Example Oracle BLI backup policy” on page 246.
See “Restoring BLI backup images” on page 256.
See “Improving NetBackup backup performance” on page 261.
2 Verify licensing.
The products must have valid licenses. To check for licenses, enter the following
commands based on your version:
For VxFS versions earlier than 3.5:
# vxlicense -p
# vxlicrep
The command displays all the valid licenses that are installed on the system.
If you have valid licenses, the Storage Checkpoint feature and the Veritas
Storage Foundation for Oracle appear in the list.
3 Verify that both the NetBackup server (master and media) and client software
work properly.
Particularly, verify that you can back up and restore typical operating system
files from the client.
Nodata Storage Checkpoint If the database is offline during the entire backup window (a
cold database backup) or you use this checkpoint type, the
additional space is minimal. Each file system requires about
1% of free space.
Fulldata Storage Checkpoint If the database is online during the backup and using this
checkpoint type, then more free space is needed in the file
system.
Note: The default option that NetBackup uses for backups is Fulldata Storage
Checkpoint.
To use Nodata Storage Checkpoint instead of the default option, a user must create
the following empty touch file:
/usr/openv/netbackup/ext/db_ext/NODATA_CKPT_PROXY
■ Policy attributes
■ Clients and the files or directories to be backed up on the client
■ Storage unit to use
■ Backup schedules
While most database NetBackup BLI backup policy requirements are the same as
for file system backups, the following items have special requirements:
■ The number of policies that are required
See “Number of policies required for BLI backup” on page 242.
■ Policy attribute values
See “About BLI policy attributes” on page 244.
■ The BLI client list
See “About the BLI client list” on page 245.
■ The list of directories and files to back up
See “Backup selections list for BLI backups” on page 245.
■ Schedules
See “About schedules for BLI backup policies” on page 245.
If you have more than one policy defined for an Oracle database instance,
NetBackup groups the database instance by the NetBackup keyword phrase. Identify
one of the policies as the POLICY_IN_CONTROL in the NetBackup notify scripts. This
policy performs database shutdowns and restarts. All policies with the same keyword
phrase need to be configured to start simultaneously.
Warning: Care must be taken when specifying the keyword phrase. A multistream
backup is attempted if the backup process finds more than one policy with the
following characteristics: Each policy has the BLI attribute set, each policy is active,
each policy contains the same client, and each policy has an identical keyword
phrase.
Typical failure status is: “74 - timeout waiting for bpstart_notify to complete.”
"See “NetBackup restore and backup status codes” on page 259.
You can check the file systems on the backup client to see if they are included in
one of the NetBackup policies on the server. To see if you need to add any new
file systems to the NetBackup policies, run the following commands from the server
on a regular basis, perhaps as a cron(1) job:
# cd /usr/openv/netbackup/bin/goodies/
# ./check_coverage -coverage -client mars -mailid \nbadmin
The preceding command generates the following output and mails it to the specified
mailid:
CLIENT: mars
Mount Point Device Backed Up By Policy Notes
----------- ------ ------------------- -----
/ /dev/vg00/lvol3 production_servers
/home /dev/vg00/lvol5 production_servers
/oradata1 /dev/dsk/c1t0d0 block_incr1
/oradata2 /dev/dsk/c1t0d0 block_incr1
/oradata3 /dev/nbuvg/nbuvol UNCOVERED
/opt /dev/vg00/lvol6 production_servers
/oracle /dev/vg00/oracle production_servers
/stand /dev/vg00/lvol1 production_servers
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 244
Creating NetBackup policies for script-based BLI backup
If there is an UNCOVERED file system that is used by Oracle, add it to one of the
NetBackup policies so that all the necessary file systems are backed up at the same
time.
Note: After a file system is added to a policy, it is a good idea to keep the file system
in that policy. If you change the policy, NetBackup performs a full backup the next
time backups are run even if an incremental backup is requested.
Perform block level Select to enable BLI backups. If the BLI attribute is not enabled,
incremental backups NetBackup uses the standard method to back up the files in
the file list.
Job Priority Set so that the BLI backup policies run before other policies.
Note: Do not change a keyword phrase after it is set in a policy. The keyword phrase
is used in naming Storage Checkpoints. Changing the keyword phrase necessitates
a full backup even if an incremental backup is requested.
If you are using the Quick I/O interface, you need to specify both the Quick I/O file
name and the associated hidden file in the file list (for example, dbfile and
.dbfile), or you need to specify the directory that contains both files. NetBackup
does not follow the symbolic links to automatically back up the hidden file if you
enumerate only the dbfile explicitly in the backup selections list. They are both
included if you enumerate their common directory.
When the NetBackup scheduler invokes an automatic backup schedule, it backs
up the files one at a time, in the same order they appear in the backup selection
list.
Oracle does not recommend backing up the online redo log, so it is recommended
that you place online redo log files in a different file system than datafiles, archive
log files, or database control files. Do not include the online redo log files in the file
list.
Term Definition
cold database A cold database backup is taken while the database is offline or closed.
backup BLI backup shuts down the database and performs either full or
block-level incremental backups. This backup method is also referred
to in Oracle documentation as a "consistent whole database backup"
or a "closed backup." The data from a cold backup is consistent,
resulting in easier recovery procedures.
In an offline backup, all database files are consistent to the same point
in time (for example, when the database was last shutdown using typical
methods). The database must stay shut down while the backup runs.
hot database A hot database backup allows the database to be online and open while
backup the backup is performed. With the Storage Checkpoint facility, this
backup method runs database backups in parallel so a database does
not need to be in backup mode for a long time.
Term Definition
Nodata storage A Nodata storage checkpoint hot backup puts the tablespaces in backup
checkpoint hot mode for the duration of the backup. It uses a Nodata Storage
Checkpoint to reduce the amount of file system space consumed.
quick freeze The quick freeze database backup is different than an online database
database backup backup, because it requires the database to be brought down briefly to
take a snapshot or Fulldata Storage Checkpoint of the database image.
The Fulldata Storage Checkpoint is created in a few seconds and the
database can be restarted immediately. A backup image from a quick
freeze database backup is equivalent to a backup image from a cold
database backup. You can choose this backup method when you
configure BLI notify scripts.
If the database is in ARCHIVELOG mode, you can use all four methods to back up
the database. If the database is in NOARCHIVELOG mode, you can only select the
cold backup or quick freeze backup.
When you use the cold and quick freeze database backups, the default shutdown
command that you use in the bpstart_notify.oracle_bli script is shutdown or
shutdown normal. These commands wait for all users to log off before it initiates
the shutdown. In some circumstances, even after all interactive users are logged
off, processes such as the Oracle Intelligent Agent (Oracle dbsnmp account) can
still be connected to the database, preventing the database shutdown. Attempt to
use the default shutdown commands to shut down the database cleanly.
Alternatively, you can use shutdown immediate to initiate the database shutdown
immediately.
■ post_checkpoint_notify.POLICY
■ bpend_notify.POLICY
/usr/openv/netbackup/ext/db_ext/oracle/bin/setup_bli_scripts
/usr/openv/netbackup/ext/db_ext/oracle/samples
When you run setup_bli_scripts you need to supply the following information:
■ Identify the POLICY_IN_CONTROL
See “Identify the POLICY_IN_CONTROL for BLI backups” on page 250.
■ Provide the Oracle environment variables
See “Oracle environment variables for BLI scripts” on page 250.
■ Select a backup method
■ Notify scripts for other policies
See “About BLI notify scripts for other policies” on page 251.
See the information about how to use the notify scripts to back up your Oracle
database.
ORACLE_INIT Path name for the Oracle startup parameter file (INIT.ORA). If
you are using an Oracle SPFILE as your parameter file, do not
set the ORACLE_INIT environment variable.
ORACLE_CONFIG Path name for the Oracle configuration file (CONFIG.ORA). Some
database configurations use the CONFIG.ORA file to specify
values for the database parameters that usually do not change.
The CONFIG.ORA file can be called by the INIT.ORA file using
an include statement.
#/usr/openv/netbackup/ext/db_ext/oracle/bin/setup_bli_scripts
The default "connect" statement that will be used to connect to the database is:
"connect / as sysdba"
Would you like to modify the connect and use a specific login? (y/n) n
Please enter the Oracle instance (ORACLE_SID) you want to back up? orac901
To back up a copy of the Oracle control file, you need to specify a file
path where Oracle can write a copy of the control file.
Please enter the file path where Oracle is to write a copy of your
control file? /dbhome/oracle/orac901/admin/orac901/pfile/cntrlorac901.ora
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 253
Creating NetBackup policies for script-based BLI backup
To back up the Oracle archive logs, you need to specify their location.
You now need to decide on how many NetBackup policies you will have
backing up simultaneously. The first one you enter will be known
as the POLICY_IN_CONTROL in the scripts and will perform any needed
DB operations. When you create the policies on the NetBackup server,
you will have to divide the filesystems between these policies.
Please enter the name of the policy that will be the POLICY_IN_CONTROL? BLI_1
Please enter the name of another policy or DONE to stop? BLI_2
Please enter the name of another policy or DONE to stop? BLI_3
Please enter the name of another policy or DONE to stop? BLI_4
Please enter the name of another policy or DONE to stop? BLI_5
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 254
Performing backups and restores
Note: You must be the root user to perform all operations using the BLI backup
software.
Note: You must be the root user to perform all operations using the BLI backup
software.
Note: For HP-UX PA-RISC checkpoints to unmount and be cleaned up, create
touch file /usr/openv/netbackup/AIO_READS_MAX that contains the value 1.
HP-UX PA-RISC checkpoints may not be unmounted on Oracle database agents.
Note: You must be the root user to perform all operations using the BLI backup
software.
Note: For HP-UX PA-RISC checkpoints to unmount and be cleaned up, create
touch file /usr/openv/netbackup/AIO_READS_MAX that contains the value 1.
To perform a cold (offline) backup, set the environment variable METHOD in the
bpstart_notify script on the client to SHUTDOWN_BKUP_RESTART. The
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 255
Performing backups and restores
bpstart_notify script shuts down the database before the backup begins and
the bpend_notify script restarts the database after the backup completes.
To perform a hot (online) backup using Fulldata Storage Checkpoints, make sure
the database is running in ARCHIVELOG mode and set the variable METHOD to
ALTER_TABLESPACE. The bpstart_notify script changes the tablespaces to online
backup mode before the backup begins, and the post_checkpoint_notify script
changes the tablespaces back to normal mode after the Fulldata Storage
Checkpoints are created.
To perform a Nodata Storage Checkpoint Hot (online) backup, make sure the
database is running in ARCHIVELOG mode and set the environment variable METHOD
in the bpstart_notify script to NODATA_CKPT_HOT. The bpstart_notify script
changes the tablespaces to online backup mode before the backup begins. The
bpend_notify script changes the tablespaces back to normal mode after the backup
completes.
To perform a quick freeze backup, set the environment variable METHOD in the
bpstart_notify script to SHUTDOWN_CKPT_RESTART. The bpstart_notify script
shuts down the database and the post_checkpoint_notify script restarts it
immediately after the Fulldata Storage Checkpoints are created. Taking VxFS
Fulldata Storage Checkpoints is very fast (within a minute), and with the NetBackup
queuing delay for scheduling the backup jobs, the database down time is typically
only a few minutes.
Note: You must be the root user to perform all operations using the BLI backup
software.
For example:
ls -la /db02
total 2192
drwxr-xr-x 2 root root 96 Jan 20 17:39 .
drwxr-xr-x 9 root root 8192 Jan 20 17:39 ..
-rw-r--r-- 1 oracle dba 1048576 Jan 20 17:39 .cust.dbf
lrwxrwxrwx 1 oracle dba 22 Jan 20 17:39 cust.dbf ->\
.cust.dbf::cdev:vxfs:
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 256
Performing backups and restores
The preceding example shows that you must include both the symbolic link cust.dbf
and the hidden file .cust.dbf in the backup file list.
If you want to back up all Quick I/O files in a directory, you can simplify the process
by only specifying the directory to be backed up. In this case, both components of
each Quick I/O file is properly backed up. In general, you should specify directories
to be backed up unless you only want to back up some, files in those directories.
Note: For HP-UX PA-RISC checkpoints to unmount and be cleaned up, create
touch file /usr/openv/netbackup/AIO_READS_MAX that contains the value 1.
For AIX, the restore destination can be a VxFS or JFS file system. The destination
file system does not need to support the Storage Checkpoint feature to restore files.
However, a VxFS file system with the Storage Checkpoint feature is required to
perform BLI backups of the restored data.
Note that restoring a file causes all blocks in that file to be rewritten. Thus, all the
blocks in the file are considered to have been modified. Thus, the first subsequent
differential incremental backup and all subsequent cumulative incremental backups
back up all of the blocks in the restored file. If you are restoring an entire database
or a file system, the first subsequent backup backs up all blocks that are restored.
To restore a Quick I/O file, if both the symbolic link and the hidden file already exist,
NetBackup restores both components from the backup image. If either one of the
two components is missing, or both components are missing, NetBackup creates
or overwrites as needed.
Oracle database recovery might be necessary after restoring the files. See the
Oracle documentation for more information on doing database recovery.
NetBackup progress This description only applies to a File System Restore (script-based BLI).
logs
For user-directed backups and restores performed with Backup, Archive, and Restore
interface, the most convenient log to use for NetBackup is the progress log. The progress
log file is written to the user’s home directory, by default in
/usr/openv/netbackup/logs/user_ops/username/logs. This log indicates whether
NetBackup was able to complete its part of the operation. You can view the progress log
from the Backup, Archive, and Restore interface, or you can use a file editor such as vi(1).
NetBackup debug logs The NetBackup server and client software provide debug logs for troubleshooting any problems
that occur outside of BLI backups. To enable these debug logs on the server or client, create
the appropriate directories under the following directory:
/usr/openv/netbackup/logs
For more information on debug logs, see the NetBackup Troubleshooting Guide or see the
/usr/openv/netbackup/logs/README.debug file.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 258
About troubleshooting backup or restore errors
NetBackup reports In addition to logs, NetBackup provides a set of reports that help isolate problems. One report
is All Log Entries on the server. For a description of all reports, see the NetBackup
Administrator’s Guide, Volume I.
■ There can be insufficient disk space for the VxFS Fulldata Storage Checkpoints
to keep track of changed block information. Check the All Log Entries report
for errors.
If there is a file system out-of-space condition, increase the size of the file system
so it is large enough for Fulldata Storage Checkpoints or use the Nodata Storage
Checkpoint Hot backup method. This error does not affect the integrity of the
backup images because a full backup of the affected file system occurs after
the condition is fixed.
■ If an incremental backup is intended, but the whole file system is backed up
instead, one of the following conditions might be present:
■ Storage Checkpoints that keep track of changes have been removed
■ The Block level incremental attribute is not selected
■ Other errors with a nonzero status code
The most common cause of this problem is the file system removed the Storage
Checkpoint that keeps track of the block changes. This action might occur if the
file system runs out of space, and there are no volumes available to allocate to
the file system. The integrity of the backup images is not affected, because a
full backup of the file system occurs at the next backup opportunity after
NetBackup detects that a Storage Checkpoint is missing.
This indicates that there was an attempt to back up a file system that is not a
VxFS file system with the Block level incremental attribute. This error can also
occur if the file system is not mounted.
■ Status Code 73. bpstart_notify failed.
When running the notify scripts, the bpstart_notify script exited with a nonzero
status code, or the permission bits are set wrong on the bpstart_notify script.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 260
About troubleshooting backup or restore errors
The script must have execute permission. If the permission bits are set, check
the bpstart_notify_output.ORACLE_SID file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory.
■ Status Code 74. Client timed out waiting for bpstart_notify to complete.
Check the BPSTART_TIMEOUT setting on the NetBackup server. The
BPSTART_TIMEOUT specified did not allow enough time for the script to complete.
The shutdown database operation might be taking too long, or the script might
be waiting for other streams to start. Check the
bpstart_notify_output.ORACLE_SID file and the
post_checkpoint_notify_output.ORACLE_SID file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory. Make sure that the policies
and schedules are configured with appropriate multiplexing factors and that the
required storage units that allow all streams to start at the same time are
configured. Check to see if all needed tape drives are working and available.
Make sure that the database is not processing transactions so that the instance
cannot be shut down immediately (if you are using one of the backup methods
where the database is shut down).
Finally, make sure that the priority on the BLI policies is higher than other policies,
so they get access to the tape drives before the other policies.
■ Status Code 75. Client timed out waiting for bpend_notify to complete.
Check the BPEND_TIMEOUT setting on the NetBackup server. The BPEND_TIMEOUT
specified did not allow enough time for the script to complete. The restart
database operation might be taking too long, or the script might be waiting for
other streams to call the bpend_notify script. Check the
bpend_notify_output.ORACLE_SID file and the
post_checkpoint_notify_output.ORACLE_SID file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory. Make sure that the policies
and schedules are configured with appropriate multiplexing factors and that the
required storage units that can allow all streams to be started at the same time
are configured. Verify that all needed tape drives are working and available
during backup.
■ Status Code 77. Execution of the specified system command returned a nonzero
status code.
Check the post_checkpoint_notify_output.KEYWORD file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory for the possible cause. The
post_checkpoint_notify script exited with a nonzero status code.
■ About the environment variables set by a user in the XML export parameter file
Table D-1 NetBackup for Oracle XML export and XML import archiving
features
Feature Description
System- and NetBackup for Oracle uses the eXtensible Markup Language (XML)
database-independent standard to represent relational database table data that is extracted
archive format from an Oracle database.
Self-identifying archive The XML Schema standard is used to describe the table data that
format is included in an archive. In this way, the archive contains the key
to understanding the format of the data as well as the data itself.
Command line Parameter files specify the table data to include in an archive and
interfaces that allow the table data to extract from an archive for import into an Oracle
export and import at database.
row-level granularity
Restore destination NetBackup for Oracle can either restore XML data to an operating
option system directory or import the data back into the Oracle database.
Flexible archive image The NetBackup catalog contains information on the contents of the
searches archive that can be searched by using flexible search criteria, such
as tablename or user.
Command line 1
Script (bporaexp or
bporaexp64)
2 3
Oracle DBMS
Query processor
XML generator
OS Directory
NetBackup
Activity Process
Oracle XML archive NetBackup for Oracle extracts database table data, converts
it into XML format, and stores XML data to either of the
following types of repositories:
■ A directory
■ A storage unit
XML export NetBackup converts Oracle table data to XML format (XML
schema or metadata and XML instance or data).
XML Archiver 265
NetBackup for Oracle XML export and XML import
Activity Process
See “NetBackup for Oracle XML export and XML import” on page 262.
See “Sequence of operation: XML export archive” on page 265.
See “Sequence of operation: XML import restore” on page 268.
See “XML import restore process” on page 267.
Oracle DBMS
Query processor
OCI
Scheduler
NetBackup
NetBackup for Oracle users or automatic schedules start the database XML export
archives. This operation is done by performing a manual backup of an Oracle policy,
by invoking a script at the command line on the client.
For an XML export archive:
■ The NetBackup for Oracle script calls the bporaexp utility with a specified
parameter file.
■ The query processor uses the parameters in the specified file to build an SQL
query for each table.
■ Oracle’s OCI API executes the queries on the Oracle database instance to be
archived.
■ The query processor passes the output (including metadata and data for a single
table or multiple tables) to the XML Generator.
XML Archiver 267
NetBackup for Oracle XML export and XML import
■ For each table passed, the XML generator builds one or more sets of XML
schema and XML instance documents.
■ XML data streams are backed up by NetBackup.
■ Alternately, bporaexp allows the files to be saved to an operating system
directory.
See “XML export archive process” on page 263.
See “XML import restore process” on page 267.
See “NetBackup for Oracle XML export and XML import” on page 262.
See “Sequence of operation: XML export archive” on page 265.
OS Directory
Restore NetBackup
XML
export
XML Format
OS Directory
Activity Process
Oracle XML Restore NetBackup for Oracle manages the retrieval of archived
database table data, the parsing of the XML format, and the
insertion of the data back into the Oracle database.
Activity Process
bporaimp/bporamip64 NetBackup for Oracle’s XML import utility can parse the
commands XML-formatted data for re-insertion into the database or can
redirect the data to an OS directory.
Option to
restore XML
files on disk
Archive name
Table metadata,
Table data Keyword
Table name
Script
OCI XML data loader (bporaimp)
Oracle DBMS
(Parameter file)
Command line
NetBackup for Oracle users start database XML import restores by invoking a
NetBackup for Oracle script at the client command line.
For an XML import restore:
XML Archiver 269
About the environment variables set by a user in the XML export parameter file
■ The NetBackup for Oracle script calls the bporaimp utility with a specified
parameter file.
■ The input parameters that identify the XML archive to restore are passed to
NetBackup.
■ NetBackup locates and reads the set of XML schema and instance documents
from the NetBackup storage unit.
■ The XML data stream is passed to an XML parser, which passes the data to
the XML data loader.
■ The XML data loader uses Oracle’s OCI API to insert the data into the database.
Optionally, bporaimp allows the XML data stream to bypass the XML parser
and be sent to an operating system directory. In addition, users can restore the
table metadata only into an operating system directory. bporaimp also allows
import from an operating system directory into Oracle.
See “XML export archive process” on page 263.
See “XML import restore process” on page 267.
See “NetBackup for Oracle XML export and XML import” on page 262.
See “Sequence of operation: XML export archive” on page 265.
NB_ORA_POLICY Specifies the name of the policy to use for the Oracle backup.
To define NB_ORA_POLICY, use the RMAN PARMS
statement or send statement in Oracle shell scripts. For
example:
install_path\NetBackup\dbext\Oracle\samples\bporaexp
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/bporaexp
■ For import:
Windows:
XML Archiver 271
About XML export shell scripts
install_path\NetBackup\dbext\Oracle\samples\bporaimp
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/bporaimp
The example export scripts that are installed in bporaexp are as follows:
Windows:
data_archiver_export.cmd
UNIX:
data_archiver_export.sh
data_archiver_export64.sh
bporaexp_help.param
bporaexp_partitions.param
bporaexp_table_to_files.param
bporaexp_tables.param
bporaexp_tables_rows.param
The example import scripts that are installed in bporaimp are as follows:
Windows:
data_archiver_import.cmd
UNIX:
data_archiver_import.sh
data_archiver_import64.sh
bporaimp_archive.param
bporaimp_archive_schema_to_files.param
bporaimp_archive_to_users.param
bporaimp_bfile_table.param
bporaimp_help.param
bporaimp_ignore_rows_table.param
bporaimp_large_table.param
bporaimp_list.param
bporaimp_old_archive.param
bporaimp_partitions.pram
bporaimp_table_from_files.param
bporaimp_table_to_files.param
XML Archiver 272
Performing an XML export archive
bporaimp_table_to_user.param
bporaimp_tables.param
Automatic backup of an As with Oracle backups using RMAN, the most convenient way to create archives that
Oracle policy consist of XML exports of data from your database is to create schedules for automatic
backups. The Oracle policy runs NetBackup for Oracle shell scripts.
When the NetBackup scheduler invokes a schedule for an automatic backup, the NetBackup
for Oracle XML export shell scripts run as follows:
The NetBackup for Oracle XML export shell scripts start the XML export by running the
NetBackup bporaexp or bporaexp64 utility.
Manual backup of an The administrator can use the NetBackup server software to manually run an automatic
Oracle policy backup schedule for the Oracle policy. For more information, see the NetBackup
Administrator’s Guide, Volume I.
See “Testing configuration settings for NetBackup for Oracle” on page 111.
User-directed XML The following sections describe procedures for performing user-directed XML exports.
exports from the client
■ See “Running the NetBackup for Oracle XML export script on the client” on page 273.
■ See “Running bporaexp on the client as an Oracle user” on page 273.
■ See “Writing to a directory versus writing to a storage unit” on page 274.
■ See “About bporaexp parameters” on page 275.
XML Archiver 273
Performing an XML export archive
Running the NetBackup for Oracle XML export script on the client
You can initiate a database XML export from the operating system command prompt:
Type the full path to the shell script that performs the export. For example:
Windows:
install_path\oracle\scripts\data_archiver_export.cmd
UNIX:
/oracle/scripts/data_archiver_export.sh
The operating system shell starts the database XML export archive by running the
XML export script. The XML export script contains commands to run bporaexp.
The NetBackup for Oracle installation script installs sample scripts in the following
location:
Windows:
install_path\NetBackup\dbext\oracle\samples\bporaexp
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/bporaexp
3 Configure the runtime environment, because this method does not call the full
script that includes the runtime configuration.
On UNIX and Linux, check the sample scripts for runtime environment details.
See “About configuring the run-time environment” on page 99.
XML Archiver 274
Performing an XML export archive
bporaexp creates a set of XML schema and instance documents that can be used
to archive Oracle table data. For each archive, one master XML schema (.xsd)
document is generated. In addition, bporaexp generates a table-specific schema
(.xsd) document and a table specific instance (.xml) document for each table.
Additional files are created if the table contains LONG or LOB columns.
See “Performing an XML export archive” on page 272.
DIRECTORY=\db\netbackup\xml
UNIX:
DIRECTORY=/db/netbackup/xml
Table D-6 shows the files NetBackup creates when you run the command.
File Content
UNIX: /db/netbackup/xml/test1/USER1/TEST1.xsd
UNIX: /db/netbackup/xml/test1/USER1/TEST1.xml
If the DIRECTORY parameter is not specified, NetBackup writes the backup images
to a storage unit. A NetBackup backup set is created and cataloged under the name:
XML Archiver 275
Performing an XML export archive
Windows:
\Oracle\XMLArchive
UNIX:
/Oracle/XMLArchive
All NetBackup for Oracle bporaexp backups are cataloged using this convention.
Alternatively, if the parameter file does not contain the DIRECTORY parameter,
NetBackup creates and catalogs the following files:
Windows:
\Oracle\XMLArchive\test1\test1.xsd
\Oracle\XMLArchive\test1\USER1\TEST1.xsd
\Oracle\XMLArchive\test1\USER1\TEST1.xml
UNIX:
/Oracle/XMLArchive/test1/test1.xsd
/Oracle/XMLArchive/test1/USER1/TEST1.xsd
/Oracle/XMLArchive/test1/USER1/TEST1.xml
In production, do not use the DIRECTORY parameter in the bporaexp parameter file.
When you write to a storage unit, NetBackup offers the features that include
searching and cataloging with the NetBackup catalog and automatic handling of
output that exceeds file system limits. With the DIRECTORY parameter, file system
limits, such as a 2 GB maximum, can cause an error.
To run bporaexp on the client, run the following command:
■ Some parameters are valid only when you write to a storage unit. Other
parameters are valid only when you write to a directory. In the following table,
the Target Location column contains either Storage Unit or Directory to indicate
whether the parameter in that row applies to writing to a storage unit or to a
directory. Parameters that are recognized when you write to a directory are
ignored when you write to a storage unit.
Table D-7 shows the available bporaexp parameters with their default values.
NAME Y no default The name of the master XML schema file. Directory
NB_ORA_SERV N default master Optionally specifies the name of the Storage Unit
server NetBackup master server.
NB_ORA_CLIENT N default client Optionally specifies the name of the Storage Unit
NetBackup for Oracle client.
NB_ORA_POLICY N default Oracle Optionally specifies the name of the Storage Unit
policy NetBackup for Oracle policy.
XML Archiver 277
Performing an XML export archive
NB_ORA_SCHED N default backup Optionally specifies the name of the backup Storage Unit
policy policy schedule to use.
schedule
ROW_BUFFER N 1000 Specifies the size, in rows, of the buffer used Directory
to fetch rows. Tables with LONG columns are
fetched one row at a time. The maximum
value allowed is 32767.
TABLES Y no default Lists the table names, view names, and Directory
partition names to export. The USERID must
have SELECT privilege on the tables and
views. The syntax used is:schema.table:
partition name or schema.view name
XML Archiver 278
Browsing XML export archives using bporaimp parameters
The Oracle password is not required. The operating system account that is running
bporaimp has access only to archives that were created using the same account.
Note: Only XML export archives created using NetBackup mode are searched.
Exports stored in an operating system directory using the DIRECTORY parameter
are not searched.
For example, assume you named the list parameter file bporaimp_list.param. At
the command prompt, type the following:
Note: Only XML export archives created using NetBackup mode are searched.
Exports stored in an operating system directory using the DIRECTORY parameter
are not searched.
XML Archiver 280
Restoring an XML export archive
The following UNIX or Linux example uses bplist to search all Oracle archives for
a client named jupiter. The sample output is produced for two archives, test1
and little_sales, where each archive has one Oracle table (test1 has
USER1.TEST1 and little_sales has USER1.LITTLE_SALES).
The following Windows example uses bplist to search all Oracle archives for a client
named jupiter. The sample output is produced for one archive, test.
install_path\oracle\scripts\data_archiver_import.cmd
UNIX:
/oracle/scripts/data_archiver_import.sh
The operating system shell starts the database restore by running the XML import
script file. The XML import script file contains commands to run bporaimp
(bporaimp64 on some platforms).
The NetBackup for Oracle installation script writes sample scripts to the following
location:
Windows:
install_path\NetBackup\dbext\oracle\samples\bporaimp
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/bporaimp
ARCHIVE_DATE_FROM N no default Optionally specifies a start date for the archive Storage Unit
to be imported. Used with ARCHIVE_DATE_TO
to specify a range. If not used, the most recent
archive is imported. If the range used results in
more than one archive, the most recent from
the range is used. The date format is
mm/dd/yyyy [hh:mm:ss].
ARCHIVE_DATE_TO N no default Optionally specifies an end date for the archive Storage Unit
to be imported. Used with
ARCHIVE_DATE_FROM to specify a range. If
not used, the most recent archive is imported.
If the range used results in more than one
archive, the most recent from the range is used.
The date format is mm/dd/yyyy [hh:mm:ss].
BFILE_DIRECTORY Y (if any no default Specifies a directory for the output of any BFILE Directory
table being columns being imported. Oracle’s CREATE
imported has DIRECTORY command can be used to create
BFILE the DIRECTORY in Oracle, and the name should
columns) match the name used in the export file.
XML Archiver 283
Restoring an XML export archive
NAME Y no default The name of the master XML schema file. This Directory
parameter is required if LIST = N.
NB_ORA_SERV N default Optionally specifies the name of the NetBackup Storage Unit
master master server.
server
NB_ORA_CLIENT N default Optionally specifies the name of the NetBackup Storage Unit
client for Oracle client.
RESTORE_TO_DIRECTORY N no default Optionally specifies a directory for the output Storage Unit
of the bporaimp utility. If used, the XML data
is not parsed and inserted into Oracle.
ROW_BUFFER N 1000 Specifies the size, in rows, of the buffer used Directory
to insert rows. Tables with LONG or LOB
columns are inserted one row at a time. The
maximum value allowed is 32767.
XML Archiver 285
Restoring an XML export archive
The user on client A cannot initiate a redirected restore to client B. Only the user
on client B, which is the client receiving the backup image, can initiate the redirected
restore. Any user who belongs to the database group that performed the backup
can restore it, unless the BKUP_IMAGE_PERM variable is set to USER.
nb_ora_serv = Netbackup_server
nb_ora_client =
original_client_where_XML_export_occurred.
install_path\NetBackup\db\altnames\saturn
UNIX:
/usr/openv/netbackup/db/altnames/saturn
NAME = sales
NB_ORA_SERV = jupiter
NB_ORA_CLIENT = jupiter
USERID = orauser/orapasswd
Examine these logs for any messages that show how to determine the source
of an error.
The NetBackup client writes these logs and they contain the following:
■ Requests from bporaexp and bporaimp
■ Activities between bporaexp and bporaimp and NetBackup processes
If the logs do not contain any messages, the following conditions could be
present:
■ bporaexp or bporaimp terminated before service is requested from
NetBackup.
■ bphdb (if started by the scheduler or graphical user interface) did not start
the shell script successfully. Check the bphdb logs for stderr and stdout
files.
Try to run the XML export or XML import script file from the command line to
determine the problem.
On UNIX, the error is usually due to a file permission problem for bphdb itself
or for the export or the import script file.
Ensure that the full XML export or import script file name is entered correctly
in the Backup Selections list of the Oracle policy configuration. Also verify
that this script name is correct.
For more information about debug logs and reports, refer to the NetBackup
Administrator’s Guide, Volume I.
See “About troubleshooting NetBackup for Oracle” on page 204.
XML Archiver 290
Troubleshooting XML export or XML import errors
The following explains the sequence of events for an action that bporaexp or
bporaimp initiates in NetBackup mode. This situation occurs when DIRECTORY is
not specified in the bporaexp or bporaimp command’s parfile. It suggests solutions
for the problems that can occur at each point in the sequence.
To troubleshoot by stage
1 bporaexp or bporaimp starts.
The NetBackup client interfaces gather information from the following places:
■ The environment, including bporaexp and bporaimp parameter files.
If you use scripts, you have to generate the parameter file manually.
■ Server configuration parameters on Windows.
■ The user’s bp.conf and /usr/openv/netbackup/bp.conf files on the UNIX
or Linux client.
This information is sent to the master server’s bprd process.
To troubleshoot a backup problem in this part of the sequence, examine the
following file:
Windows:
install_path\NetBackup\logs\bporaexp\log.mmddyy
UNIX:
/usr/openv/netbackup/logs/bporaexp/log.mmddyy
If the bprd process failed, check the bprd and bpbrm logs.
During this sequence, most failures occur because of incorrect NetBackup
server or Oracle policy configuration parameters.
NetBackup can usually select the correct Oracle policy and schedules. However,
NetBackup can select a policy or schedule in error if there are several Oracle
policies in its database.
In Windows, try setting the SERVER and POLICY values in the client environment
or by setting the following bporaexp parameters:
NB_ORA_POLICY=policyname
NB_ORA_SCHED=schedule
NB_ORA_SERV=Netbackup_server
NB_ORA_CLIENT=Netbackup_client
In UNIX, try setting the SERVER and POLICY values in the bp.conf file on the
client or by setting the following bporaexp parameters:
NB_ORA_POLICY=policyname
NB_ORA_SCHED=schedule
NB_ORA_SERV=Netbackup_server
NB_ORA_CLIENT=Netbackup_client
Windows:
install_path\NetBackup\logs\bporaimp\mmddyy.log
UNIX:
/usr/openv/netbackup/logs/bporaimp/log.mmddyy
Make sure that the correct NetBackup server and NetBackup client values are
used by setting the following bporaimp parameters:
NB_ORA_SERV=Netbackup_server
NB_ORA_CLIENT=Netbackup_client
Set these parameters to the same values that were used for the XML export
operation.
4 bporaexp or bporaimp issues read or write requests to the NetBackup client,
which then transfers data to or from the NetBackup server.
bporaexp builds an SQL query for each table being archived, and it uses the
Oracle Call Interface (OCI) to run the query. The query results are translated
into XML. The XML output is passed to the NetBackup client interfaces.
bporaimp uses the reverse process. That is, XML data is restored, parsed,
and inserted into the database.
A failure here is probably due to an Oracle error, or to a NetBackup media,
network, or time-out error.
5 bporaexp or bporaimp tells the NetBackup client to close the session and
disconnects from the Oracle database.
The NetBackup client waits for the server to complete its necessary actions
(backup image verification and so on) and then exits.
See “About troubleshooting NetBackup for Oracle” on page 204.
See “Minimizing timeout failures on large database restores” on page 217.
See “Troubleshooting each stage of the backup or restore” on page 214.
See “About NetBackup for Oracle troubleshooting steps” on page 205.
When bporaexp and bporaimp are used and the backup images are written to a
storage unit, these errors are also logged in the NetBackup debug logs. These logs
appear in the following directories:
Windows:
install_path\NetBackup\logs\bporaexp
install_path\NetBackup\logs\bporaimp
/user/openv/netbackup/logs/bporaexp
/user/openv/netbackup/logs/bporaimp
When you use bporaexp and bporaimp and the backup images are written to an
operating system directory, the file that is specified by the LOG= parameter is the
only source of error logging and tracing.
Appendix E
Register authorized
locations
This appendix includes the following topics:
■ On Windows:
C:\Program Files\Veritas\NetBackup\bin>nbsetconfig
nbsetconfig> DB_SCRIPT_PATH=c:\db_scripts
nbsetconfig> DB_SCRIPT_PATH=e:\oracle\fullbackup\full_rman.sh
nbsetconfig>
<ctrl-Z>
Note: Review the NetBackup Command Reference Guide for options, such
as reading from a text file and remotely setting clients from a NetBackup server
using bpsetconfig. If you have a text file with the script location or authorized
locations listed, nbsetconfig or bpsetconfig can read from that text file. An
entry of DB_SCRIPT_PATH=none does not allow any script to execute on a client.
The none entry is useful if an administrator wants to completely lock down a
server from executing scripts.
Register authorized locations 296
Registering authorized locations used by a NetBackup database script-based policy
bporaexp64 275 D
bporaimp 268, 278–279 debug logs 257
performing a restore 281 accessing 210
bporaimp64 279, 281 debug level 212
bpstart_notify 250, 255 enabling 207
bpstart_notify.oracle_bli 249 troubleshooting with log files 207
BPSTART_TIMEOUT 260 UNIX 209
browsing archives 278 Windows 207
Differential snapshot type 183, 188
C DIRECTORY
check_coverage 245 parameter 275–276, 283
client read timeout property 217
CLIENT_NAME 103, 105 E
CLIENT_READ_TIMEOUT 103, 106 environment variables 178
clients list, for backup policies 97 environmental variables
Clone snapshot type 183, 188 user-directed backup 120
commands error
allocate channel 21, 90 checking 119
backup 21, 90, 117 correcting 258
bplist 121, 279 example
bporaexp 265–266, 273, 275 bplist 121
bporaimp 268, 278–279 examples
bporexp64 275 parameter files 272
change 118 RMAN script 107
copy 117 scripts 272
crosscheck 115 execution log 211–212
crosscheck backupset 115
delete expired backupset 117
list 118
F
register database 114 failed operation
report 118 troubleshooting 213, 288
reset database 114 file system
restore 117 growing 259
resync catalog 117 UNCOVERED 244
rman file-based operations 153
execute backups 120 FROMUSER 279, 283
execute scripts 121 Fulldata Storage Checkpoint 241
performing restore 126
script syntax 121 H
send 109 HELP 276, 283
set duplex 109 hot backup 248
switch 117
COMMIT 283 I
compatibility information 35
IGNORE_ROWS 283
configuration
INIT.ORA 251
database user authentication 110
installation
CONSISTENT 276
adding a license 37
Copy-on-write technology 183, 188
prerequisites for clusters 37
correcting errors 258
Index 299
M P
parameter file 266, 269, 273
Managed by SLP retention 183, 188
parms operand 101
manual archive 272
PARTITIONS 277
manual backups 120, 254, 272
permission bits 260
maximum jobs per client 53
Plex snapshot type 183, 188
Maximum snapshot limit retention type 183, 188
Point-in-time copy 183, 188
Maximum Snapshots parameter 183, 188
Point-in-time rollback restores
Mirror-break-off technology 183, 188
Oracle policy 186
multi-streamed backups 218
policies
multiple copies feature 75, 94, 178
changing properties 31
multiplexing
creating 31
overview 13
policy configuration
adding clients 97
N attributes 93
NAME 276, 284 backup selections list 98
NB_ORA_CLIENT 269, 275–276, 278, 282, 284 for databases 91
NB_ORA_COPY_NUMBER 103 for Snapshot Client 163, 175
NB_ORA_POLICY 270, 275–276 overview 47
NB_ORA_SCHED 270, 275, 277 testing 111
NB_ORA_SERV 269, 275–276, 278, 282, 284 POLICY_IN_CONTROL 250–251
NB_PC_ORA_RESTORE variable 171 post_checkpoint_notify 250, 260
NetApp
number of snapshots per volume 183, 188
Index 300
processes scripts
log files for NetBackup processes 210 bpend_notify 260
Progress Log 256 bpstart_notify.oracle_bli 249
proxy copy 152 check_coverage 245
notify 255
Q RMAN 22–23
scheduler 119, 133, 272
QUERY 277
XML export 270
send operand 120
R SERVER 103, 106
redirected restores 128, 285 setup_bli_scripts
redo log 245 contents of 250
reports 207 sample of 251
See also debug logs shared library module
All Logs Entries 207 libobk 206
database operations 204 SHUTDOWN_BKUP_RESTART 248, 255
restore SHUTDOWN_CKPT_RESTART 249, 255
errors 258 snapshot backup 150, 162, 170
multistream 126 configuration requirements 162
Point-in-time rollback 170 database objects included 162
snapshot rollback 170 policy configuration 162
to a different client 128, 285 restore method 170
user-directed 281 Snapshot Client
with Snapshot Client methods 170 configuring policies 162
XML import 267–268 effects on policies and schedules 177
RESTORE_SCHEMA_ONLY 284 file-based operations 153
RESTORE_TO_DIRECTORY 284 overview 151
restoring proxy copy 152
Point-in-time rollback 186 stream-based operations 153
retention period snapshot rollback 170
for Snapshot Client 178 Snapshot Type parameter 183, 188
RMAN SnapVault 171
browsing repository 121 Storage Checkpoint 174
querying repository 118 backup 249
script example 107 removing 259
scripts 181 stream-based operations 153
SEND 102
rman change command 123
rollback restores
T
tab
Point-in-time rollback 186
Backup Selections tab 79
ROW_BUFFER 277, 284
Instances and Databases tab 77
Oracle tab 81
S TABLES 277, 279, 285
schedules testing policy configuration 111
backup 119, 133, 272 timeout failures
frequency 74–75, 93–94 minimizing 217
properties 74–75, 93–94 TNS_ADMIN
properties for Snapshot Client 177 automatic registration 64
retention for Snapshot Client 178 manually adding instance 57
Index 301
TNS_ADMIN (continued)
registering an instance 60
TOUSER 285
transaction logs
see archive logs 175
U
UNCOVERED file system 244
Unicode 263
unified logging 209–210
update_clients 259
Use Replication Director property 93
user-directed archive 272
user-directed restore 281
USERID 278, 285
UTF-8 263
V
VERBOSE 104, 106
Verifying installation 206
Veritas Storage Foundation 175
VIEWS 278
W
wizards
Policy Configuration 31
X
XML
archiving features 263
export 264
import 267
instance 264, 266, 268, 274
schema 263, 266, 268, 274