NetBackup103 AdminGuide Oracle
NetBackup103 AdminGuide Oracle
Administrator's Guide
Release 10.3
Last updated: 2023-10-23
Legal Notice
Copyright © 2023 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, and NetBackup are trademarks or registered trademarks of Veritas
Technologies LLC or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
http://www.veritas.com
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:
https://www.veritas.com/support
You can manage your Veritas account information at the following URL:
https://my.veritas.com
If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:
Japan [email protected]
Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:
https://sort.veritas.com/documents
Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:
You can also see documentation information or ask a question on the Veritas community site:
http://www.veritas.com/community/
https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents
NetBackup for Oracle XML export and XML import ............................ 297
NetBackup for Oracle XML export and import archiving features
.................................................................................... 298
XML export archive process .................................................... 299
Sequence of operation: XML export archive ............................... 300
XML import restore process .................................................... 302
Sequence of operation: XML import restore ................................ 303
About the environment variables set by a user in the XML export
parameter file ....................................................................... 305
About XML export shell scripts ...................................................... 306
Creating XML export scripts manually ....................................... 306
Performing an XML export archive ................................................. 308
Running the NetBackup for Oracle XML export script on the client
.................................................................................... 308
Running bporaexp on the client as an Oracle user ....................... 309
Writing to a directory versus writing to a storage unit .................... 310
Contents 12
Network (TCP/IP)
NetBackup software:
– NetBackup master server
– NetBackup media server
Feature Description
Integration with NetBackup The NetBackup web UI provides RBAC capability to control
role-based access control which NetBackup users can manage Oracle clone operations
(RBAC) in NetBackup. The user does not need to be a NetBackup
administrator to manage Oracle clone operations.
Introduction 15
NetBackup for Oracle features
Feature Description
Oracle Intelligent Policies The Oracle Intelligent Policy (OIP) protects multiple Oracle
instances that are spread over multiple clients. You select
instances for a policy from a list of instances that are
automatically discovered in the NetBackup environment. OIP
does not require you to know how RMAN functions or how to
use scripts. The feature is instance-based and not scripting
based.
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.
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.
Centralized and networked From the NetBackup primary server, you can schedule
backup operations database 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.
Introduction 16
NetBackup for Oracle features
Feature Description
Recovery points The web UI provides recovery points from which you can easily
create a clone from a database or pluggable database. If instant
access is configured, you can also create an instant access
database from a recovery point.
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.
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.
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 on a NetBackup
Note: This feature requires a NetBackup appliance that runs
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 In the NetBackup web UI you can create an Oracle policy to
Clusters (RAC) support in support Oracle RAC. (The NetBackup Administration Console
Oracle Intelligent Policies does not support an Oracle RAC policy.)
Oracle RAC load balanced NetBackup can be set up to load balance the Oracle instances.
backups Use this feature to distribute the backup load across all of the
instances and to exclude specific Oracle instances from
backups. This feature is not available in the NetBackup
Administration Console.
NetBackup Dedupe Direct NetBackup Dedupe Direct for Oracle offers a lightweight plug-in
for Oracle for RMAN backups to MSDP storage.
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.
Note: The Oracle database agent is installed as part of the NetBackup client
installation.
Use the NetBackup web UI or the nboraadm command on the CLI to access the
repository for instance registration. The nboraadm command is available on the
NetBackup primary server and the NetBackup clients. This command is available
because users such as the DBAs may not have access to the primary server. The
NetBackup administrator uses nboraadm on the primary server to control the list of
users and clients that have access to nboraadm on the NetBackup client.
Refer to the following Oracle information for recommendations for the authentication
of users.
Operating System Authentication of Users
Authentication of Database Administrators by Using the Operating System
NetBackup for Oracle QuickStart 20
Add an Oracle database instance group
5 The credentials are validated. You can save the credentials even if the validation
fails.
6 Verify that the Instances list shows the date when you registered the instance.
The instance is now available to select for an Oracle Intelligent Policy.
7 Repeat for all other instances that you want to register individually or as part
of an instance group.
Note: NetBackup does not support non-US ASCII characters in the instance
group name.
NetBackup for Oracle QuickStart 21
Create an Oracle policy
5 Select the wanted credential type and provide the authorization details. Then
click Finish.
6 To assign individual instances to this instance group continue with following
steps:
■ Click the Instances tab.
■ Locate the instance and click Actions > Manage credentials.
■ Click Add to group and register using group credentials.
■ Select the instance group from the list.
■ Click Finish.
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 “Automatically register new instances with an instance group” on page 43.
Policy (OIP) must include either the Protect Instances and Databases or
the Protect instance groups option. More information is available about
this tab.
See “Instances and databases tab” on page 70.
■ Backup selections tab. More information is available about the attributes
on this tab.
See “Backup Selections tab” on page 72.
■ Oracle tab. More information is available about the attributes on this tab.
See “Oracle tab” on page 74.
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 “Automatically register new instances with an instance group” on page 43.
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
NetBackup for Oracle QuickStart 23
Create an Oracle policy
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 27
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 “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
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
See “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 29.
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 31
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 27.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 29.
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
mv libobk.so libobk.so.orig
Installing NetBackup for Oracle 32
About linking Oracle RMAN with NetBackup for UNIX
ln -s /usr/openv/netbackup/bin/libobk.so64 libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
See “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 29.
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 27.
Installing NetBackup for Oracle 33
About linking Oracle RMAN with NetBackup for UNIX
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 29.
cd $ORACLE_HOME/lib
2 Type the following ls command to determine whether the Oracle library exists:
ls -l libobk.so
3 Use the mv command to move the Oracle library to an alternate location. Perform
this step if the output from step 2 shows that libobk.so is present.
For example:
mv libobk.so libobk.so.orig
ln -s /usr/openv/netbackup/bin/libobk.so.1 libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
See “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 29.
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 34
About linking Oracle RMAN with NetBackup for UNIX
mv libobk.so libobk.so.orig
ln -s /usr/openv/netbackup/bin/libobk.so64.1 libobk.so
5 If you run into problems and cannot re-link Oracle with the NetBackup API
library, you can rollback what you have done. Enter the following:
cd $ORACLE_HOME/lib64
mv libobk.so.orig libobk.so
See “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
See “Linking Oracle RMAN with NetBackup on UNIX platforms” on page 29.
Chapter 4
Configuring RBAC for the
Oracle administrator
This chapter includes the following topics:
■ To create a credential, you must have the RBAC Administrator role or a role
that has permissions to create credentials. The Default Oracle Administrator
role can assign a credential to a user, but cannot create a credential in credential
management.
■ Contact your NetBackup administrator for assistance with creating roles and
credentials.
For information on the RBAC permissions and default roles, see the NetBackup
API documentation at http://sort.veritas.com/.
Chapter 5
Managing Oracle
instances and databases
This chapter includes the following topics:
The NetBackup Discovery Service searches for instances and databases in different
areas where Oracle is installed. The following areas are where the Discovery Service
searches:
■ Non-RAC Single instances are discovered by searching the oratab file on UNIX
and from the registry on Windows.
■ 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) using the Oracle Clusterware high availability
API.
Oracle RAC in the web UI does not support upgrades from legacy script-based
policies. Also, there is no web UI support for the configurations that are created
using Appendix A: Deduplication best practices or Appendix B: Snapshot Client
support of SFRAC.
To allow the NetBackup web UI to discover a RAC instance or cluster:
■ Remove the Oracle RAC from any configuration that is setup using Appendix
A: Deduplication best practices or Appendix B: Snapshot Client support of
SFRAC.
■ Remove any Oracle RAC from any existing OIP policies.
Note: When an Oracle RAC database is discovered, that database does not have
a Database ID. A Database ID is required to manually add additional RAC instances
to the database. You must register the RAC database and provide a Database ID
before adding additional instances.
See “Manage credentials for an instance or an Oracle RAC database” on page 52.
See “Add an Oracle Real Application Cluster (RAC)” on page 104.
■ Databases
See “View Oracle database details” on page 44.
■ Pluggable databases
See “View pluggable database details” on page 45.
■ Instant access databases
See “View the livemount details of an instant access mount” on page 174.
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.
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.
Credentials Indicates the name of the credential that is registered for the
instance. Or, if no credential is registered a value of none displays.
Managing Oracle instances and databases 41
Managing Oracle instances
Note: When an Oracle RAC database is discovered, that database does not have
a Database ID. A Database ID is required to manually add additional RAC instances
to the database. You must register the RAC database and provide a Database ID
before adding additional instances.
Refer to the following Oracle information for recommendations for the authentication
of users.
Operating System Authentication of Users
Authentication of Database Administrators by Using the Operating System
To register an Oracle database instance
1 In the NetBackup web UI, in the left pane, click Workloads > Oracle.
2 Click the Instances tab. Instances that have previously been registered show
a date and time in the Registered column.
3 Locate the instance that you want to register. Then click Actions > Manage
credentials.
4 Select Use instance credentials.
5 Click Use instance credentials.
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).
6 In the Instance credentials area, select one of the following authentication
options:
■ Oracle Wallet
■ OS authentication only
■ Oracle authentication only
■ Oracle and OS authentication
If you use the Oracle authentication only option you must enter specific
Oracle credentials. You may need to contact the Oracle DBA for the correct
credentials. The system tries to validate the credentials and reports its findings
7 (Optional) Click Oracle RMAN recovery catalog credentials to enter
credentials for the RMAN recovery catalog.
Managing Oracle instances and databases 42
Managing Oracle instances
Note: If necessary, contact the Oracle database administrator for the correct set
of credentials. The DBA can also manually add the instance if they do not want 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).
Use Oracle Wallet Reserved for future use. This type is not supported in NetBackup 10.3.
Use Oracle Reserved for future use. This type is not supported in NetBackup 10.3.
credentials
Managing Oracle credentials 50
Add a credential to use for cloning an Oracle database
Use operating This credential option is supported for use with Oracle cloning.
system credentials
Configuration requirements
The following requirements apply for Windows:
Use Oracle and This option is supported in NetBackup 10.3 for use with Oracle cloning.
operating system However, NetBackup ignores the Oracle credentials.
credentials
Configuration requirements
See “Manage credentials for an instance or an Oracle RAC database” on page 52.
To add a credential to use for cloning an Oracle database
1 On the left, click Credential management.
2 On the Named credentials tab, click Add and provide the following properties:
■ Credential name (for example: server_credential1)
■ Tag (for example: Workload name)
■ Description (for example: This credential is used to access workload name)
3 Click Next.
4 Select Oracle.
5 Provide the authentication details that are needed to connect to the Oracle
database.
See “Oracle credential types in the NetBackup Credential Management (CMS)”
on page 49.
6 Click Next.
7 In Permissions, add one or more RBAC roles that you want to have access
to the credential.
■ Click Add.
■ Select the role name.
■ Select the credential permissions that you want the role to have.
■ Click Save.
Click Next.
8 On the Review page, verify all information is correct and click Finish.
4 Click Finish.
■ Configuring the logon account for the NetBackup Client Service for NetBackup
for Oracle
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 “About Oracle Intelligent Policies (OIP)” on page 61.
See “About policy attributes” on page 83.
See “Create an Oracle policy” on page 21.
Configuring Oracle policies 56
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.
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
Configuring Oracle policies 63
About Oracle Intelligent Policies (OIP)
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 63.
See “About policy attributes” on page 83.
See “Instances and databases tab” on page 70.
See “Backup Selections tab” on page 72.
See “About Oracle database instance groups” on page 45.
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.
See “About Oracle database instance groups” on page 45.
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 list, select Oracle. This action causes the
Attributes tab. 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
NetBackup for Oracle Intelligent Policies, run-time failures can occur. The issue
occurs when an Oracle database is upgraded to a new version. The new version
is likely to have a different ORACLE_HOME, ORACLE_SID, or Oracle User. If any
of these values have changed, the existing instance information in the NetBackup
instance repository and in the current Oracle Intelligent Policies becomes invalid.
When the discovery service (nbdisco) polls the clients again, it discovers the
database as a new instance. Consequently, there is no way to associate the new
instance to the old instance.
This issue is not version-specific and can affect any valid Oracle upgrade patch,
such as:
■ Oracle 10 to version 11
■ Oracle 10 to version 12
■ Oracle 11 to version 12
For more information on valid Oracle upgrade paths, review the following
documentation on the Oracle Support website:
http://www.oracle.com/technetwork/database/upgrade/
upgrading-oracle-database-wp-12c-1896123.pdf
Therefore, when an existing Oracle database is upgraded and the ORACLE_HOME,
ORACLE_SID, or Oracle User are modified, remove the existing instance in the
instance repository. After the existing instance is removed, update the instance
repository with the new instance information. Make sure to update any policies with
the newly-discovered instances.
See “About Oracle Intelligent Policies (OIP)” on page 61.
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.
Configuring Oracle policies 68
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
You cannot mix instances and instance groups in this list. If you select instances
for a policy, then you want to select an instance group, the instances you select
are deleted from the list.
The Instances and databases tab displays all the instances or instance groups
that the Oracle policy is scheduled to back up.
The following options are available.
■ Protect instances and databases (OIP option). This panel displays all instances
that you have selected to back up for this policy. Select the instances that you
want to add to the list. If an instance does not appear in this panel because it
is unregistered, you can register that instance and add it to the policy later.
Table 7-5 describes all the instance fields for the instances in this list.
■ Protect instance groups (OIP option). This panel displays all instance groups
that you have created. To add new instances to this list, click Add. All instances
that are a part of an instance group at backup time are backed up. To add an
instance group click Add.
To see what instances are backed up if the policy is run for an instance group,
select the group from the list, then click Preview instances.
■ Clients for use with scripts (Non-OIP option). This option is not for use with
OIP. If you want to use the client with scripts method of configuring an Oracle
policy instead of the new instance method, select Clients for use with scripts.
If you select this option, the existing backup selections and instances or instance
group are erased. Also, the Options tab and the Instances and Databases
tab are removed, because those options must now be set in the RMAN script
that the user supplies.
■ Protect RAC databases and pluggable databases. This option displays all
RAC databases that you have selected to backup for this policy. If no RAC
databases are displayed, you must add these databases. On the left select
Workloads > Oracle. Then click the RAC databases tab.
Field Description
Instance name The selection at the top of the panel determines the listing in the panel window.
■ Protect instances and databases displays all individual instances that you have chosen
for this Oracle policy.
■ Protect instance groups displays all the instance groups that you have created for this
policy.
■ Clients for use with scripts displays all clients that you have selected for this policy.
Configuring Oracle policies 72
About Oracle Intelligent Policies (OIP)
Field Description
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:
Operating system 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.
By default, the Whole database option is selected and the backup selections
contain the directive WHOLE_DATABASE.
Partial database - Tablespaces Backs up only tablespaces. Click Add to select the tablespaces for the policy
to back up.
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.
Configuring Oracle policies 73
About Oracle Intelligent Policies (OIP)
Partial database - Datafiles Backs up only datafiles. Click Add to select the data files for the policy to
back up.
This selection applies across all the instances and PDBs that are selected
in the policy.
Fast Recovery Area - (FRA) This option backs up the contents of the FRA. For the Oracle database
instance to be restored and recovered, make sure that the FRA contains a
recoverable image set when it is backed up.
Database Backup Shares Note: This feature requires a NetBackup appliance running software version
2.7.1 or later.
This option is used when the Oracle DBA places database backups in the
share on a NetBackup appliance (Oracle Copilot).
When you back up appliance shares for multiple instances, this option applies
across all the instances that are selected in the policy. If a share is selected
for one instance, the data in that share is backed up for all the instances in
that policy.
Whole Database - Datafile Copy Share Note: This feature requires a NetBackup appliance running software version
2.7.1 or later.
This option is used to create and maintain a full set of data file copies in the
share on a NetBackup appliance (Oracle Copilot).
See the section called “Additional information for the Whole Database -
Datafile Copy Share option” on page 74.
Oracle tab
This tab contains options for databases, tablespaces, data files, archived redo logs,
file name formats, and database backup shares.
Configuring Oracle policies 75
About Oracle Intelligent Policies (OIP)
Field Description
Tablespace or datafile Number of parallel streams is the number of parallel backup streams that can be used in
options a backup operation.
When an Oracle RAC is included in the policy, setting the Number of parallel streams option
sets the streams per node. For example, if the Oracle RAC has two nodes that are active
and Number of parallel streams is set to 2, NetBackup uses four streams. NetBackup uses
two parallel streams per active node.
Select Specify read-only tablespace options to enable read-only tablespace options. SKIP
means to skip the read-only tablespace during backup. FORCE means that RMAN backs up
all files.
Select Offline (cold) database backup to shut down the Oracle database and put it in the
mount state.
■ When this option is used with a PDB, the PDB is put in a mounted state for the backup.
Once the backup has completed, the PDB is returned to the state it was in before the
backup.
Select Skip offline datafiles to direct the backup operation to not access offline data files.
Configuring Oracle policies 76
About Oracle Intelligent Policies (OIP)
Field Description
Tablespace or datafile The Data Guard backup options let you specify a policy to always back up the primary or
options (continued) a standby database:
■ None - NetBackup does not look at the Data Guard role. At policy execution each instance
or RAC database in the policy is backed up.
■ Require primary - This option backs up the primary Data Guard database in the list of
instances (or RAC databases) in the policy.
If the primary is not available, the backup fails. A message appears in the job details that
indicates NetBackup cannot find the primary database.
■ Require standby - This option backs up a standby Data Guard database in the list of
instances (or RAC databases) in the policy. The first standby database NetBackup finds,
is backed up. Currently there is no way to set a priority order for the standby databases.
Oracle Intelligent Policies do not support RMAN proxy type backups of Data Guard standby
databases.
If the standby is not available, the backup fails. A message appears in the job details that
indicates NetBackup cannot find the standby database.
■ Prefer standby - This option backs up a standby Data Guard database in the list of
instances (or RAC databases) in the policy. If a standby database is not found and the
primary is available, then the primary database is backed up.
Oracle Intelligent Policies do not support RMAN proxy type backups of Data Guard standby
databases.
Note: If you choose Require primary, Require standby, or Prefer standby, then the
following applies:
All instances or RAC databases that are listed in a policy, must be part of the same Data
Guard configuration. Each Data Guard configuration needs a separate policy.
The policy cannot protect instance groups or have the backup type Database Backup Shares
or Whole Database – Datafile Copy Share. These are incompatible with Data Guard aware
policies.
Configuring Oracle policies 77
About Oracle Intelligent Policies (OIP)
Field Description
Multiple MSDP Select Use multiple MSDP storage units or multiple nodes in a cluster to enable Multiple
storage units or MSDP storage option. The option allows backing up Oracle data files to multiple MSDP
multiple nodes in a storage units or multiple nodes in a cluster in parallel. The following parameter is used to
cluster specify storages that data is distributed to.
■ Select storage. Specifies and selects the item listed in the drop-down list. The available
storage items include MSDP storage units and SLPs that are configured in the system.
Multiple selections of MSDP storage units allow a backup job go to the selected storage
units in parallel to accelerate the backup and restore job.
■ If a MSDP cluster STU is selected, do not select any other STUs with this selection. This
option distributes Oracle data files to multiple nodes in the cluster. The Number of parallel
streams should be multiple of the cluster nodes. For example, if number of nodes in the
cluster is 4, the suggested value of Number of parallel streams is 4N, such as 4, 8, 12,
and so on.
■ If replication is needed, all SLP targets including policy storage SLP and multiple storage
SLPs that are selected must be in the same target domain. So that oracle data files,
archived redo log, and control file are in the same domain after replication.
■ By default, FILESPERSET is set to 1 for the best deduplication ratio. You can modify this
value manually to tune the restore performance for Oracle RAC environment.
On each Oracle RAC node, in the /usr/openv/netbackup/bp.conf, add a
configuration parameter ORACLE_MULTIPLE_STORAGE_OVERRIDE_FILESPERSET. For
example, ORACLE_MULTIPLE_STORAGE_OVERRIDE_FILESPERSET = 8.
Configuring Oracle policies 78
About Oracle Intelligent Policies (OIP)
Field Description
Specify maximum Select Specify maximum limits to access several I/O and backup set limits. The following
limits 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.
■ Read rate (KB/sec) (RATE) specifies the maximum number of kilobytes (KB) that RMAN
reads each second on this channel. This parameter sets an upper limit for bytes read so
that RMAN does not consume too much disk bandwidth and degrade performance.
■ Size of backup piece (KB) (MAXPIECESIZE) specifies the maximum size of each backup
piece that is created on this channel.
■ Number of open files (MAXOPENFILES) controls the maximum number of input files
that the backup operation can have open at any given time.
■ Section size (SECTION SIZE) enables RMAN’s multisection backup during an RMAN
backup. When a multisection backup does run, an RMAN channel can process each file
section independently (serially or in parallel). The multisection backup uses multiple
channels to back up a single file. This option lets you set the Section size to either MB or
GB.
Size of backup piece (KB) and Section size are mutually exclusive. NetBackup
automatically sets Size of backup piece (KB) to 0 if this option is enabled.
■ Number of files per backup set (FILESPERSET) specifies the maximum number of
input files to include in each output backup set.
■ Size of the backup set (KB) (MAXSETSIZE) specifies a maximum size for a backup set
in kilobytes.
Backup identifier Backup set identifier: (TAG) specifies a user-specified tag name for a backup set, proxy
options copy, data file copy, or control file copy. The tag is applied to the output files that the backup
generates.
Datafile copy tag: This option specifies a user-specified tag name when the Whole Database
- Datafile Copy Share option is used. The tag is associated with the data files that are located
on the appliance and is used during the incremental merge process.
Configuring Oracle policies 79
About Oracle Intelligent Policies (OIP)
Field Description
Archived redo log Select Include archived redo logs in full and incremental schedules to include the archived
options redo logs on the full and the incremental schedule backups.
Select Delete after making copies to delete the archived redo logs after the selected number
of backups are successful. Clear the box or set to 0 to skip the delete operation and retain
the logs after backup.
Number of parallel streams controls the degree of parallelism within a backup. This number
specifies the maximum number of connections between RMAN and a database instance.
Each connection initiates an Oracle database server session on the target instance. This
server session performs the work of backing up backup sets.
When an Oracle RAC is included in the policy, setting the Number of parallel streams option
sets the streams per node. For example, if the Oracle RAC has two nodes that are active
and Number of parallel streams is set to 2, NetBackup uses four streams. NetBackup uses
two parallel streams per active node.
Specify Specify maximum limits to set custom limits for the archive redo logs.
■ Number of files per backup set specifies the maximum number of archived redo log
files to include in each output backup set.
■ Size of backup set (KB) (MAXSETSIZE) specifies a maximum size for a backup set of
archived redo logs on kilobytes.
User specified Select Specify backup file name formats to set up formats for various backup file names
backup file name for data files, archived redo logs, the control file, and Fast Recovery Area (FRA).
formats
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.
Configuring Oracle policies 80
About Oracle Intelligent Policies (OIP)
Field Description
Database backup These options let you set a time when backup sets and backup copies (data and control file
share options 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.
These options are only available when the Database Backup Shares option is selected in
the Backup Selections tab.
Use the drop downs to set the minutes, hours, days, or weeks.
Note: The delete options in the Database backup shares 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.
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.
Configuring Oracle policies 81
About script-based Oracle policies
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
Note: All scripts must be stored and run locally. One recommendation is that scripts
should not be world-writable. Scripts are not allowed to be run from network or
remote locations. Any script that is created and saved in the NetBackup db_ext
(UNIX) or dbext (Windows) location needs to be protected during a NetBackup
uninstall.
For more information about registering authorized locations and scripts, review the
following article:
Registering authorized locations used by a NetBackup database script-based policy
On UNIX, NetBackup for Oracle includes a library of functions that enable RMAN
to use NetBackup. You can link to this library.
See “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
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.
Configuring Oracle policies 82
About script-based Oracle policies
■ 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 92.
See “About the RMAN SEND command variables” on page 93.
See “About the bp.conf file on UNIX systems” on page 96.
See “About creating shell scripts” on page 97.
■ Add clients.
See “Adding clients to a policy” on page 88.
■ Add scripts to the backup selections list.
See “About adding backup selections to an Oracle policy” on page 88.
See “Registering authorized locations used by a NetBackup database
script-based policy” on page 330.
8 When you have added all the schedules, clients, and backup selections you
need, click Save.
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.
Configuring Oracle policies 84
About script-based Oracle policies
Table 7-8 Policy attribute for NetBackup for Oracle policies (continued)
Attribute Description
Follow NFS This option is available for Oracle policies on UNIX. Select this attribute to back up the files
from NFS-mounted file systems. If this option is not selected, NetBackup cannot perform a
backup of NFS-mounted files.
Keyword phrase For NetBackup for Oracle, the Keyword phrase entry is ignored.
Snapshot Client and This group contains the options that enable backups with Snapshot Client and Replication
Replication Director Director.
Property Description
Type of backup Specifies the type of backup that this schedule can control. The selection list shows only
the backup types that apply to the policy you want to configure.
Configuring Oracle policies 85
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.
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 67.
Configuring Oracle policies 88
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” on page 89.
Note: Be sure to specify the correct script name in the backup selections list to
prevent an error or a wrong operation.
/backup_scripts/db/cold_backup.sh
C:\backup_scripts\db\cold_backup.cmd
Note: Be aware of what may happen if an automatic schedule invokes a script that
a user authored. NetBackup does not provide safeguards to prevent an automatic
backup schedule from running a restore or a recovery script.
See “Using the NetBackup for Oracle sample scripts” on page 100.
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)";
backup (database format 'bk_%s_%p_%t');
release channel t1;
release channel t2;
}
See “About the environment variables set by a user in the XML export parameter
file” on page 305.
See “About the RMAN SEND command variables” on page 93.
See “About configuring the run-time environment” on page 90.
See “About the RMAN SEND command variables” on page 93.
See “About the bp.conf file on UNIX systems” on page 96.
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 90.
See “About the bp.conf file on UNIX systems” on page 96.
See “About the environment variables set by a user in the XML export parameter
file” on page 305.
See “About the environment variables set by NetBackup for Oracle” on page 92.
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 99.
See “Using the NetBackup for Oracle sample scripts” on page 100.
See “About the set duplex command” on page 100.
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
Configuring Oracle policies 100
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 100.
See “About creating RMAN scripts manually” on page 98.
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 98.
See “About the NetBackup for Oracle sample scripts” on page 99.
See “Using the NetBackup for Oracle sample scripts” on page 100.
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.
Note: Any nodes of the Oracle RAC cluster that is used in backups, must be running
a NetBackup client. The version should be the same version across the cluster.
For Oracle RAC OIP support the NetBackup 8.3 client is required.
Enter the appropriate credential information for the Oracle RAC and then click
Add credentials.
See “Load balance Oracle RAC instances” on page 230.
See “Managing Oracle instances” on page 39.
Managing Oracle RAC 106
Edit or delete an Oracle RAC database
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 109
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 112
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 web UI to manually run an automatic
backup schedule for the Oracle policy.
install_path\oracle\scripts\db_full_backup.cmd
UNIX:
/oracle/scripts/db_full_backup.sh
The shell starts the database backup by running the Oracle shell script. The Oracle
shell script contains commands to run rman.
The NetBackup installation script installs sample scripts in the following location:
Windows:
install_path\NetBackup\dbext\oracle\samples\rman
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
Performing backups and restores of Oracle 115
Browsing backups using the bplist command
Running RMAN
As an Oracle user, you can run the rman command from the command prompt with
the RMAN command file as a parameter. This topic describes how to set the primary
server to hag and the Oracle policy to obk before you start the backup.
On Windows, RMAN functionality runs as a service, so use the send operand to
set up the run-time environment. To start a backup using the rman command from
the command prompt, type the following:
If you intend to connect to a database using a TNS alias, the RMAN send command
specifies the environment variables. The example sets the primary 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 96.
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 91.
See “Maintaining the RMAN repository” on page 108.
See “Querying the RMAN repository” on page 112.
See “About linking Oracle RMAN with NetBackup for UNIX” on page 27.
See “About the RMAN SEND command variables” on page 93.
■ On Windows, log on as administrator to the primary server and to the client with
the appropriate altnames entry.
■ On UNIX and Linux, log on as root to the primary server and to the client with
the appropriate altnames entry.
The following example uses the command to search all Oracle backups for a client
named jupiter:
# 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 112.
See “Browsing XML export archives using bplist” on page 315.
■ 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 primary 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.
See “Maintaining the RMAN repository” on page 108.
When a request is issued to delete a backup file from the RMAN repository, RMAN
sends the request to NetBackup. The request tells NetBackup to delete the
corresponding image from the NetBackup repository, regardless of the retention
level.
See “About policy attributes” on page 83.
command-line options are used. For compliance reasons, you may want to prevent
the expiration of images in the NetBackup catalog from a database request by using
a bp.conf entry on the primary server.
To prevent the expiration of backup images, use the following bp.conf entry on
the primary server:
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:
Performing backups and restores of Oracle 119
About NetBackup for Oracle restores
/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
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.
that are stored in the NetBackup relational database can be viewed using the
nboraadm command with the -list_data_guard option.
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.
See “About an Oracle recovery shell script on the client” on page 118.
See “Redirecting a restore to a different client” on page 123.
See “Running RMAN” on page 115.
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
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 124.
See “Example - Performing a redirected restore of Oracle” on page 125.
Note: If the RMAN catalog database has been lost, restore the catalog database
first before continuing with the redirected restore.
Performing backups and restores of Oracle 125
About NetBackup for Oracle restores
3 On UNIX, check the bp.conf files on the source client. Make sure that the
CLIENT_NAME variable either is not set or is set to the host name of the source
client.
4 Make the init.ora file of the source client available to the destination client.
Copy the file to the destination client or modify the file on the destination client.
Change all location-specific parameters.
5 Create a folder or set the permissions for a directory to restore the data files:
■ On Windows, create and start an Oracle service for the previously set
ORACLE_SID. Create the folder to which you want to restore the data files.
■ On UNIX, grant write permission to the directory to which you want to restore
the data files.
■ 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 primary server.
■ UNIX: Log onto giraffe as ora. Set SERVER=lion in
$ORACLE_HOME/bp.conf. This server must be the first server that is listed
in the bp.conf file.
3 Modify the network tnsnames.ora file to enable the RMAN catalog connection.
4 Create inittest.ora.file.
5 Windows: Using Oracle administration, create and start ORACLESERVICETEST.
6 Set the environment variable ORACLE_SID to test. On UNIX, also set
NB_ORA_CLIENT to camel.
Performing backups and restores of Oracle 127
About NetBackup for Oracle restores
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 123.
See “About performing a redirected restore with RMAN” on page 124.
Performing backups and restores of Oracle 128
Using NetBackup for Oracle in a Windows Server Failover Cluster (WSFC)
install_path\NetBackup\dbext\oracle\samples\rman\
See “Testing configuration settings for NetBackup for Oracle” on page 102.
For more information on how to back up or restore Windows Server Failover Cluster
using NetBackup, see the NetBackup Clustered Primary Administrator’s Guide.
See “Bringing the database instance offline on Windows” on page 129.
See “User-directed backup or restore from the Windows client” on page 130.
normal Shuts down the database and doesn’t allow new connections after
the command was issued. This command waits for the connected
users to disconnect before the database is shut down.
transactional Shuts down the database only after all of the current transactions
have completed.
Because the offlineresource operation shuts down the Oracle database service,
enter the following command to start the Oracle database service:
See “User-directed backup or restore from the Windows client” on page 130.
See “Bringing the database instance online on Windows” on page 130.
Note: When performing user-directed backups, make sure that you are on the node
that owns the shared drive where the Oracle database is installed.
Note: When user-directed client restores are performed with different configuration
options of NetBackup failover media servers and a Linux or Windows primary server,
see the NetBackup Administrator’s Guide, Volume I.
Performing backups and restores of Oracle 131
Using NetBackup for Oracle in a Windows Server Failover Cluster (WSFC)
■ Cloning a database from an Oracle Intelligent Policy (OIP) that is Data Guard
aware
Standalone container X X
database (CDB)
Standalone non-container X
database
RAC database X X
Oracle cloning 133
About cloning an Oracle database or a pluggable database
The clone features in the NetBackup web UI replace the Guided Recovery cloning
in NetBackup OpsCenter and offer a more streamlined and more efficient method
to clone an Oracle database.
■ A clone operation is performed from a good backup image and does not require
access to the original database.
■ Beginning with NetBackup 10.3, NetBackup collects additional information
(metadata) at the time of backup that helps to create the RMAN cloning script.
■ The validation process checks for any issues before NetBackup starts the clone
operation.
■ When the Oracle backup source has a source location in the control file for a
volume that doesn’t exist on the target.
On the target, you must create the source location that is named in the control
file.
Review the following Oracle documentation: Full RMAN Backup Set Duplication
= Error in the Alert Log: ORA-7445[skgfifi()+4307] (Doc ID 2443991.1)
■ If the source backup was a proxy backup, only a file system restore is supported.
If you want to move the cloned database to ASM storage, additional steps are
required. More information is available on how to restore from a data file copy
to ASM storage using RMAN.
Oracle cloning 135
Create a custom RBAC role for Oracle cloning
See “About restoring from a data file copy to ASM storage using RMAN”
on page 167.
■ NetBackup creates a clone control file and database server parameter file
(SPFILE) based on the control file and SPFILE of the source database.
NetBackup modifies the control file and SPFILE with parameters provided by
the user during the clone operation. See the Oracle database documentation
on supported characters for SPFILE or control file parameters. Different database
versions may have different requirements.
The following examples may cause a clone to fail:
■ If the SPFILE of the clone that is created contains a path with localized
characters.
■ If the control file paths or the DB_CREATE_FILE_DEST contains localized
characters.
■ If a source database is not OMF, you cannot clone the database to ASM storage.
When you request a clone operation, NetBackup detects this case and prompts
you to convert the cloned database to OMF. If you select “Yes”, NetBackup
converts the cloned database during the clone operation.
See the following Oracle support article that describes some of the limitations
of the ASM file system naming conventions when used with OMF and RMAN
duplication. These same limitations apply to NetBackup clone operations. Also
see the section on “Uniqueness of an ASM file”.
https://support.oracle.com/epmos/faces/DocContentDisplay?id=1910175.1
NetBackup appends a randomly generated suffix onto the OMF-created ASM
files to try to mitigate RMAN’s restore behavior.
■ NetBackup supports a source OS (for example, Chinese OS) with non-ASCII
and an Oracle installation with one of the Oracle-defined character sets (for
example, ZHS16GBK). Users can clone to a target that has the same OS and
Oracle character set.
Permission Description
8 Click Assign.
9 Under Workloads, click Assign.
10 On the Oracle tab, choose from the following.
■ To apply the same permissions to all Oracle assets, select Apply selected
permissions to all existing and future Oracle assets.
■ To make only specific Oracle assets available to users with this RBAC role,
click Add. Then add each of the databases or pluggable databases that
you want to add to the role.
11 Click Assign.
Oracle cloning 137
Clone an Oracle database
12 Under Users, click Assign. Then add the users that you want to have this
RBAC role.
13 When you are done configuring the role, click Add role.
14 Configure the credential that users need to perform cloning and assign the role
that you created in this procedure or another role to that credential.
See “Add a credential to use for cloning an Oracle database” on page 50.
13 On the Review page, NetBackup runs a pre-recovery check for any errors.
You should correct any errors that are highlighted.
During the pre-recovery check, NetBackup looks for:
■ Credentials
■ Database name
■ Oracle base config path
■ Image access
■ Existence of Oracle home
■ SCN Value
■ If the source backup used OMF, selecting an ASM directory for control files or
redo files requires a path after the disk group.
■ If the source backup used OMF and from ASM, selecting an ASM directory for
any new location can only contain the disk group. Oracle does not honor any
paths after the disk group.
■ When you clone to a specified target directory, the best effort is made to create
the target directories along with the source subdirectories.
■ If you want to rename every file to a specific path or location, the Recovery API
provides this ability for the data file name, redo log, temp file, and control file.
■ The Recovery Point Device API provides additional information about recovery
point attributes and the chain of backup images.
■ For the following cloning operations:
■ From a file system to a file system
■ From ASM to a file system
The Recovery API allows a change from non-OMF to OMF or from OMF to
non-OMF.
Refer to the NetBackup API Reference documentation on the Veritas SORT website:
https://sort.veritas.com/documents
Chapter 11
NetBackup Copilot for
Oracle
This chapter includes the following topics:
■ Managing 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 144
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 144.
See “Backup Selections tab” on page 72.
See “Creating an Oracle Intelligent Policy (OIP)” on page 63.
See “About restoring from a data file copy to ASM storage using RMAN” on page 167.
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.
Step Description
Step Description
Common tasks See “Cleaning up the Oracle Copilot share after point in time
restore of database” on page 156.
Use the following procedure to set up a backup policy that protects shares on the
NetBackup appliance.
To configure an OIP using the Database backup shares or Whole Database -
Datafile Copy Share options
1 (Database Backup Shares option) The Oracle DBA asks NetBackup
administrator for the appliance share information.
2 The NetBackup administrator uses the NetBackup Appliance Shell Menu to
create a share on the appliance and then sets permissions for the share.
■ For more information about how to set up the share, see Creating a share
from the NetBackup Appliance Shell Menu in the Veritas NetBackup 52xx
and 5330 Appliance Administrator’s Guide
5 (Database backup shares option) The Oracle DBA uses RMAN to create a
database backup on the appliance share.
6 Configure an OIP.
Note: The NetBackup appliance media server can only be configured in a pure
IPv4 or dual stack IPv4/IPv6 mode.
Note: The functionality for creating an instant recovery point is not in the NetBackup
web UI. This feature is a command-line option only.
Refer to the NetBackup Commands Reference Guide for more usage options using
the nborair command.
To create an instant recovery point
1 Determine if there are any images available for instant recovery by running the
nborair –list_images [-client name] [-server primary] command.
The NetBackup administrator or the DBA can run this command from the
NetBackup client or primary 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 primary 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 or
instant access mount” on page 163.
NetBackup Copilot for Oracle 149
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
primary 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
primary server.
Example output:
Step Description
Create a universal share. A universal share can be created on one or more MSDP
storage servers, Flex Scale Cluster. If the universal share is
located on multiple storage servers, ensure that the
NetBackup media server can access all the storage servers.
Mount universal share to the Refer to the documentation for NFS options. If the Oracle
Oracle server. server has the Direct NFS option enabled, add the servers
or shares into the Oracle DNFS configuration file.
Create an Oracle Copilot Enter the mount share path during the selection.
policy.
See “Configuring an OIP using universal shares (Oracle
Copilot)” on page 150.
Start the Oracle backup and See “Backing up an Oracle database using Oracle Copilot
wait for the backup job to policy with a universal share” on page 172.
succeed.
Select an Oracle database See “Managing an instant access mount from an Oracle
from the Oracle workload Copilot universal share image” on page 156.
page (web UI only).
See “Configure an instant access mount” on page 172.
Create an instant access When you create an instant access mount, if you select
mount based on the recovery Direct NFS, ensure that the DNFS check box is selected. If
point (web UI only). you want to parallelly restore from RAC nodes, enter the host
name of the RAC nodes as the target server.
Step Description
Mount instant access to target Refer to Oracle documentation for NFS options. If you want
Oracle server. to parallelly restore from RAC nodes, ensure that the instant
access mount is mounted on all nodes with the same name.
Catalog data on Instant For RMAN > catalog, start with '<ia_mount_share>'
Access mount
See “Single-step restore to ASM storage from an Oracle
Copilot recovery point or instant access mount” on page 163.
Use the cataloged data file Instant access share provides a full set of data of the source
copy to do RMAN operations, database. An Oracle Database Administrator can decide how
such as restore data file or to use the data.
restore database from an
See “Single-step restore to ASM storage from an Oracle
instant access share.
Copilot recovery point or instant access mount” on page 163.
For example, perform disaster
recover on an alternative
Oracle server.
Common tasks See “Cleaning up the Oracle Copilot share after point in time
restore of database” on page 156.
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.
■ 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.
2 Mount all the universal shares on the Oracle clients.
3 Create an Oracle Copilot policy and then in Backup selections, select the
mount points of the universal shares.
■ 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 start 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.
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 154
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 155
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 156
Managing an instant access mount from an Oracle Copilot universal share image
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 cleaning up an Oracle Copilot share is not in the GUI.
This feature is command line option only.
NLS_DATE_FORMAT=DD-MON-YY_HH24:MI:SS
export NLS_DATE_FORMAT
Windows:
set NLS_DATE_FORMAT=DD-MON-YY_HH24:MI:SS
3 Log into RMAN and if NetBackup uses the RMAN catalog, it is required to log
in to the catalog.
4 Use the RMAN> list incarnation of database; command to find the Reset
Time for the current incarnation.
Example:
Example:
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- ------------------ ------- ------- ---------- ---
10192 B F A DISK 27-APR-17_10:42:59 1 1 NO TAG20170427T104257
10193 B F A DISK 27-APR-17_13:16:37 1 1 NO TAG20170427T131636
10194 B F A DISK 27-APR-17_13:16:55 1 1 NO TAG20170427T131654
10195 B F A DISK 27-APR-17_13:28:52 1 1 NO TAG20170427T132851
10196 B F A DISK 27-APR-17_13:29:08 1 1 NO TAG20170427T132906
10197 B F A DISK 27-APR-17_14:00:31 1 1 NO TAG20170427T140031
10198 B F A DISK 27-APR-17_14:00:43 1 1 NO TAG20170427T140043
10199 B F A DISK 27-APR-17_14:07:31 1 1 NO TAG20170427T140730
10200 B F A DISK 27-APR-17_14:07:48 1 1 NO TAG20170427T140747
10759 B A A DISK 28-APR-17_10:28:46 1 1 NO DCS_CDB
10786 B F A DISK 28-APR-17_10:28:56 1 1 NO DCS_CDB
10814 B F A DISK 28-APR-17_10:29:08 1 1 NO DCS_CDB
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- ------------------ ------- ------- ---------- ---
10759 B A A DISK 28-APR-17_10:28:46 1 1 NO DCS_CDB
10786 B F A DISK 28-APR-17_10:28:56 1 1 NO DCS_CDB
10814 B F A DISK 28-APR-17_10:29:08 1 1 NO DCS_CDB
NetBackup Copilot for Oracle 159
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 161
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 164
Single-step restore to ASM storage from an Oracle Copilot recovery point or instant access mount
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 146.
See “About Oracle Copilot” on page 142.
NetBackup Copilot for Oracle 167
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 144.
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;
}
Note: Any proxy backup of an Oracle database on ASM cannot be cloned to another
ASM environment. Only a File System Restore or the 2-step restore process is
supported.
NetBackup Copilot for Oracle 168
About restoring from a data file copy to ASM storage using RMAN
See “Single-step restore to ASM storage from an Oracle Copilot recovery point or
instant access mount” on page 163.
See “About NetBackup for Oracle restores” on page 118.
Chapter 12
Oracle Copilot with instant
access
This chapter includes the following topics:
■ The backup image is created using an Oracle Copilot Universal Share policy.
The policy has two options, that you can select:
■ Whole Database-Datafile Copy Share is supported by the web UI.
■ Database backup shares is only supported from the REST API.
For more information, see the following topic:
See “Backup Selections tab” on page 72.
■ The backup is a full database backup.
■ Supported platforms for Oracle Copilot Backup with Instant Access:
Backup From Single NFS BYO,Flex Appliance, Flex NetBackup 10.0 and later
Server WORM, Flex Scale, MSDP
AKS (Azure Kubernetes
Services), EKS (Amazon
Elastic Kubernetes
Service)
Backup From Single NFS Cloud LSU (logical storage NetBackup 10.0.1 and later
Server unit)
Backup From Multiple NFS Flex Scale NetBackup Flex Scale 3.1
Server and later
■ For Build Your Own (BYO) server, the operating system version must be same
as the latest appliance operating system version that is RHEL 7.6 and later.
■ For BYO server, NGINX is installed on the storage server.
■ The NGINX version must be same as the one in the corresponding official
RHEL version release. You need to install it from the corresponding RHEL
yum source (EPEL).
■ Ensure that the policycoreutils and policycoreutils-python packages
are installed from the same RHEL yum source (RHEL server). Then run the
following commands:
Oracle Copilot with instant access 171
Things to consider before you configure an instant access mount point
■ setsebool -P httpd_can_network_connect 1
■ For BYO server, the /mnt folder on the storage server cannot be mounted by
any mount points directly. User mount points must be mounted to its subfolders.
■ For BYO server, enable the logrotate permission in SELinux using the following
command:
semanage permissive -a logrotate_t
■ For instant access to work following an upgrade of NetBackup, first restart the
NetBackup Web Service on the primary server. Run the following commands:
■ /usr/openv/netbackup/bin/nbwmc stop
■ /usr/openv/netbackup/bin/nbwmc start
3 Click the Recovery points tab, then click the date on which the backup
occurred.
The available images appear in rows with the backup timestamp for each
image.
4 Right-click on the backup image and click Actions > Configure instant access
mount.
Note: This option is only displayed if the recovery point supports instant access.
5 Enter the host names where you want to configure the instant access database.
6 (Optional) If you have configured NFS in the Oracle client, select the Direct
NFS check box for the universal shares support the feature.
7 Click Configure.
8 After the instant access job starts, click on the Restore activity tab to view
the progress.
See “View the livemount details of an instant access mount” on page 174.
Oracle Copilot with instant access 174
View the livemount details of an instant access mount
Export path Exported instant access livemount path from the storage
server.
Live mount path Exported path with the storage server path.
Recovery point time Date when the recovery point was created.
Retention Time period for which you want the instant access mount
to be retained.
Note: If you have configured an instant access mount to multiple Oracle hosts,
mount all livemount paths to all the Oracle hosts.
Oracle Copilot with instant access 175
Configuring Auto Image Replication for Oracle instant access backups
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.
Incremental backup An incremental backup is a backup of only those blocks that have
changed since a previous backup. Oracle lets you create and restore
incremental backups of data files, tablespaces, and a database. You
can include a control file in an incremental backup set, but the control
file is always included in its entirety. No blocks are skipped.
Multilevel RMAN lets you create multilevel backups. RMAN can create multilevel
incremental backup incremental backup. A value of 0 or 1 denotes each incremental level.
Differential In a differential level 1 backup, RMAN backs up all blocks that have
incremental backup changed since the most recent incremental backup at level 1
(cumulative 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.
Oracle Copilot with instant access 178
Frequently asked questions
Term Definition
How can I enable the Oracle instant access Perform the steps in the following order:
feature on BYO after storage is configured or
1 Install the required NGINX service version.
upgraded without the NGINX service
installed? 2 Run the command:
/usr/openv/pdde/vpfs/bin/vpfs_config.sh
--configure_byo
How can I resolve the following issue in the Perform the steps in the following order:
vpfs-config.log file that is raised from?
1 Install the policycoreutils and policycoreutils-python
Verifying that the MSDP REST API
packages through the yum tool.
is available via https on port
10087 2 As required by SELinux for NGINX, add the following rules to bind
on the 10087 port.
■ semanage port -a -t http_port_t -p tcp 10087
■ setsebool -P httpd_can_network_connect 1
Instant Access for BYO uses a self-signed To configure the external certificate, perform the following steps:
certificate by default and only supports *.pem
1 If the new certificate is already generated (the certificate must
external certificate.
contain long and short host names for the media server), go to
How do I replace it with a certificate signed step 5.
by external CA (*.pem certificate), if required?
2 Create the RSA public or private key pair.
3 Create a certificate signing request (CSR).
The certificate must contain long and short host names for the
media server.
/usr/openv/pdde/vpfs/bin/vpfs_config.sh
--configure_byo
How can I disable media automount for the Follow the guideline to disable the gnome automount:
instant access livemount share in gnome?
https://access.redhat.com/solutions/20107
If the automount is enabled, the source folder
is mounted from the livemount share in
gnome and smaller disks appear. In this
scenario, the instant access feature does not
work properly.
How can I resolve the following issue in the Perform the steps in the following order:
/var/log/vpfs/vpfs-config.log file?
1 Ensure that your NetBackup primary server is up and there is no
**** Asking the NetBackup firewall blocking the connection between the primary server and
Webservice to trust the MSDP storage server.
webserver (spws) ****
2 Run the following command on storage server to verify the
/usr/openv/netbackup/bin/nblibcurlcmd connection status:
failed (1):
/usr/openv/netbackup/bin/bpclntcmd -pn
/usr/openv/pdde/vpfs/bin/vpfs_config.sh
--configure_byo
Chapter 13
NetBackup for Oracle with
Snapshot Client
This chapter includes the following topics:
Snapshot backup captures the data at a particular instant without having caused
significant client downtime. Client operations and user access continue without
interruption during the backup. The resulting capture or snapshot can be backed
up without affecting the performance or availability of the database.
The following NetBackup Snapshot Client features are available for use with
NetBackup for Oracle.
Table 13-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 13-1 Snapshot Client features used with NetBackup for Oracle
(continued)
Feature Description
File-based operations Oracle provides the list of files that require backup or restore
to NetBackup for Oracle with Snapshot Client.
Proxy copy
A proxy copy is a special type of backup in which the NetBackup for Oracle agent
manages the control of the data transfer. During the backup and restore operations,
proxy copy enables the agent to manage the entire data movement between the
disks that contain the data files and the storage devices that NetBackup manages.
With proxy copy, RMAN provides a list of files that require backup or restore to the
NetBackup for Oracle agent. The agent determines how the data is moved and
when to move the data. Proxy copy is an extension to Oracle’s Media Management
API.
Backups and restores remain tightly integrated with RMAN and its catalog, which
greatly simplifies administration tasks.
See “Optimizing and deduplicating stream-based and proxy copy Oracle backups”
on page 251.
See “Proxy backup examples” on page 191.
NetBackup for Oracle with Snapshot Client 184
About NetBackup for Oracle with Snapshot Client
Oracle Server
Data
Control commands
Oracle database Oracle database
disk disk
NetBackup
Storage
Figure 13-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 Oracle Intelligent Policy handles both stream-based and file-based components.
File-based and stream-based backups require different configurations. When
configuring your NetBackup for Oracle with Snapshot Client backups, be sure to
configure a policy that allows both stream-based and file-based backups.
See “About the NetBackup for Oracle backup and restore operations” on page 187.
See “How NetBackup for Oracle with Snapshot Client works” on page 186.
See “About NetBackup for Oracle with Snapshot Client” on page 181.
See “Proxy backup examples” on page 191.
See “NetBackup for Oracle stream-based operations” on page 184.
See “NetBackup for Oracle file-based operations” on page 185.
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 186.
See “Redirecting a restore to a different client” on page 189.
See “Performing a snapshot rollback restore using a script or RMAN command”
on page 201.
In the following example, the first run command initiates a proxy copy backup of
tablespace tbs1. NetBackup for Oracle uses a snapshot file-based backup to
perform a full tablespace backup. RMAN designates this backup as eligible for
incremental level 1-n backups. The second run command initiates a traditional
non-proxy level 1 incremental backup of the same tablespace tbs1. In this case,
NetBackup for Oracle performs a stream-based backup.
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 186.
See “RMAN multiple channels” on page 188.
See “Proxy backup examples” on page 191.
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.
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 193
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.
Client Administrator’s Guide and the Veritas Support website for more information.
Familiarize yourself with this information before you configure any snapshot backups.
The following list highlights some of the requirements that pertain to database
agents:
■ Snapshot Client backups do not back up all database objects. Your backup
configuration must include schedules to perform snapshot and stream-based
backups. This configuration ensures that the entire database can be restored
successfully.
■ On UNIX, the user identification and group identification numbers (UIDs and
GIDs) associated with the files to be backed up must be available. The UID and
GID must be available to both the primary client and the alternate backup client.
The UID on the primary client and the alternate backup client must be the same.
Similarly, the GID on the primary client and the alternate backup client must be
the same.
Note: The UID number can be different than the GID number.
■ Allocate different areas for data files, archived redo logs, and the control file for
database activities. Write the data files to their own repository because it is
required for an instant recovery point-in-time rollback. Only data files can exist
on the volume or the file system that you want to restore.
■ The hardware and software that is required for the appropriate snapshot method
must be installed and configured correctly.
■ NetBackup Snapshot Client must be installed and configured correctly, and the
license for this option must be registered.
■ To perform off-host backups, perform any special configuration that is required.
See “About configuring Snapshot Client with NetBackup for Oracle” on page 194.
See “Configuring a snapshot policy for NetBackup for Oracle” on page 195.
Alternate client If you select Alternate client, also specify the name of the 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.
Data mover (UNIX If you click Data mover, select Network Attached Storage.
clients only).
16 On the Backup Selections tab, specify the correct setup depending on policy
setup.
NetBackup for Oracle with Snapshot Client 198
About configuring Snapshot Client with NetBackup for Oracle
■ Oracle Intelligent Policy backup policy. Use the radio button to select Whole
Database, Partial database – Tablespaces, Partial database – Datafiles,
Fast Recovery Area, Database backup shares, or Whole Database -
Datafile Copy Share when using this type of policy.
■ Script-based backup policy. Specify the backup script when you use this
type of policy.
More information is available about how to use scripts for a NetBackup for
Oracle policy with Snapshot Client.
See “About Snapshot Client effects” on page 208.
17 Configure other attributes and add any additional schedules and backup
selections.
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 In the web UI, open the policy you want to configure or create a new policy.
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.
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 199
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.
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.
■ Example:
RUN {
allocate channel t1 'SBT_TAPE';
send 'NB_ORA_PC_RESTORE=rollback';
sql 'alter tablespace TEST offline immediate'
NetBackup for Oracle with Snapshot Client 202
Restoring NetBackup for Oracle from a snapshot backup
See “How NetBackup for Oracle with Snapshot Client works” on page 186.
See “About restoring individual files from a NetBackup for Oracle snapshot backup”
on page 200.
See “About NetBackup for Oracle restores of volumes and file systems using
snapshot rollback” on page 201.
See “Performing a NetBackup for Oracle point-in-time rollback restore from a
SnapVault backup (UNIX)” on page 202.
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 204.
See “Configuration requirements for BLI backups with NetBackup for Oracle”
on page 206.
NetBackup for Oracle with Snapshot Client 204
About configuring NetBackup for Oracle block-level incremental backups on UNIX
See “Configuring policies for BLI backups with NetBackup for Oracle” on page 206.
See “About NetBackup for Oracle with Snapshot Client” on page 181.
See “How NetBackup for Oracle with Snapshot Client works” on page 186.
Oracle does not support proxy backups of database control files and archived
redo logs. To perform a whole database proxy backup, which automatically
includes a backup of the control file, configure the following:
■ One or more automatic backup schedules to perform proxy BLI backups
of the data files.
■ An Application Backup schedule type to back up the control files and
archived redo logs.
Application Backup An application backup applies only to script-based policies not the
Oracle Intelligent Policies.
Full backup The full and incremental backup schedule types automatically start
the backups by running the NetBackup for Oracle RMAN scripts.
Differential incremental
They also store the snapshot backups.
backup,
Note: For most snapshot types, any automatic backup schedule
Cumulative incremental
(full, cumulative, or differential) results in a full volume snapshot.
backup
BLI is the only snapshot method that can perform an incremental
backup.
See “How Snapshot Client software affects schedule properties” on page 208.
See “How Snapshot Client software affects scripts” on page 209.
See “ Oracle with Snapshot Client environment variables” on page 209.
Property Description
Application Schedules:
Multiple Copies For snapshot backup, configure Multiple copies on the automatic
backup schedule.
For NetBackup for Oracle with Snapshot Client, the order of precedence for
environment variables is the same as for standard NetBackup for Oracle. Refer to
the instructions for how to configure the NetBackup and the user variables.
See “About configuring the run-time environment” on page 90.
NetBackup for Oracle installs sample scripts in the following location:
Windows:
install_path\NetBackup\dbext\oracle\samples\rman
UNIX:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
The following are the scripts for NetBackup for Oracle with Snapshot Client that
show how to configure the required variables:
If you use scripts, use the send command to pass the environment variables to the
agent. The following example uses the send command to specify the values for
NB_ORA_PC_SCHED and NB_ORA_PC_STREAMS:
run {
allocate channel t1 type 'SBT_TAPE';
send 'NB_ORA_PC_SCHED= sched, NB_ORA_PC_STREAMS= number’;
backup proxy
(database format 'bk_%U_%t');
}
For more information, see the sample scripts that are provided with the agent.
See “How NetBackup for Oracle with Snapshot Client works” on page 186.
See “Performing a snapshot rollback restore using a script or RMAN command”
on page 201.
See “Proxy backup examples” on page 191.
See “How Snapshot Client software affects backup types” on page 208.
See “How Snapshot Client software affects schedule properties” on page 208.
See “How Snapshot Client software affects scripts” on page 209.
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.
Note: Unless creating Block Level Incremental (BLI) backups, always select
Full Backup to create snapshots of the Oracle database.
NetBackup for Oracle with Snapshot Client 215
About Oracle support for Replication Director
■ Override policy storage selection: Enable and select the SLP that is
configured for snapshot replication. (A snapshot SLP is one in which the
first operation is a snapshot operation.) This option must be enabled so
that the schedule storage overrides the policy storage with a snapshot SLP.
■ Retention: The retention for the streamed data is based on the
non-snapshot SLP that was indicated as the Policy storage in Step 5.
■ The non-snapshot SLP specified on the policy storage in Step 5
determines the retention for the streamed data.
■ The snapshot SLP that is specified as the schedule storage (Override
policy storage selection) determines the retention for the snapshot
data.
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.
6 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.
After you select the Clients for use with scripts option, a message appears
that describes the changes to the policy.
Click Yes to continue.
7 Select the Schedules tab.
8 Edit the Default-Application-Backup schedule.
■ Override policy storage selection: Enable and select a non-snapshot
storage unit or a non-snapshot SLP. This option is most likely the storage
NetBackup for Oracle with Snapshot Client 218
About Oracle support for Replication Director
unit that is specified on the Attributes tab. Indicating the option here, makes
the selection explicit.
■ Retention: The policy or SLP indicates the retention for the backup:
■ When the storage is an SLP, the SLP determines the retention and no
selection is possible here.
■ When the storage is not an SLP, the schedule determines the retention
and a selection is possible here.
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.
11 Configure the schedule in the Start Window tab and the Exclude Days tab.
12 Click Add to save the schedule.
13 Select the Clients tab.
14 Add the client names that contain the Oracle database and indicate the
operating system of each.
15 Select the Backup Selections tab. Specify the script that NetBackup should
use. Indicate only one script.
16 When the policy configuration is complete, click Create.
Chapter 14
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
CLIENT The name of the client for the current backups. If it is not
configured, host name of the computer is used as a client
name.
POLICY The name of the policy for the current backups. If it is not
configured, “agentless_policy” is used as the policy name.
Settings Description
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.
Settings Descriptions
For example,
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
{
NetBackup Dedupe Direct for Oracle 228
Using NetBackup Dedupe Direct for Oracle plug-in
Performing the RMAN restore directly from the MSDP storage server
Make sure that a backup using the NetBackup Dedupe Direct for Oracle plug-in
has completed successfully before you attempt a restore. You can run the rman
command from a command prompt on the client. Use the appropriate RMAN
command file as a parameter.
Before you perform restore, use the SBT_LIBRARY parameter in the PARMS section
of the allocate channel in the RMAN script. In the RMAN script, modify the ALLOCATE
statement so that the SBT_LIBRARY parameter points to the NetBackup Dedupe
Direct for Oracle library, and specify the rman.cfg location in script. The rman.cfg
location is in etc directory under installed path.
For example,
RUN
{
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=<plugin_install_path>
/lib/libmsdp_sbt.so, SBT_PARMS=(SBTCONFIG=<plugin_install_path>/etc/rman.cfg)';
RESTORE DATABASE;
RECOVER DATABASE;
RELEASE CHANNEL ch00;
}
NetBackup Dedupe Direct for Oracle 229
Uninstalling the NetBackup Dedupe Direct for Oracle plug-in
6 (Optional) If you select Do not use in the action menu on the right, that instance
moves to the RAC instances excluded from backup table.
NetBackup does not use this instance when backup operations are performed.
7 Click Save.
See “Add an Oracle Real Application Cluster (RAC)” on page 104.
nboraadm -list_rac_instances
-rac_db_unique_name RAC_DB_NAME -show_connect_descriptor
■ Copy the connect descriptors from the screen or use the ‘>’ command to
create a file with the connect descriptors.
Manually create the RAC connect descriptors:
■ If you don’t have this information, use the web UI Oracle RAC functionality
or nboraadm to retrieve the information needed. You need to retrieve the
scan name, service name, and port number for the given RAC database.
If the RAC instances for the RAC database are not known, use either
interface to collect the list of instance names.
■ For each instance of a RAC, you must insert this information to create a
connect descriptor. Insert the scan name, service name, and port number
(from RAC database), as well as the instance name (from RAC instance)
into the following example:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=<INSERT SCAN NAME>)(PORT=<INSERT PORT NUMBER>))
(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=<INSERT SERVICE NAME>)
(INSTANCE_NAME=<INSERT INSTANCE NAME>)))
2 Add the connect descriptors with the Oracle MKSTORE utility. The descriptors
are case-sensitive and must match exactly to what is in NetBackup.
3 Register the RAC with the wallet path using the web UI.
See “Add an Oracle Real Application Cluster (RAC)” on page 104.
To register the RAC with the wallet path from the CLI, run nboraadm
-register_rac_db.
If the RAC is registered for the first time from discovery, you need to include
the dbid. From the CLI, run nboraadm -register_rac_db
-rac_db_unique_name.
4 (Optional) If you get an error when you attempt to register the RAC, review the
error message. Compare the descriptors in the error message with what you
generated in step 1 and what you inserted into your Oracle wallet.
Chapter 16
Troubleshooting
This chapter includes the following topics:
■ Enabling the debug logs manually for NetBackup Dedupe Direct for Oracle
plug-in
Troubleshooting 235
About troubleshooting NetBackup for Oracle
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 239
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 240
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 242
Setting the debug level on a Windows client
bporaimp64 The bporaimp (or bporaimp64 on UNIX) directory contains the following execution
log:
■ Windows: mmddyy.log
■ UNIX: log.mmddyy
VERBOSE = X
msglog ‘logfile_name’
■ RMAN verifies its environment and then issues requests to the API.
On Windows, some information, such as the NetBackup version, API versions,
and trace file name, is registered with RMAN. An error now is usually due to a
problem with client and server communication. Check the messages in the bprd
and the bpcd logs for clues.
On UNIX, some information, such as the NetBackup version, API versions, trace
file name, and NetBackup signal handlers, is registered with RMAN. An error
now is usually due to a problem with client and server communication. Check
Troubleshooting 245
Troubleshooting RMAN backup or restore errors
the messages in the bprd and the bpcd logs for clues. Also verify the bp.conf
entries on the client.
■ RMAN issues a backup or restore request.
The API gathers necessary parameters and sends the backup or restore
request to the NetBackup server. The API waits until both the server and client
are ready to transfer data before it returns to the request.
The API then sends this information to the primary server’s bprd process.
To troubleshoot a problem in this part of the first sequence, examine the following
file:
Windows:
install_path\NetBackup\logs\dbclient\mmddyy.log
UNIX:
/usr/openv/netbackup/logs/dbclient/log.mmddyy
If the bprd process failed, check the logs for bprd and bpbrm.
A failure now is frequently due to bad NetBackup server or Oracle policy
configuration parameters.
NetBackup can usually select the correct Oracle policy and schedules. But
NetBackup can select a policy or schedule in error if there are several Oracle
policies in its database.
On Windows, try setting the SERVER and NB_ORA_POLICY values in the client
environment.
On UNIX, try setting the SERVER and POLICY values in the bp.conf file on the
client or by setting environment variables.
For example, the following C Shell setenv commands specify the Oracle policy,
schedule, and server for NetBackup to use:
■ RMAN issues read or write requests to the API, which then transfers data to or
from the NetBackup server.
A failure here is probably due to NetBackup media, network, or time-out errors.
■ RMAN tells the API to close the session.
The API waits for the server to complete its necessary actions (for example, it
verifies the backup image) and then exits.
An error can originate from either NetBackup or RMAN, as follows:
Troubleshooting 246
Troubleshooting NetBackup for Oracle with Snapshot Client
■ RMAN aborts if it encounters an error while it reads a data file during the
backup (for example, if Oracle blocks are out of sequence). It also aborts if
NetBackup sends a bad backup image during the restore.
■ NetBackup might return an error code to the API if for some reason it could
not complete the backup successfully.
install_path\NetBackup\logs
UNIX:
/usr/openv/netbackup/logs/
Cause
NetBackup may not create all of the directories before the clone. This behavior is
because the Oracle OMF storage controls the creation of the directories. The
exceptions are online redo log location and temp file locations, which you must
create manually before the clone operation.
Solution
Before you run the clone operation, create the following directory on the target
system. For example:
E:\APP\ORACLE\PRODUCT\19.3\DB_HOME1\RAC_RESTORE2\DATA\CDB19R\
ONLINELOG
Troubleshooting 248
Minimizing timeout failures on large database restores
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
■ 0 Fatal
■ 1 Error
■ 2 Warning
■ 3 Info
■ 4 Debug
■ 5 Trace
Settings Description
■ Editing the RMAN script and configuring NetBackup for Oracle for a proxy copy
backup
ORACLE_OVERRIDE_DATA_MOVEMENT = 1
Note: When you use the Oracle stream handler, it is not recommended to use
variable-length deduplication.
The cacontrol command utility with the --sth flag, is used to override the default
behavior of NetBackup by creating a Marker Entry for a client, policy, or stream
type in a configuration file. The cacontrol command utility is located in the following
locations:
■ Windows: install_path\Veritas\pdde\cacontrol
■ UNIX: /usr/openv/pdde/pdcr/bin/cacontrol
In the following examples for cacontrol, STHTYPE must be set to Oracle to
configure the Oracle stream handler.
In NetBackup 8.3, you can configure cacontrol using the following options:
■ You can query the settings for the stream handler per client and policy.
■ You can enable the stream handler per client and policy.
■ You can delete the settings for client and policy (return to default behavior).
When using the cacontrol command utility to create a Marker Entry in NetBackup
10.0, priority is given to the more granular configuration. For example:
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 258.
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 258
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 260.
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 262
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 264.
See “About Snapshot Client support of SFRAC” on page 263.
CLIENT_NAME = <virtual_name>
Snapshot Client support of SFRAC 265
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 primary node. This
action helps when you start the database in mount state.
5 Start the database with mount option on the clustered primary 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 primary node of
the cluster PREFERRED_NETWORK = <virtual_name>
See “About Snapshot Client support of SFRAC” on page 263.
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 181.
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 (primary 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 272.
See “Creating NetBackup policies for script-based BLI backup” on page 274.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
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 271.
See “Improving NetBackup backup performance” on page 296.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 274
Creating NetBackup policies for script-based BLI backup
intend to do simultaneous backups of more than one SID on the same file system,
use Nodata Storage Checkpoints. Set the METHOD to NODATA_CKPT_HOT.
For example, to back up file systems F1, F2, F3, and F4 with two streams, you need
to define two policies (P1 and P2) with F1 and F2 backed up in P1, and F3 and F4
backed up in P2. If you have one large file system that needs to be backed up with
multiple streams, divide the files in the file system between different policies. After
a file is added to a policy, it should stay in that policy. If you must rearrange the file
list, do so only prior to a full backup.
If you have more than one policy defined for an Oracle database instance,
NetBackup groups the database instance by the NetBackup keyword phrase. Identify
one of the policies as the POLICY_IN_CONTROL in the NetBackup notify scripts. This
policy performs database shutdowns and restarts. All policies with the same keyword
phrase need to be configured to start simultaneously.
Warning: Care must be taken when specifying the keyword phrase. A multistream
backup is attempted if the backup process finds more than one policy with the
following characteristics: Each policy has the BLI attribute set, each policy is active,
each policy contains the same client, and each policy has an identical keyword
phrase.
Typical failure status is: “74 - timeout waiting for bpstart_notify to complete.”
"See “NetBackup restore and backup status codes” on page 294.
You can check the file systems on the backup client to see if they are included in
one of the NetBackup policies on the server. To see if you need to add any new
file systems to the NetBackup policies, run the following commands from the server
on a regular basis, perhaps as a cron(1) job:
# cd /usr/openv/netbackup/bin/goodies/
# ./check_coverage -coverage -client mars -mailid \nbadmin
The preceding command generates the following output and mails it to the specified
mailid:
CLIENT: mars
Mount Point Device Backed Up By Policy Notes
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 276
Creating NetBackup policies for script-based BLI backup
If there is an UNCOVERED file system that is used by Oracle, add it to one of the
NetBackup policies so that all the necessary file systems are backed up at the same
time.
Note: After a file system is added to a policy, it is a good idea to keep the file system
in that policy. If you change the policy, NetBackup performs a full backup the next
time backups are run even if an incremental backup is requested.
See “Creating NetBackup policies for script-based BLI backup” on page 274.
See “About BLI policy attributes” on page 276.
See “Example Oracle BLI backup policy” on page 279.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 277
Creating NetBackup policies for script-based BLI backup
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.
configuration are backed up without having to update the file list. Use the
check_coverage script to make sure all file systems are backed up.
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 274.
See “About schedules for BLI backup policies” on page 278.
See “Example Oracle BLI backup policy” on page 279.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
The policies for each stream must have the same types of schedules.
■ Automatically initiated backup schedules. Include server-initiated backup
schedules to specify the days and times for NetBackup to automatically start
backups of the files specified in the policy file list. Set the backup window as
described.
For server-initiated full and incremental backup schedules, set the start times and
durations to define the appropriate windows for the backups. Follow the same
procedure used to define backup schedules for other policies. For more information
on these procedures, see the NetBackup Administrator’s Guide, Volume I.
The backups are started by the scheduler only within the backup window specified.
For the POLICY_IN_CONTROL, include in the user-directed backup schedule the time
periods when the BLI backup policies complete.
Set the retention level and periods to meet user requirements.
See “Creating NetBackup policies for script-based BLI backup” on page 274.
See “Example Oracle BLI backup policy” on page 279.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
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 282
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.
■ post_checkpoint_notify.POLICY
■ bpend_notify.POLICY
/usr/openv/netbackup/ext/db_ext/oracle/bin/setup_bli_scripts
/usr/openv/netbackup/ext/db_ext/oracle/samples
When you run setup_bli_scripts you need to supply the following information:
■ Identify the POLICY_IN_CONTROL
See “Identify the POLICY_IN_CONTROL for BLI backups” on page 284.
■ Provide the Oracle environment variables
See “Oracle environment variables for BLI scripts” on page 284.
■ Select a backup method
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 284
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 274.
See “Example Oracle BLI backup policy” on page 279.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
#/usr/openv/netbackup/ext/db_ext/oracle/bin/setup_bli_scripts
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 286
Creating NetBackup policies for script-based BLI backup
The default "connect" statement that will be used to connect to the database is:
"connect / as sysdba"
Would you like to modify the connect and use a specific login? (y/n) n
Please enter the Oracle instance (ORACLE_SID) you want to back up? orac901
To back up a copy of the Oracle control file, you need to specify a file
path where Oracle can write a copy of the control file.
Please enter the file path where Oracle is to write a copy of your
control file? /dbhome/oracle/orac901/admin/orac901/pfile/cntrlorac901.ora
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 287
Creating NetBackup policies for script-based BLI backup
To back up the Oracle archive logs, you need to specify their location.
You now need to decide on how many NetBackup policies you will have
backing up simultaneously. The first one you enter will be known
as the POLICY_IN_CONTROL in the scripts and will perform any needed
DB operations. When you create the policies on the NetBackup server,
you will have to divide the filesystems between these policies.
Please enter the name of the policy that will be the POLICY_IN_CONTROL? BLI_1
Please enter the name of another policy or DONE to stop? BLI_2
Please enter the name of another policy or DONE to stop? BLI_3
Please enter the name of another policy or DONE to stop? BLI_4
Please enter the name of another policy or DONE to stop? BLI_5
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 288
Performing backups and restores
See “Creating NetBackup policies for script-based BLI backup” on page 274.
See “Example Oracle BLI backup policy” on page 279.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
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 288.
See “About NetBackup for Oracle manual backups” on page 289.
See “Backing up Quick I/O files” on page 290.
See “Restoring BLI backup images” on page 290.
See “About script-based Block-Level Incremental (BLI) Backups without RMAN”
on page 270.
Note: You must be the root user to perform all operations using the BLI backup
software.
Note: For HP-UX PA-RISC checkpoints to unmount and be cleaned up, create
touch file /usr/openv/netbackup/AIO_READS_MAX that contains the value 1.
HP-UX PA-RISC checkpoints may not be unmounted on Oracle database agents.
See “Creating NetBackup policies for script-based BLI backup” on page 274.
See “Backing up Quick I/O files” on page 290.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 289
Performing backups and restores
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.
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.
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 290
Performing backups and restores
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.
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.
NetBackup progress This description only applies to a File System Restore (script-based BLI).
logs
For user-directed backups and restores performed with Backup, Archive, and Restore
interface, the most convenient log to use for NetBackup is the progress log. The progress
log file is written to the user’s home directory, by default in
/usr/openv/netbackup/logs/user_ops/username/logs. This log indicates whether
NetBackup was able to complete its part of the operation. You can view the progress log
from the Backup, Archive, and Restore interface, or you can use a file editor such as vi(1).
NetBackup debug logs The NetBackup server and client software provide debug logs for troubleshooting any problems
that occur outside of BLI backups. To enable these debug logs on the server or client, create
the appropriate directories under the following directory:
/usr/openv/netbackup/logs
For more information on debug logs, see the NetBackup Troubleshooting Guide or see the
/usr/openv/netbackup/logs/README.debug file.
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
Script-based Block-Level Incremental (BLI) Backups without RMAN on UNIX and Linux systems 295
About troubleshooting backup or restore errors
■ Status Code 74. Client timed out waiting for bpstart_notify to complete.
Check the BPSTART_TIMEOUT setting on the NetBackup server. The
BPSTART_TIMEOUT specified did not allow enough time for the script to complete.
The shutdown database operation might be taking too long, or the script might
be waiting for other streams to start. Check the
bpstart_notify_output.ORACLE_SID file and the
post_checkpoint_notify_output.ORACLE_SID file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory. Make sure that the policies
and schedules are configured with appropriate multiplexing factors and that the
required storage units that allow all streams to start at the same time are
configured. Check to see if all needed tape drives are working and available.
Make sure that the database is not processing transactions so that the instance
cannot be shut down immediately (if you are using one of the backup methods
where the database is shut down).
Finally, make sure that the priority on the BLI policies is higher than other policies,
so they get access to the tape drives before the other policies.
■ Status Code 75. Client timed out waiting for bpend_notify to complete.
Check the BPEND_TIMEOUT setting on the NetBackup server. The BPEND_TIMEOUT
specified did not allow enough time for the script to complete. The restart
database operation might be taking too long, or the script might be waiting for
other streams to call the bpend_notify script. Check the
bpend_notify_output.ORACLE_SID file and the
post_checkpoint_notify_output.ORACLE_SID file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory. Make sure that the policies
and schedules are configured with appropriate multiplexing factors and that the
required storage units that can allow all streams to be started at the same time
are configured. Verify that all needed tape drives are working and available
during backup.
■ Status Code 77. Execution of the specified system command returned a nonzero
status code.
Check the post_checkpoint_notify_output.KEYWORD file in the
/usr/openv/netbackup/bin/BLOCK_INCR directory for the possible cause. The
post_checkpoint_notify script exited with a nonzero status code.
■ About the environment variables set by a user in the XML export parameter file
Table D-1 NetBackup for Oracle XML export and XML import archiving
features
Feature Description
System- and NetBackup for Oracle uses the eXtensible Markup Language (XML)
database-independent standard to represent relational database table data that is extracted
archive format from an Oracle database.
Self-identifying archive The XML Schema standard is used to describe the table data that
format is included in an archive. In this way, the archive contains the key
to understanding the format of the data as well as the data itself.
Command line Parameter files specify the table data to include in an archive and
interfaces that allow the table data to extract from an archive for import into an Oracle
export and import at database.
row-level granularity
Restore destination NetBackup for Oracle can either restore XML data to an operating
option system directory or import the data back into the Oracle database.
Flexible archive image The NetBackup catalog contains information on the contents of the
searches archive that can be searched by using flexible search criteria, such
as tablename or user.
Command line 1
Script (bporaexp or
bporaexp64)
2 3
Oracle DBMS
Query processor
XML generator
OS Directory
NetBackup
Activity Process
Oracle XML archive NetBackup for Oracle extracts database table data, converts
it into XML format, and stores XML data to either of the
following types of repositories:
■ A directory
■ A storage unit
XML export NetBackup converts Oracle table data to XML format (XML
schema or metadata and XML instance or data).
See “NetBackup for Oracle XML export and XML import” on page 297.
See “Sequence of operation: XML export archive” on page 300.
See “Sequence of operation: XML import restore” on page 303.
See “XML import restore process” on page 302.
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 302
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 299.
See “XML import restore process” on page 302.
See “NetBackup for Oracle XML export and XML import” on page 297.
See “Sequence of operation: XML export archive” on page 300.
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 305
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 299.
See “XML import restore process” on page 302.
See “NetBackup for Oracle XML export and XML import” on page 297.
See “Sequence of operation: XML export archive” on page 300.
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 307
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 102.
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 308.
■ See “Running bporaexp on the client as an Oracle user” on page 309.
■ See “Writing to a directory versus writing to a storage unit” on page 310.
■ See “About bporaexp parameters” on page 311.
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 309
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 90.
bporaexp creates a set of XML schema and instance documents that can be used
to archive Oracle table data. For each archive, one primary 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 308.
XML Archiver 310
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 311
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 primary XML schema file. Directory
NB_ORA_SERV N default primary Optionally specifies the name of the Storage Unit
server NetBackup primary 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 313
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 314
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 318.
See “About bporaimp parameters” on page 318.
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 primary 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
primary primary server.
server
NB_ORA_CLIENT N default Optionally specifies the name of the NetBackup Storage Unit
client for Oracle client.
XML Archiver 321
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 317.
See “About the RMAN SEND command variables” on page 93.
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 325.
See “About troubleshooting NetBackup for Oracle” on page 235.
See “Troubleshooting each stage of the XML export or XML import” on page 326.
See “Additional XML export and import logs” on page 329.
See “About NetBackup for Oracle troubleshooting steps” on page 235.
Examine these logs for any messages that show how to determine the source
of an error.
XML Archiver 326
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 235.
See “About NetBackup for Oracle troubleshooting steps” on page 235.
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 328
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 329
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.
Appendix E
Register authorized
locations
This appendix includes the following topics:
■ On Windows:
C:\Program Files\Veritas\NetBackup\bin>nbsetconfig
nbsetconfig> DB_SCRIPT_PATH=c:\db_scripts
nbsetconfig> DB_SCRIPT_PATH=e:\oracle\fullbackup\full_rman.sh
nbsetconfig>
<ctrl-Z>
Note: Review the NetBackup Command Reference Guide for options, such
as reading from a text file and remotely setting clients from a NetBackup server
using bpsetconfig. If you have a text file with the script location or authorized
locations listed, nbsetconfig or bpsetconfig can read from that text file. An
entry of DB_SCRIPT_PATH=none does not allow any script to execute on a client.
The none entry is useful if an administrator wants to completely lock down a
server from executing scripts.
Register authorized locations 332
Registering authorized locations used by a NetBackup database script-based policy