NetBackup102 AdminGuide Oracle
NetBackup102 AdminGuide Oracle
Administrator's Guide
Release 10.2
NetBackup™ for Oracle Administrator's Guide
Last updated: 2023-03-16
Legal Notice
Copyright © 2023 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, Veritas Alta, 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
NetBackup for Oracle XML export and XML import ............................ 285
NetBackup for Oracle XML export and import archiving features
.................................................................................... 286
XML export archive process .................................................... 287
Sequence of operation: XML export archive ............................... 288
XML import restore process .................................................... 290
Sequence of operation: XML import restore ................................ 291
About the environment variables set by a user in the XML export
parameter file ....................................................................... 293
Contents 11
■ Logging the RMAN input and output on a clientNetBackup for Oracle logging
the RMAN input and output using RMAN_OUTPUT_DIR
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.
Introduction 14
NetBackup for Oracle features
Feature Description
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 15
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:
Feature Description
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.
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.
Feature Description
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.
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.
Term Definition
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.
options (for example, calendar-based scheduling). After you create a policy, you
can use the Policies utility to configure the options that are not part of the wizard.
Policy creation includes assigning instances to the policy. The Oracle Intelligent
Policy does not require you to know how RMAN functions or how to use scripts.
The feature is instance-based and not scripting based.
See “Creating an Oracle Intelligent Policy (OIP)” on page 72.
NetBackup for Oracle includes a library of functions that enable RMAN to use
NetBackup. On UNIX, NetBackup uses the RMAN SBT_LIBRARY parameter to
link the RMAN server software with the media management API library that
NetBackup for Oracle installs. On Windows, the NetBackup for Oracle library is
located in c:\Windows\system32.
See “Installing NetBackup for Oracle” on page 27.
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.
Introduction 21
Logging the RMAN input and output on a clientNetBackup for Oracle logging the RMAN input and output using
RMAN_OUTPUT_DIR
■ 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 22.
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.
Introduction 22
NetBackup for Oracle operation using a script-based policy
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
■ 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 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 runs 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.
■ 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 the Oracle Intelligent Policy” on page 19.
See “About NetBackup for Oracle” on page 12.
See “NetBackup for Oracle features” on page 13.
See “About Oracle RMAN” on page 23.
backup. For more information on the backup and recovery process, see your Oracle
documentation.
Table 1-3 explains Oracle RMAN terms as they pertain to NetBackup.
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)
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.
Term Definition
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.
For information on the benefits and disadvantages of using a recovery catalog, see
your Oracle documentation.
See “NetBackup for Oracle features” on page 13.
See “About Oracle RMAN” on page 23.
See “NetBackup for Oracle operation using the Oracle Intelligent Policy” on page 19.
See “NetBackup for Oracle operation using a script-based policy” on page 22.
Chapter 2
NetBackup for Oracle
QuickStart
This chapter includes the following topics:
Note: The Oracle database agent is installed as part of the NetBackup client
installation.
server. The NetBackup administrator uses nboraadm on the master server to control
the list of users and clients that have access to nboraadm on the NetBackup client.
To register Oracle database instances
1 In the NetBackup Administration Console, in the left pane, expand
NetBackup Management > Applications > Oracle.
2 The Oracle entry in the left pane contains two items:
■ 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 31.
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 30
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 31
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 33
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 67.
See “Installing NetBackup for Oracle” on page 27.
See “Registering Oracle database instances” on page 28.
See “Creating an Oracle policy” on page 33.
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 35
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 67.
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
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.
Installing NetBackup for Oracle 40
About linking Oracle RMAN with NetBackup for UNIX
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.
See “NetBackup server and client requirements for NetBackup for Oracle”
on page 38.
See “Verifying the operating system and platform compatibility” on page 37.
See “Verifying environment variables and shutting down Oracle” on page 41.
See “About the Oracle recovery catalog” on page 25.
See “About Oracle RMAN” on page 23.
To manually link Oracle RMAN with NetBackup, follow the instructions in one of
the platform-specific sub-topics:
■ See “Manually linking AIX (64-bit)” on page 43.
■ See “Manually linking HP Itanium (64-bit)” on page 44.
■ See “Manually linking Linux x86 (64-bit)” on page 45.
■ See “Manually linking IBM pSeries or zSeries” on page 45.
■ See “Manually linking Solaris x86 (64-bit)” on page 46.
■ See “Manually linking Solaris SPARC (64-bit)” on page 47.
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “About Oracle RMAN” on page 23.
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
Installing NetBackup for Oracle 44
About linking Oracle RMAN with NetBackup for UNIX
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 42.
See “About Oracle RMAN” on page 23.
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
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 42.
See “About Oracle RMAN” on page 23.
Installing NetBackup for Oracle 45
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
mv libobk.so libobk.so.orig
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
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 42.
See “About Oracle RMAN” on page 23.
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 46
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
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 42.
See “About Oracle RMAN” on page 23.
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
Installing NetBackup for Oracle 47
About linking Oracle RMAN with NetBackup for UNIX
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
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 42.
See “About Oracle RMAN” on page 23.
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.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
Installing NetBackup for Oracle 48
About linking Oracle RMAN with NetBackup for UNIX
See “About linking Oracle RMAN with NetBackup for UNIX” on page 40.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 42.
See “About Oracle RMAN” on page 23.
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 56.
See “About Oracle Intelligent Policies (OIP)” on page 70.
Oracle policy configuration 51
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 56.
See “About Oracle Intelligent Policies (OIP)” on page 70.
See “About script-based Oracle policies” on page 90.
■ NetBackup looks for the Oracle health check files that are found in the Oracle
home. These are not cleaned up when a database is deleted. You may need
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 60.
See “Registering an Oracle database instance” on page 63.
See “About instance actions” on page 69.
See “Viewing the Oracle database instance repository” on page 58.
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 60
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 63
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 63.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 56.
See “Creating an Oracle database instance group” on page 31.
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:
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 66.
See “Creating an Oracle database instance group” on page 31.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 56.
See “Registering an Oracle database instance” on page 63.
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 60.
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 70
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 72
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 72.
See “About policy attributes” on page 93.
See “Instances and Databases tab” on page 81.
See “Backup Selections tab” on page 83.
See “Instance management for an Oracle Intelligent Policy (OIP)” on page 56.
See “About Oracle database instance groups” on page 66.
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
See “About NetBackup for Oracle schedule properties using Oracle Intelligent
Policy” on page 77.
See “Oracle tab” on page 84.
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 78
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
See “About NetBackup for Oracle schedule properties using Oracle Intelligent
Policy” on page 77.
See “Configuring NetBackup for Oracle automatic backup schedules” on page 76.
■ 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.
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.
Oracle policy configuration 84
About Oracle Intelligent Policies (OIP)
Oracle tab
This tab contains options for databases, tablespaces, data files, archived redo logs,
file name formats, and database backup shares.
Oracle policy configuration 85
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
Multiple MSDP Select Use multiple MSDP storage units or multiple nodes in a
storage units or cluster to enable Multiple MSDP storage option. The option allows
multiple nodes in a backing up Oracle data files to multiple MSDP storage units or
cluster multiple nodes in a cluster in parallel. The following parameter is
used to specify storages that data is distributed to.
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 90
About script-based Oracle policies
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: 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
Oracle policy configuration 91
About script-based Oracle policies
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 40.
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:
■ The rman command starts the requested operation on the databases.
■ When the process requires media to store backup data, RMAN starts a
user-directed backup by issuing a backup request.
■ 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 works in
essentially the same manner except that RMAN issues a restore request. This
request causes NetBackup to retrieve the data from secondary storage and
send it to NetBackup for Oracle on the client.
■ RMAN supports parallel operations, so 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.
■ 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 “About the environment variables set by NetBackup for Oracle” on page 103.
See “About the RMAN SEND command variables” on page 104.
See “About the bp.conf file on UNIX systems” on page 107.
See “About creating shell scripts” on page 108.
Oracle policy configuration 92
About script-based Oracle policies
■ 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 98.
■ 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 319.
12 When you have added all the schedules, clients, and backup selections you
need, click OK.
See “About schedule properties ” on page 94.
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.
Table 4-8 Policy attribute for NetBackup for Oracle policies (continued)
Attribute Description
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.
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.
Oracle policy configuration 95
About script-based Oracle policies
Property Description
The retention period for an application backup type schedule refers to the length of time
that NetBackup keeps backup images for stream-based backups. The retention period for
an automatic backup type schedule refers to the length of time that NetBackup keeps backup
images for proxy based backups.
The retention period for an automatic backup type schedule refers to the length of time that
NetBackup keeps backup images for all backup types (stream-based, proxy, etc.)
The Oracle database also has retention settings for backup images in the RMAN catalog.
As a general recommendation, the NetBackup retention of a backup image should be longer
than the database retention of the same backup image.
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 77.
Oracle policy configuration 98
About script-based Oracle policies
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 99.
Note: Be sure to specify the correct script name in the backup selections list to
prevent an error or a wrong operation.
Oracle policy configuration 100
About script-based Oracle policies
/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.
■ Environment variables that are set in the backup script before RMAN is started.
■ The environment variables that the login or shell inherits.
See “About the Oracle RMAN environment in NetBackup for Oracle” on page 101.
■ The environment variables that the master server initiation of an automatic
schedule sets.
See “About the environment variables set by NetBackup for Oracle” on page 103.
■ On UNIX, the Oracle user’s configuration file; $HOME/bp.conf.
■ The NetBackup configuration:
■ Windows: The
HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config
registry keys.
■ UNIX: The /usr/openv/netbackup/bp.conf file.
■ Both: The NetBackup GUI settings for server, client name, optional default
policy, and optional default schedule.
See “About the bp.conf file on UNIX systems” on page 107.
■ The following defaults apply:
■ A server must be specified, there is no default.
■ The client name defaults to the host name.
■ The master server selects the first policy of type Oracle for the client name.
■ The master server selects the first schedule of type Application Backup
(stream-based) or Automatic Full Backup (proxy) from the policy.
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'
PARMS "SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,
ENV=(NB_ORA_POLICY=your_policy,NB_ORA_SERV=your_server)";
Oracle policy configuration 103
About script-based Oracle policies
See “About the environment variables set by a user in the XML export parameter
file” on page 293.
See “About the RMAN SEND command variables” on page 104.
See “About configuring the run-time environment” on page 100.
See “About the RMAN SEND command variables” on page 104.
See “About the bp.conf file on UNIX systems” on page 107.
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 100.
See “About the bp.conf file on UNIX systems” on page 107.
See “About the environment variables set by a user in the XML export parameter
file” on page 293.
See “About the environment variables set by NetBackup for Oracle” on page 103.
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 110.
See “Using the NetBackup for Oracle sample scripts” on page 111.
See “About the set duplex command” on page 111.
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 111
About script-based Oracle policies
complete_database_restore.sh
complete_pdb_restore.sh
pit_database_restore.sh
pit_pdb_restore.sh
See “Using the NetBackup for Oracle sample scripts” on page 111.
See “About creating RMAN scripts manually” on page 109.
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.
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.
See “About creating RMAN scripts manually” on page 109.
See “About the NetBackup for Oracle sample scripts” on page 110.
See “Using the NetBackup for Oracle sample scripts” on page 111.
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.
■ Creating an instant access mount from an Oracle Copilot universal share image
■ 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
Note: 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.
NetBackup Copilot for Oracle 117
Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)
See “Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)”
on page 117.
See “Backup Selections tab” on page 83.
See “Creating an Oracle Intelligent Policy (OIP)” on page 72.
See “About restoring from a data file copy to ASM storage using RMAN” on page 139.
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.
NetBackup Copilot for Oracle 118
Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)
■ 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 NetBackup appliance media server can only be configured in a pure
IPv4 or dual stack IPv4/IPv6 mode.
Note: Oracle Copilot with universal share is not supported on a universal share
that has WORM enabled storage.
The Database Backup Shares option protects the database backups that an Oracle
DBA creates on a universal share.
The Whole Database - Datafile Copy Share option enhances the OIP to allow the
NetBackup Administrator to choose a single or multiple universal shares 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 shares.
NetBackup Copilot for Oracle 120
Configuring an OIP using universal shares (Oracle Copilot)
■ The Oracle Copilot shares have to be mounted on each node of the RAC cluster
using the same mount point name on each node.
To configure an OIP using universal shares (Oracle Copilot)
1 Create universal shares with the NFS protocol.
Refer to the information on creating a universal share in the NetBackup Web
UI Administrator's Guide.
■ Ensure that the backup datafile stream number is larger than number of shares
in the Oracle Copilot Policy.
If the number of streams are less, NetBackup automatically changes the number
of parallel streams to match the shares.
■ If the source Oracle is of the type RAC, ensure that multiple shares are mounted
on each instance node with the same mount path.
For example, if there are four shares on four nodes, each node must have all
shares mounted.
■ If you want to replace an old share, ensure that the new share is mounted on
the same path. Run RMAN crosscheck before you trigger any backup job.
■ If you want to add a new share to the policy, ensure that the new share is
mounted on all Oracle nodes.
NetBackup Copilot for Oracle 121
Configuring an OIP using universal shares (Oracle Copilot)
If you have new datafiles added to the database, the datafiles are backed up to
the new share. If there is no new datafile added, the new share is empty and
the backup job partially succeeds. It is recommended that you create a new
policy for all the shares including the new share.
■ You can restore datafile copies on the new mount shares from multiple nodes
of Oracle RAC. It helps to improve the restore performance. To improve the
performance, start by configuring multiple instances in RMAN script.
Partial success ORA-19504: failed to Shares that failed 1 Verify that the
create file from nodes. shares on all
"XXXXXXXXXXXX" nodes have
correct
ORA-27040: file
permissions
create error, unable
associated.
to create file
2 Remount the
share, run
crosscheck
manually, and
then run the job
again.
NetBackup Copilot for Oracle 122
Configuring an OIP using universal shares (Oracle Copilot)
4 If the file is
corrupted, keep
all the logs and
call technical
support.
5 Move the
corrupted file
from a shared
drive to a local
drive, run
crosscheck, and
then run the job
again.
NetBackup Copilot for Oracle 123
Configuring an OIP using universal shares (Oracle Copilot)
2 Increase the
maximum
snapshot
number and run
crosscheck
manually.
3 Modify datafile
copy tag in the
Oracle tab of
policy, and run a
new full backup.
Partial success RMAN Catalog failed Shares that failed 1 Verify that the
from nodes. shares on all
nodes have
correct
permissions
associated.
2 Remount the
failed share, find
the backup set
on share, and
try to manually
catalog it.
NetBackup Copilot for Oracle 124
Creating an instant recovery point from an Oracle Copilot image (NetBackup Appliance share)
Fail SLP job keeps failing. The ushare is created 1 Verify and
on a different backup change the SLP
target storage. backup
snapshot
storage target.
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.
NetBackup Copilot for Oracle 125
Creating an instant recovery point from an Oracle Copilot image (NetBackup Appliance share)
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 135.
NetBackup Copilot for Oracle 127
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:
To delete the instant access mount, refer to the steps in the NetBackup Web UI
Oracle Administrator's Guide.
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.
NetBackup Copilot for Oracle 129
Cleaning up the Oracle Copilot share after point in time restore of database
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
NetBackup Copilot for Oracle 130
Cleaning up the Oracle Copilot share after point in time restore of database
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
NetBackup Copilot for Oracle 131
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
NetBackup Copilot for Oracle 133
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.
NetBackup Copilot for Oracle 136
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 (NetBackup
Appliance share)” on page 124.
See “About Oracle Copilot” on page 115.
NetBackup Copilot for Oracle 139
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 117.
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;
}
See “Single-step restore to ASM storage from an Oracle Copilot recovery point”
on page 135.
See “About NetBackup for Oracle restores” on page 152.
Chapter 6
Performing backups and
restores of Oracle
This chapter includes the following topics:
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 142
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 145
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.
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 147.
See “Overview of using NetBackup for Oracle” on page 140.
See “Browsing backups using the bplist command” on page 149.
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
Performing backups and restores of Oracle 148
About NetBackup for Oracle backups
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
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 107.
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.
See “About the Oracle RMAN environment in NetBackup for Oracle” on page 101.
See “NetBackup for Oracle terminology” on page 18.
Performing backups and restores of Oracle 149
Browsing backups using the bplist command
# 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.
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 145.
See “Browsing XML export archives using bplist” on page 303.
proxy backups and OIP backups, the retention setting on the Automatic Backup
schedule determines retention of the NetBackup image.
To manage expired backup images from the NetBackup repository, access the
Retention setting of the Application backup schedule. Specify the length of time
before NetBackup expires a backup image.
See “About schedule properties ” on page 94.
You can also manage the expired backup images from the Oracle repository. This
method sets the backup retention as an RMAN attribute, rather than a NetBackup
attribute. RMAN deletes the obsolete but not the unexpired backups from NetBackup.
The following items are also part of this process:
■ Set the NetBackup backup retention for Oracle backups to be either infinite or
significantly longer than the RMAN retention.
■ Set the RMAN retention to the number or duration to keep the backup sets in
the RMAN catalog. If no RMAN catalog exists, then use SQL to set an
appropriate value for "control_file_record_keep_time". The minimum appropriate
time is the catalog backup retention time plus the maximum time between catalog
maintenance operations.
■ On a regular basis, run the RMAN delete obsolete command to expire obsolete
images from the RMAN catalog, the control file, and from NetBackup.
■ If a cross-check of the catalog is required, perform the cross-check after RAMN
deletes the obsolete backups.
■ Stagger the initiation of RMAN catalog maintenance functions. Staggering is
done to limit the number of concurrent checks or deletion requests that RMAN
makes of the NetBackup master server.
■ Perform the RMAN catalog maintenance functions on a more frequent basis to
limit the number of NetBackup catalog requests in a single session.
■ 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.
Performing backups and restores of Oracle 151
Managing expired backup images
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
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
Performing backups and restores of Oracle 153
About NetBackup for Oracle restores
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
-add_rac_to_data_guard or -add_instance_to_data_guard option to add the
database to the configuration.
To remove access to the backup images, use the nboraadm command with the
-remove_rac_from_data_guard or -remove_instance_from_data_guard option.
See the NetBackup Commands Reference Guide for details of the nboraadm
command.
Performing backups and restores of Oracle 154
About NetBackup for Oracle restores
See “About an Oracle recovery shell script on the clientAbout a NetBackup for
Oracle recovery shell script on the client” on page 152.
See “Redirecting a restore to a different client” on page 156.
See “Running RMANRunning RMAN in NetBackup for Oracle” on page 148.
streams. When you send the request to NetBackup, there may not be the same
number of streams or jobs running during restore. NetBackup adjusts the stream
count based on the count that is specified when you use the NB_ORA_PC_STREAMS
variable. Or, NetBackup uses the number of images the requested restore job needs
if the restore job needs more than one image. NetBackup selects whichever is the
minimum number needed to complete the restore job.
When the restore job needs only one image and it is a snapshot, the stream count
is based on the count that you specify in NB_ORA_PC_STREAMS. Or, NetBackup uses
the number of files the requested restore job needs to complete. NetBackup selects
whichever is the minimum number needed to complete the restore job. Also, the
files are evenly distributed across the streams based on the file size.
When the restore needs only one image and that image is not a snapshot, then
NetBackup does not attempt to perform a multistream restore.
See “About the RMAN SEND command variables” on page 104.
When the multistream restore is started, a parent job is created that initiates a child
job for each stream. If you cancel the parent job, all incomplete child jobs are
canceled and the job exits with a status of 150. If one of the child jobs is successful
before parent cancellation, then the parent job exits with a status of 1. If you cancel
one of the running child jobs, the child exits with status 150 and the parent job exits
with a status of 1.
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
Performing backups and restores of Oracle 157
About NetBackup for Oracle restores
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.
See “About performing a redirected restore with RMAN” on page 158.
See “Example - Performing a redirected restore of Oracle” on page 159.
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.
Performing backups and restores of Oracle 159
About NetBackup for Oracle restores
■ On UNIX, grant write permission to the directory to which you want to restore
the data files.
■ 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.
Performing backups and restores of Oracle 160
About NetBackup for Oracle restores
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.
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.
See “Redirecting a restore to a different client” on page 156.
Performing backups and restores of Oracle 161
Using NetBackup for Oracle in a Microsoft Windows cluster environment
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.
See “About backups of an Oracle clustered database on Windows” on page 161.
See “User-directed backup or restore from the Windows client” on page 163.
install_path\NetBackup\dbext\oracle\samples\rman\
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.
Performing backups and restores of Oracle 163
Using NetBackup for Oracle in a Microsoft Windows cluster environment
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:
See “User-directed backup or restore from the Windows client” on page 163.
See “Bringing the database instance online on WindowsBringing the database
instance online on Windows in NetBackup for Oracle” on page 163.
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.
Performing backups and restores of Oracle 164
Using NetBackup for Oracle in a Microsoft Windows cluster environment
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.
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 7-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 7-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.
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
See “About configuring Snapshot Client with NetBackup for Oracle” on page 180.
See “About restoring individual files from a NetBackup for Oracle snapshot backup”
on page 187.
See “About configuring NetBackup for Oracle block-level incremental backups on
UNIX” on page 190.
See “How Snapshot Client software affects backup types” on page 195.
See “About Oracle support for Replication Director” on page 198.
See “About NetBackup for Oracle backups” on page 146.
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.
See “Optimizing and deduplicating stream-based and proxy copy Oracle backups”
on page 238.
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
See “About Oracle RMAN” on page 23.
See “NetBackup for Oracle stream-based operations” on page 168.
See “Proxy backup examplesNetBackup for Oracle proxy backup examples”
on page 177.
Oracle Server
Data
Control commands
Oracle database Oracle database
disk disk
NetBackup
Storage
Figure 7-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 RMAN backup proxy command initiates a proxy copy backup of the specified
objects. The objects that can be backed up using the proxy copy functionality depend
on the Oracle version. RMAN translates the objects into the physical file names
and provides a list of file names to NetBackup for Oracle.
See “Database objects supported by advanced backup methods” on page 172.
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 171.
See “About configuring Snapshot Client with NetBackup for Oracle” on page 180.
See “Database objects supported by advanced backup methods” on page 172.
See “About NetBackup multistreaming” on page 173.
See “RMAN multiple channels” on page 173.
See “Restoring data files to a new location” on page 174.
See “Redirecting a restore to a different client” on page 174.
See “Symbolic links and raw data files (UNIX)” on page 175.
See “Quick I/O data files (UNIX)” on page 175.
See “RMAN incremental backupsRMAN incremental backups using NetBackup for
Oracle” on page 176.
See “About Oracle RMAN” on page 23.
■ Queries the policy to check whether the Snapshot Client policy attributes are
specified.
■ Initiates a configured number of Snapshot Client backups and waits until the
jobs are completed.
See “About NetBackup multistreaming” on page 173.
For a restore operation, the NetBackup for Oracle agent performs the following
steps:
■ Receives a list of files to restore from RMAN.
■ Sends a restore request to the NetBackup server for all files in the list.
■ Waits for NetBackup to restore all files in the file list.
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
See “Database objects supported by advanced backup methods” on page 172.
See “About NetBackup multistreaming” on page 173.
See “RMAN multiple channels” on page 173.
See “RMAN incremental backupsRMAN incremental backups using NetBackup for
Oracle” on page 176.
See “Proxy backup examplesNetBackup for Oracle proxy backup examples”
on page 177.
See “About NetBackup for Oracle with Snapshot Client” on page 165.
See “Proxy backup examplesNetBackup for Oracle proxy backup examples”
on page 177.
See “NetBackup for Oracle stream-based operations” on page 168.
See “NetBackup for Oracle file-based operations” on page 169.
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.
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
See “Redirecting a restore to a different client” on page 174.
See “Performing a snapshot rollback restore using a script or RMAN command”
on page 188.
See “About the NetBackup for Oracle backup and restore operations” on page 171.
run {
allocate channel t1 type 'SBT_TAPE';
backup
incremental level 0
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;
}
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
See “RMAN multiple channels” on page 173.
NetBackup for Oracle with Snapshot Client 177
How NetBackup for Oracle with Snapshot Client works
See “About NetBackup for Oracle with Snapshot Client” on page 165.
See “Proxy backup examplesNetBackup for Oracle proxy backup examples”
on page 177.
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 178
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 179
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.
NetBackup for Oracle with Snapshot Client 181
About configuring Snapshot Client with NetBackup for Oracle
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.
See “About configuring Snapshot Client with NetBackup for Oracle” on page 180.
See “Configuring a snapshot policy for NetBackup for Oracle” on page 181.
This procedure does not detail how to configure a snapshot policy when a NetBackup
appliance is used.
See “ Configuring a snapshot policy using a share on the NetBackup appliance
(Oracle Copilot)” on page 185.
To configure a snapshot policy
1 Open the policy you want to configure.
2 Click on the Attributes tab. The following screen appears.
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.
NetBackup for Oracle with Snapshot Client 185
About configuring Snapshot Client with NetBackup for Oracle
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 186
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 181.
See “About Snapshot Client effects” on page 195.
See “Configuring an OIP using a share on the NetBackup appliance (Oracle Copilot)”
on page 117.
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;
}
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
See “About Oracle RMAN” on page 23.
See “About restoring individual files from a NetBackup for Oracle snapshot backup”
on page 187.
See “About NetBackup for Oracle restores of volumes and file systems using
snapshot rollback” on page 188.
See “Performing a NetBackup for Oracle point-in-time rollback restore from a
SnapVault backup (UNIX)” on page 189.
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 191.
See “Configuration requirements for BLI backups with NetBackup for Oracle”
on page 193.
See “Configuring policies for BLI backups with NetBackup for Oracle” on page 193.
See “About NetBackup for Oracle with Snapshot Client” on page 165.
See “How NetBackup for Oracle with Snapshot Client works” on page 170.
To ensure that it has a proper set of images to restore, NetBackup performs a full
backup when it encounters the following situations:
■ If the number of backup streams that is specified changed from the previous
backup. This change can be made in the NB_ORA_PC_STREAMS environment
variable.
■ If NetBackup does not have a valid full backup image for the same policy in its
database. For example, this situation can occur if images were expired.
■ If a new file was added to or deleted from the list of files for an incremental
backup.
NetBackup for Oracle always initiates a full backup under these conditions, even
if you want to perform an incremental backup.
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.
NetBackup for Oracle with Snapshot Client 196
About Snapshot Client effects
See “How Snapshot Client software affects schedule properties” on page 196.
See “How Snapshot Client software affects scripts” on page 196.
See “ Oracle with Snapshot Client environment variables” on page 197.
Property Description
Application Schedules:
Multiple Copies For snapshot backup, configure Multiple copies on the automatic
backup schedule.
See “How Snapshot Client software affects backup types” on page 195.
See “How Snapshot Client software affects schedule properties” on page 196.
See “ Oracle with Snapshot Client environment variables” on page 197.
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 100.
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:
NetBackup for Oracle with Snapshot Client 198
About Oracle support for Replication Director
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 170.
See “Performing a snapshot rollback restore using a script or RMAN command”
on page 188.
See “Proxy backup examplesNetBackup for Oracle proxy backup examples”
on page 177.
See “How Snapshot Client software affects backup types” on page 195.
See “How Snapshot Client software affects schedule properties” on page 196.
See “How Snapshot Client software affects scripts” on page 196.
the Oracle database must exist on a NetApp NAS disk array. (It is not supported
on SAN storage at this time.)
Oracle snapshot backups that use Replication Director are supported on UNIX
platforms only.
The administrator can create an Oracle policy to use Replication Director by using
either the following methods:
■ The Oracle Intelligent Policy (recommended).
See “Configuring an Oracle Intelligent Policy using Replication Director”
on page 200.
■ Create a script-based Oracle policy.
See “Configuring a script-based Oracle policy” on page 205.
Table 7-5 describes the differences between the two methods:
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.
NetBackup for Oracle with Snapshot Client 200
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 203
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.
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 208
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 210
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 200.
See “About Oracle support for Replication Director” on page 198.
Chapter 8
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
■ MSDP:
Run the following command to create
username and password on the MSDP
server.
/usr/openv/pdde/pdcr/bin/spauser
-a -u <username> -p <password>
--role app
■ WORM storage in Flex Appliance
Run the following command to create
username and password on the WORM
storage server on Flex Appliance:
setting MSDP-user add-MSDP-user
username=<username>
password=<password> role=app
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
SLP_NAME The import SLP name that you have created on the
destination storage server with operation IMPORT.
NetBackup creates SLP automatically. However, you must
create IMPORT SLP manually on Flex WORM.
For more information on the external CA support, see the NetBackup Security and
Encryption Guide.
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 217.
For example,
Settings Descriptions
For example,
Settings Descriptions
For example,
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.
To disable the Oracle stream handler:
1 Open the <installation path>/etc/msdp_app.cfg configuration file for
editing.
2 Change the ENABLE_STH value to 0 to disable the Oracle stream handler.
Default value is 1.
RUN
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.
See “About NetBackup for Oracle troubleshooting steps” on page 223.
See “Troubleshooting each stage of the backup or restore” on page 232.
See “Checking the logs to determine the source of an error” on page 313.
See “About RMAN utility logs” on page 231.
See “Troubleshooting XML export or XML import errors” on page 312.
See “Minimizing timeout failures on large database restores” on page 235.
See “Troubleshooting NetBackup for Oracle with Snapshot Client” on page 234.
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 227
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 228
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 230
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.
Troubleshooting 233
Troubleshooting RMAN backup or restore errors
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.
Troubleshooting 234
Troubleshooting NetBackup for Oracle with Snapshot Client
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.
Settings Description
Settings Description
■ Editing the RMAN script and configuring NetBackup for Oracle for a proxy copy
backup
ORACLE_OVERRIDE_DATA_MOVEMENT = 1
■ Policy level
■ Stream type level
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:
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.
■ 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;
Oracle creates the backup set identically each time the backup runs.
NetBackup can deduplicate these identical backup sets.
■ Specify parallel backup streams for the database backup.
Specify appropriate ALLOCATE CHANNEL and RELEASE CHANNEL parameters
in the backup script.
For an example that shows an edited backup script, see the following:
See “Example RMAN script for a stream-based backup” on page 245.
2 Disable Oracle's optimization and encryption for the duration of the database
backup.
By default, Oracle disables optimization and encryption. If 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. Make sure to check specifications outside
of the RMAN backup script, too.
Deduplication best practices 245
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 247.
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 249
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:
See “Configuring the SFRAC environment for a backup operation” on page 251.
See “About Snapshot Client support of SFRAC” on page 250.
CLIENT_NAME = <virtual_name>
Snapshot Client support of SFRAC 252
Configuring the SFRAC environment for a backup operation
■ 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.
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
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:
■ Problem: The backup failed with error code 6 displayed in the GUI. The
rman_script.out file shows the following error:
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>
See “About Snapshot Client support of SFRAC” on page 250.
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 165.
See “About BLI backup and restore operations” on page 258.
See “Verifying installation requirements for BLI backups without RMAN” on page 259.
See “About NetBackup for Oracle agent automatic backups” on page 275.
See “About NetBackup for Oracle manual backups” on page 276.
See “About NetBackup backup and restore logs” on page 279.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “Example Oracle BLI backup policy” on page 266.
See “Restoring BLI backup images” on page 278.
See “Improving NetBackup backup performance” on page 283.
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.
See “File system and Storage Checkpoint space management” on page 260.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 260
Verifying installation requirements for BLI backups without RMAN
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
See “Verifying installation requirements for BLI backups without RMAN” on page 259.
See “Improving NetBackup backup performance” on page 283.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 261
Creating NetBackup policies for script-based BLI backup
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 282.
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:
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 263
Creating NetBackup policies for script-based BLI backup
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
/usr /dev/vg00/lvol7 production_servers
/var /dev/vg00/lvol8 production_servers
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.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “About BLI policy attributes” on page 263.
See “Example Oracle BLI backup policy” on page 266.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
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.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “About schedules for BLI backup policies” on page 265.
See “Example Oracle BLI backup policy” on page 266.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
See “Setting the maximum jobs per client global attribute” on page 268.
See “Sample setup_bli_scripts session” on page 273.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 269
Creating NetBackup policies for script-based BLI backup
Term Definition
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.
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.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “Example Oracle BLI backup policy” on page 266.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
See “About BLI backup and restore operations” on page 258.
■ 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:
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 271
Creating NetBackup policies for script-based BLI backup
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.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “Example Oracle BLI backup policy” on page 266.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
#/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
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 275
Performing backups and restores
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
Please enter the name of another policy or DONE to stop? BLI_6
Please enter the name of another policy or DONE to stop? DONE
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “Example Oracle BLI backup policy” on page 266.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
Note: You must be the root user to perform all operations using the BLI backup
software.
See “About NetBackup for Oracle agent automatic backups” on page 275.
See “About NetBackup for Oracle manual backups” on page 276.
See “Backing up Quick I/O files” on page 277.
See “Restoring BLI backup images” on page 278.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
Note: You must be the root user to perform all operations using the BLI backup
software.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 276
Performing backups and restores
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.
See “Creating NetBackup policies for script-based BLI backup” on page 261.
See “Backing up Quick I/O files” on page 277.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
See “Performing backups and restores” on page 275.
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
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 277
Performing backups and restores
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.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
See “About NetBackup for Oracle agent automatic backups” on page 275.
See “Backing up Quick I/O files” on page 277.
See “Restoring BLI backup images” on page 278.
See “Performing backups and restores” on page 275.
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:
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 278
Performing backups and restores
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.
See “Performing backups and restores” on page 275.
See “Backing up Quick I/O files” on page 277.
See “About BLI backup and database recovery” on page 284.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
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).
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 280
About troubleshooting backup or restore errors
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.
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.
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.
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 283
About troubleshooting backup or restore errors
Finally, you can improve the speed at which backup is performed by using
multiplexed backups. Assigning multiple policies to the same backup device is
helpful when devices are not writing at their maximum capacity.
See “Troubleshooting stages of backup and restore operations” on page 280.
See “Verifying installation requirements for BLI backups without RMAN” on page 259.
See “File system and Storage Checkpoint space management” on page 260.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 257.
■ 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).
See “NetBackup for Oracle XML export and XML import” on page 285.
See “Sequence of operation: XML export archive” on page 288.
See “Sequence of operation: XML import restore” on page 291.
See “XML import restore process” on page 290.
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 290
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 287.
See “XML import restore process” on page 290.
See “NetBackup for Oracle XML export and XML import” on page 285.
See “Sequence of operation: XML export archive” on page 288.
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:
■ 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.
XML Archiver 293
About the environment variables set by a user in the XML export parameter file
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 287.
See “XML import restore process” on page 290.
See “NetBackup for Oracle XML export and XML import” on page 285.
See “Sequence of operation: XML export archive” on page 288.
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:
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
XML Archiver 295
About XML export shell scripts
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
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 113.
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 296.
■ See “Running bporaexp on the client as an Oracle user” on page 297.
■ See “Writing to a directory versus writing to a storage unit” on page 298.
■ See “About bporaexp parameters” on page 299.
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
XML Archiver 297
Performing an XML export archive
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 100.
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 296.
XML Archiver 298
Performing an XML export archive
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:
Windows:
\Oracle\XMLArchive
UNIX:
/Oracle/XMLArchive
All NetBackup for Oracle bporaexp backups are cataloged using this convention.
XML Archiver 299
Performing an XML export archive
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:
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.
NB_ORA_SCHED N default backup Optionally specifies the name of the backup Storage Unit
policy policy schedule to use.
schedule
XML Archiver 301
Performing an XML export archive
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 302
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.
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
See “Running bporaimp on the client in NetBackup for Oracle” on page 306.
See “About bporaimp parameters” on page 306.
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.
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.
XML Archiver 309
Restoring an XML export archive
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.
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.
See “Restoring an XML export archive” on page 305.
See “About the RMAN SEND command variables” on page 104.
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.
Perform the following procedure on the new client host if you want to restore XML
export archives that are owned by another client.
To redirect a restore of an XML export archive to a new client using bporaimp
1 Set the environment variables for bporaimp (bporaimp64 on some platforms)
on the new client, including ORACLE_HOME and ORACLE_SID.
2 In the bporaimp parameter file, include the following lines:
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
On UNIX and Linux, these sections describe the log files from the bporaexp
and bporaimp commands. The logs are created in
/usr/openv/netbackup/logs/bporaexp or
/usr/openv/netbackup/logs/bporaimp.
See “Checking the logs to determine the source of an error” on page 313.
See “About troubleshooting NetBackup for Oracle” on page 222.
See “Troubleshooting each stage of the XML export or XML import” on page 314.
See “Additional XML export and import logs” on page 317.
See “About NetBackup for Oracle troubleshooting steps” on page 223.
Examine these logs for any messages that show how to determine the source
of an error.
XML Archiver 314
Troubleshooting XML export or XML import errors
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 222.
See “About NetBackup for Oracle troubleshooting steps” on page 223.
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.
install_path\NetBackup\logs\bporaexp\log.mmddyy
UNIX:
/usr/openv/netbackup/logs/bporaexp/log.mmddyy
XML Archiver 316
Troubleshooting XML export or XML import errors
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
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.
XML Archiver 317
Additional XML export and import logs
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.
XML Archiver 318
Additional XML export and import logs
■ 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 321
Registering authorized locations used by a NetBackup database script-based policy