DELL EMC Avamar For Oracle User Guide
DELL EMC Avamar For Oracle User Guide
DELL EMC Avamar For Oracle User Guide
Version 18.1
User Guide
302-004-681
REV 02
Copyright © 2001-2018 Dell Inc. or its subsidiaries. All rights reserved.
Published 2018
Dell believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.
THE INFORMATION IN THIS PUBLICATION IS PROVIDED “AS-IS.“ DELL MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND
WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. USE, COPYING, AND DISTRIBUTION OF ANY DELL SOFTWARE DESCRIBED
IN THIS PUBLICATION REQUIRES AN APPLICABLE SOFTWARE LICENSE.
Dell Technologies, Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be the property
of their respective owners. Published in the USA.
Dell EMC
Hopkinton, Massachusetts 01748-9103
1-508-435-1000 In North America 1-866-464-7381
www.DellEMC.com
Tables 9
Figures 11
Preface 13
Chapter 1 Introduction 17
Architecture................................................................................................ 18
Stand-alone configuration.............................................................. 18
High-availability configuration........................................................ 19
Data Domain system support......................................................... 20
Log files.........................................................................................20
Backup and restore operations....................................................................21
Backups and restores in Avamar Administrator.............................. 21
Backup....................................................................................................... 22
Backup types................................................................................. 22
Archive log backups.......................................................................24
Automatic Storage Management and raw file structure support....24
Oracle offline backup.....................................................................24
RMAN tuning options.................................................................... 24
RMAN backup optimization........................................................... 25
RMAN multisection backups..........................................................26
Restore and recovery................................................................................. 26
Corrupt block recovery..................................................................26
Flashback Database recovery........................................................ 26
Roll forward recovery.................................................................... 26
Restore and recovery from the Cloud............................................ 27
Concurrent backups and restores............................................................... 27
Multiple databases......................................................................................27
Multi-streaming.......................................................................................... 28
Oracle Exadata........................................................................................... 28
Oracle recovery catalog..............................................................................28
Preprocessing and postprocessing backup and restore scripts...................29
Chapter 2 Installation 31
Preparing to install the Avamar Plug-in for Oracle...................................... 32
System requirements.....................................................................32
Oracle requirements...................................................................... 32
VCS configurations........................................................................33
Downloading the software............................................................. 33
Installing the Avamar file system client.......................................... 34
Installing, upgrading, and uninstalling the software on HP-UX....................34
Installing the Avamar Plug-in for Oracle on HP-UX........................34
Upgrading the Avamar Plug-in for Oracle on HP-UX..................... 35
Uninstalling the Avamar Plug-in for Oracle on HP-UX................... 35
Installing, upgrading, and uninstalling the software on IBM AIX.................. 36
Chapter 5 Backup 75
Creating the Oracle user account............................................................... 76
Enabling Block Change Tracking.................................................................76
Preparing the database for backup ............................................................ 76
Performing on-demand backup...................................................................78
Scheduling backups....................................................................................82
Creating a dataset......................................................................... 82
Creating a group............................................................................86
Glossary 165
1 Typographical conventions..........................................................................................14
2 Hardware requirements ............................................................................................. 32
3 Environment variables for libobk............................................................................... 108
4 Backup plug-in options.............................................................................................. 132
5 Restore plug-in options............................................................................................. 137
6 Recovery mode options.............................................................................................140
7 Preprocessing and postprocessing attributes............................................................142
8 Attribute flags........................................................................................................... 142
9 Avamar client installation verification........................................................................ 164
As part of an effort to improve the product lines, revisions of the software and
hardware are periodically released. Therefore, some functions that are described in
this document might not be supported by all versions of the software or hardware
currently in use. The product release notes provide the most up-to-date information
on product features.
Contact the technical support professional when a product does not function correctly
or does not function as described in this document.
Note
This document was accurate at publication time. To find the latest version of this
document, go to Online Support (https://support.EMC.com).
Purpose
This guide describes how to install, configure, administer, and use the Avamar Plug-in
for Oracle.
Audience
This document is intended for:
l System administrators who are responsible for installing software and maintaining
servers and clients on a network
l Oracle Database Administrators (DBAs) who are responsible for backing up and
maintaining Oracle databases
Revision history
The following table presents the revision history of this document.
Related documentation
The following publications provide additional information:
l Avamar Administration Guide
l Avamar Backup Clients User Guide
l Avamar for Windows Server User Guide
l Avamar Operational Best Practices Guide
l Avamar Compatibility and Interoperability Matrix
l Avamar Release Notes
l Avamar and Data Domain System Integration Guide
DANGER
WARNING
CAUTION
NOTICE
Note
Typographical conventions
These type style conventions are used in this document.
Italic Used for full titles of publications that are referenced in text
Monospace Used for:
l System code
l System output, such as an error message or script
l Pathnames, filenames, prompts, and syntax
l Commands and options
Note
To open a service request, you must have a valid support agreement. Contact a sales
representative for details about obtaining a valid support agreement or with questions
about an account.
To review an open service request, click the Service Center link on the Service
Center panel, and then click View and manage service requests.
Enhancing support
It is recommended to enable ConnectEMC and Email Home on all Avamar systems:
l ConnectEMC automatically generates service requests for high priority events.
l Email Home sends configuration, capacity, and general system information to
Customer Support.
Comments and suggestions
Comments and suggestions help to continue to improve the accuracy, organization,
and overall quality of the user publications. Send comments and suggestions about
this document to DPAD.Doc.Feedback@emc.com.
Please include the following information:
l Product name and version
l Document name, part number, and revision (for example, 01)
l Page numbers
l Other details to help address documentation issues
l Architecture....................................................................................................... 18
l Backup and restore operations........................................................................... 21
l Backup............................................................................................................... 22
l Restore and recovery.........................................................................................26
l Concurrent backups and restores.......................................................................27
l Multiple databases............................................................................................. 27
l Multi-streaming..................................................................................................28
l Oracle Exadata...................................................................................................28
l Oracle recovery catalog..................................................................................... 28
l Preprocessing and postprocessing backup and restore scripts.......................... 29
Introduction 17
Introduction
Architecture
®
The Avamar Plug-in for Oracle works with Oracle and Oracle Recovery Manager
(RMAN) to back up Oracle databases, tablespaces, or datafiles to an Avamar server or
®
a Data Domain system. The Avamar Plug-in for Oracle serves as a backup module and
the Avamar server or Data Domain system as a storage device. You can perform
backups and restores from Avamar Administrator or from the RMAN command line
interface.
From the RMAN command line interface, RMAN uses the Avamar Plug-in for Oracle as
a data mover to perform backup and recovery. From Avamar Administrator, the
Avamar Plug-in for Oracle creates an RMAN script to perform the backup or restore
operation and spawns an RMAN process to run the script. RMAN then uses the
Avamar Plug-in for Oracle as a data mover to perform a backup or a restore operation.
Stand-alone configuration
You can deploy the Avamar Plug-in for Oracle in stand-alone configurations for all
supported platforms.
The following figure shows a stand-alone configuration that uses the Avamar Plug-in
for Oracle to back up or restore Oracle data to or from an Avamar server or a Data
Domain system.
Figure 1 Avamar Plug-in for Oracle in a stand-alone configuration
The Avamar Compatibility and Interoperability Matrix provides more information about
supported platforms.
High-availability configuration
You can also deploy the Avamar Plug-in for Oracle in high-availability (HA)
configurations such as Microsoft Cluster Server (MSCS), Solaris Cluster Server
(VCS), and Oracle Real Application Clusters (RAC).
MSCS configurations
The Avamar Plug-in for Oracle supports two-node MSCS configuration. You can use
the Avamar Plug-in for Oracle to back up Oracle database files from Windows Server
2008 and MSCS for both 32-bit and 64-bit platforms.
VCS configurations
The Avamar Plug-in for Oracle supports both two-node active/active and two-node
active/passive VCS configurations. You can use the Avamar Plug-in for Oracle to back
up Oracle database files from Solaris platforms that run VCS.
In an active/active cluster configuration, each node runs an instance of the Avamar
Plug-in for Oracle as an application in separate service groups. This functionality
provides application redundancy. When a failure occurs on one active node, the other
active node hosts both service groups.
In an active/passive cluster configuration, the service group is online on the active
node until a failover occurs. Then the service group comes online on the passive node.
You can run backups and restores from both nodes.
RAC configurations
RAC is an option for an Oracle database that enables multiple nodes to have shared
access to a single database. The Avamar Plug-in for Oracle supports backups of RAC
configuration on HP-UX, IBM AIX, Linux, Solaris, or Windows platforms, and requires
that Oracle RAC installation is in the English language.
The Avamar Plug-in for Oracle installation packages for the HP-UX, IBM AIX, Linux,
and Solaris platforms include three configuration scripts for Oracle RAC:
l rac_config—Configures the Avamar Plug-in for Oracle to back up and restore
RAC databases.
l rac_deconfig—Deletes the RAC configuration from the Avamar Plug-in for
Oracle.
l rac_stop—Removes the Avamar agent (EMCagent) from the Oracle
Clusterware resource list.
The Avamar Plug-in for Oracle installation package for Microsoft Windows includes
AvamarRACConfiguration.exe.
Use Avamar Administrator to back up and restore Oracle RAC databases just as you
would for non-RAC databases. In an Oracle RAC configuration, each cluster node runs
a local instance of the Oracle database and maintains a local copy of online logs. The
instance name differs from the database unique name.
To back up an Oracle RAC database, the Avamar Plug-in for Oracle connects to the
instance of the database that is running on the current active node. To restore an
Oracle RAC database, you must first shut down all database instances, and then start
the instance on the registered node in a “no mount” state.
When one cluster node fails or is taken offline, the other cluster nodes continue
operating. The Oracle RAC database remains available to users without interruption.
High-availability configuration 19
Introduction
The Avamar Plug-in for Oracle backs up and restores Oracle RAC databases by
connecting to the instance that runs on the cluster node. This node is the one
registered with the Avamar server.
Because each node runs an instance of the Oracle database in a RAC configuration,
when a failover occurs, users access the database on the failover node. The failover
process is transparent to the users.
Log files
The Avamar Plug-in for Oracle creates log files during backup and restore operations.
The log files are for debugging purposes. Backup and restore operations from Avamar
Administrator create the avoracle.log file in the install-directory/var/
clientlogs directory.
The Oracle backup process generates an RMAN script similar to the following script:
configure controlfile autobackup on;
run {
allocate channel c1 type sbt;
send 'connect information for avtar to connect to the Avamar
server';
backup database;
}
During the backup or restore operation, RMAN creates a log file that you can view
from Avamar Administrator:
Backup
The Avamar Plug-in for Oracle enables you to back up Oracle database files and
archive logs by using Avamar Administrator or RMAN backup scripts. When you use an
RMAN script, you can back up an Oracle database, a tablespace, or a single datafile.
Backup types
The Avamar Plug-in for Oracle supports the following types of backups:
l Backups of Oracle database files and archive logs.
l Cold (offline) backups of the Oracle file system.
l Four backup levels:
n Full—Backs up all data files. You can optionally choose to backup the archive
logs during a Level 0 (incremental) backup or at a later time.
Level full, the default backup level, is not part of the incremental backup
strategy.
n Level 0 (incremental)—Backs up all data files.
You must run a Level 0 backup before you run a Level 1 backup.
n Differential (incremental)—Backs up all database blocks that have changed
since the most recent incremental (differential or cumulative) or level 0
backup. The following figure shows daily level 1 differential backups during a
two-week period.
Backup types 23
Introduction
In Figure 5 on page 25, RMAN simultaneously reads three files and writes them to the
backup set intermingled. The RMAN multiplexing feature intermingles the backup files,
and does not provide the data stream in a similar format for subsequent reads.
Because of how the RMAN multiplexing feature intermingles files, backups by the
Avamar Plug-in for Oracle to the Avamar server can contain the duplicate data even if
no changes were made to the database since the last backup. The RMAN multiplexing
feature can negatively affect the data deduplication ratio of the Avamar Plug-in for
Oracle.
The Avamar Plug-in for Oracle improves data deduplication performance by enabling
you to use the Filesperset option in Avamar Administrator.
The Filesperset option specifies the number of files to include in each backup set. The
default value of the Filesperset option is 1. When you specify a value for the
Filesperset option, RMAN uses the value as a limit for the number of files RMAN
includes in a backup set.
To roll forward a database after a restore operation completes, you must clear the
Open the database with resetlogs after recovery option in the Restore Command
Line Options dialog box. When you clear this option, the restore operation does not
open the database with resetlogs. You can apply archive logs to recover the database
to the most current point-in-time that is available.
Multiple databases
The Avamar Plug-in for Oracle supports the selection of multiple databases for both
backup and restore operations.
When multiple databases are backed up on the same workorder, they are logically
grouped so that Avamar Administrator can present a hierarchical view of the
databases during subsequent restore operations. This grouping is accomplished by
prefixing a path that comprises the ORACLE-INSTANCE and ORACLE-SID to each
database within the backup. For example, an Oracle 11g database with ORACLE-SID
set to orcl is prefixed with /11g/orcl/.
Multi-streaming
Multi-streaming is a feature that enables a backup or a restore to use multiple RMAN
channels to the Avamar server or the Data Domain system. A backup or restore that
uses multiple RMAN channels runs multiple instances of avtar in parallel.
RMAN might not use all the RMAN channels that you specify. For example, if you
specify 4 RMAN channels for a backup, RMAN might use only 2 channels. The backup
ignores the other 2 channels. The default number of RMAN channels is 1 and the
maximum is 10.
Allocating multiple RMAN channels for backups and restores can improve
performance. Performance improvements for backups and restores, however, depend
on the Oracle server configuration.
You can specify multiple RMAN channels for backups and restores by using the
Number of RMAN Channels option in Avamar Administrator or by specifying
allocate channel commands in an RMAN script.
Oracle Exadata
Oracle Exadata is a product that combines hardware and software to run Oracle. The
Avamar Plug-in for Oracle supports Oracle Exadata for Oracle Database Machine and
Exadata Storage Server (attached to an external database server) configurations.
The Avamar Plug-in for Oracle supports the same environment for Oracle Exadata
(including the Oracle database versions, operating system versions, and Avamar
versions) as the environment that the Avamar Plug-in for Oracle supports for Oracle
RAC. The Avamar Compatibility and Interoperability Matrix provides more information
about supported environments for the Avamar Plug-in for Oracle.
Install and configure the Avamar Plug-in for Oracle on the Exadata database server
the same way you install and configure the Avamar Plug-in for Oracle in Oracle RAC
configurations. Use Avamar Administrator to back up and restore the Exadata
database server just as you would for non-Exadata database servers. Backup on page
75 and Restore and Recovery on page 89 provide more information.
Installation 31
Installation
System requirements
The environment must meet client compatibility requirements before you install the
Avamar Plug-in for Oracle.
Client compatibility requirements are available in the Avamar Compatibility and
Interoperability Matrix. The requirements in the matrix include supported operating
systems and application versions. The Avamar file system client and the Avamar Plug-
in for Oracle that you install on the host must be the same version.
If Oracle RAC is being used, the Avamar Plug-in for Oracle requires that Oracle RAC
be installed in the English language.
Hardware requirements
The following table lists hardware requirements for the Avamar Plug-in for Oracle.
Resource Requirement
RAM 64 MB
Software requirements
To install the Avamar Plug-in for Oracle in a Windows cluster requires the
Microsoft .NET Framework 4 software.
You can download and install the .NET Framework 4 from the Microsoft Download
Center.
Oracle requirements
Ensure that you meet Oracle requirements before you install the Avamar Plug-in for
Oracle.
1. Ensure that you have operating system root privileges on the Oracle server.
2. Ensure that Oracle and RMAN are installed and functioning properly.
3. Ensure that the Avamar server is operational and present on the same network as
the Oracle server by opening a command shell on the Oracle server and typing the
following command:
ping Avamar-server
where Avamar-server is the network hostname (as defined in DNS) or IP address
of the Avamar server.
4. Note the network hostname (which is a DNS entry) for the Avamar server and the
utility node.
The installation and configuration of the Avamar system adds these entries to
DNS.
VCS configurations
The Avamar Plug-in for Oracle supports both two-node active/active and two-node
active/passive VCS configurations. You can use the Avamar Plug-in for Oracle to back
up Oracle database files from Solaris platforms that run VCS.
In an active/active cluster configuration, each node runs an instance of the Avamar
Plug-in for Oracle as an application in separate service groups. This functionality
provides application redundancy. When a failure occurs on one active node, the other
active node hosts both service groups.
In an active/passive cluster configuration, the service group is online on the active
node until a failover occurs. Then the service group comes online on the passive node.
You can run backups and restores from both nodes.
Note
For a Solaris cluster (VCS) configuration, download the Avamar Cluster Client for
Solaris. The Avamar Cluster Client for Solaris includes the Avamar Plug-in for Oracle.
Procedure
1. Log in to the Oracle server with the necessary privileges to perform an
installation.
2. Open a web browser and type the following URL:
https://Avamar_server/dtlt/home.html
VCS configurations 33
Installation
where:
l platform is the HP-UX platform type.
l version is the Avamar version number.
where:
l platform is the HP-UX platform type.
l version is the Avamar version number.
l install_path is the installation directory.
swremove hpuxrman
where:
l install_path is the directory for the installation files.
l version is the Avamar software version.
where:
l platform is the AIX system type.
l version is the Avamar software version.
where:
l install_path is the alternate installation directory.
l platform is the AIX system type.
l version is the Avamar software version.
6. Download the Avamar Client for AIX. The Avamar Backup Clients User Guide
provides instructions.
7. To upgrade the Avamar Client for AIX in the default installation directory, type
the following command:
geninstall -d AvamarClient-platform-version.bff all
where:
l platform is the AIX system type.
l version is the Avamar software version.
8. To upgrade the Avamar Client for AIX in an alternate installation directory, type
the following command:
installp -R /install_path -d AvamarClient-platform-version.bff
all
where:
l install_path is the alternate installation directory.
l platform is the AIX system type.
l version is the Avamar software version.
Procedure
1. Log in to the Oracle server as root.
2. Change the directory to the temporary directory by typing the following
command:
cd /tmp
where:
l platform is the Linux system type.
l version is the Avamar software version.
4. To change base directory for the installation, type the following command:
rpm --relocate /usr/local/avamar=/install_path -i AvamarRMAN-
linux-platform-version.rpm
where:
l install_path is the new directory.
l platform is the Linux system type.
l version is the Avamar software version.
5. To change the base directory and var directory locations during the
installation, type the following command:
rpm -ivh --relocate /usr/local/avamar=install_path --
relocate /var/avamar=var_path AvamarRMAN-linux-platform-
version.rpm
where:
l install_path is the new directory.
l var_path is the new var directory.
l platform is the Linux system type.
l version is the Avamar software version.
where:
l platform is the Linux platform type.
l version is the Avamar software version.
where:
l install_path is the installation directory that you specified when you installed
the earlier version of the Avamar Plug-in for Oracle software.
l platform is the Linux platform type.
l version is the Avamar software version.
5. To upgrade the software and use a nondefault var directory, type the following
command:
rpm -Uvh --relocate /var/avamar=var_path AvamarRMAN-linux-
platform-version.rpm
where:
l var_path is the var directory that you specified when you installed the
earlier version of the Avamar Plug-in for Oracle software.
l platform is the Linux platform type.
l version is the Avamar software version.
The rpm -Uvh command automatically uninstalls the earlier version of the
Avamar Plug-in for Oracle, and then installs the new version.
Note
To install the Avamar Plug-in for Oracle on a Solaris cluster (VCS), skip this procedure
and continue with Installing the Avamar Plug-in for Oracle on a Solaris cluster on page
42.
Procedure
1. Log in to the Oracle server as root.
2. Change the directory to the temporary directory by typing the following
command:
cd /tmp
3. Install the Avamar Plug-in for Oracle by typing the following commands:
pkgadd -d AvamarRMAN-solaris10-platform-version.pkg
where:
l platform is the Solaris platform type.
l version is the Avamar version number.
Note
To install the Avamar Plug-in for Oracle on a stand-alone Solaris system, skip this
procedure and complete Installing the Avamar Plug-in for Oracle on a stand-alone
Solaris on page 41.
Procedure
1. Log in to the active VCS node as root.
2. Change the directory to the temporary directory by typing the following
command:
cd /tmp
where:
l platform is the Solaris platform type.
l version is the Avamar version number.
cd /opt/AVMRclusclnt/bin/
./avclusinstall
1. oraclegrp
Select an option:
7. Type 1 and press Enter.
The following output appears in the command shell:
Selected service group: oraclegrp
Group State
oraclegrp PARTIAL
Enter the resource name of Avamar application for selected
service group (Default: avagent_oraclegrp):
Note
The state of oraclegrp can be either ONLINE or PARTIAL. Usually the state
is ONLINE.
8. Type the resource name of the Avamar application and press Enter.
The following output appears in the command shell:
Available mount Resources:
1. oramnt (Mount point: /fsclus01)
Selected mount resource: oramnt
Do you want to install Avamar Client Plugin for Oracle
RMAN? (y/n)[y]:
9. Type y and press Enter.
The following output appears in the command shell:
Enter the hostname or dns alias associated with virtual-ip
(15.16.140.13):
10. Type the hostname or DNS alias and press Enter.
The following output appears in the command shell:
Active node detected
=== Client Registration and Activation
This script will register and activate the client with the
Administrator server.
Using /opt/AVMRclusclnt/cluster/oraclegrp/var as the var
dir
for the group oraclegrp avagent
Enter the Administrator server address (DNS text name or
numeric IP address, DNS name preferred):
Note
The hostname or DNS alias must match the hostname specified by the HOST
parameter in the tnsnames.ora and listener.ora files.
11. Type the hostname (defined in DNS) or IP address for the Administrator server
and press Enter.
The following output appears in the command shell:
Enter the Avamar server domain [clients]:
12. Type the domain name and press Enter.
The following output appears in the command shell:
where:
(sparc) 7.2.100-nnn
2 AVMRrman Avamar Client Plugin for Oracle RMAN
(sparc) 7.2.100-nnn
3. To uninstall the software, type the following command:
pkgrm package_name
2. Go to the temporary directory that contains the installation files that you
downloaded in Downloading the software on page 33.
3. Start the Avamar Plug-in for Oracle installation:
l If UAC is disabled, double-click the installation package to open it.
l If UAC is enabled, open a command prompt as an administrator, change
directory to the location of the installation package, and then type the
following command:
msiexec /i AvamarRMAN-windows-platform-version.msi
where:
n platform is the Windows platform type.
n version is the Avamar software version.
The welcome page appears.
4. Click Next.
The Ready to install Avamar Backup Plug-in for Oracle page appears.
5. Click Install.
The Installing Avamar Backup Plug-in for Oracle page appears. A status bar
shows the installation’s progress. After the installation completes, the
Completed the Avamar Backup Plug-in for Oracle Setup Wizard page
appears.
6. Click Finish.
7. In a cluster, repeat this installation procedure on each node.
The Cluster Nodes page appears with a list of nodes and their status.
5. Ensure that the status of all nodes is Up, and then click Next.
The Operations page appears.
6. Select the Configure new Oracle Virtual Client for cluster option, and then
click Next.
Note
Select the Use existing configuration to configure new nodes for Oracle
Virtual Clients on cluster option to add a node to an existing configuration.
The Avamar for Windows Server User Guide provides more information.
Note
Port 28001 is the default port that the Avamar client uses to communicate
with the Avamar server.
d. Type the name of the shared network directory or volume in the Cluster
client’s var directory box or click Browse to select a shared network
directory or volume.
The shared network directory or volume stores the cluster client
configuration and the log files. All nodes in the cluster must have write
access to this directory or volume.
Note
Select a volume that the cluster owns instead of a remote pathname on the
network.
e. Click Next.
The Summary page appears.
11. Review the configuration settings, and then click Configure.
The Progress page provides the status of the configuration. When the
configuration process completes, the Results page appears.
12. Click Close.
2. Install the new version of the Avamar Client for Windows and Avamar Plug-in
for Oracle:
a. Install the Avamar Client for Windows in the same directory on each node in
the cluster. The Avamar for Windows Server User Guide provides instructions.
Note
If the Oracle software is installed with the New Windows User, ensure that
the Avamar Plug-in for Oracle software is installed outside of the default
path. For example, C:\Program Files\avs.
b. Install the Avamar Plug-in for Oracle in the same directory on each node in
the cluster. Installing the Avamar Plug-in for Oracle on Windows on page 47
provides instructions.
c. Register each node in the cluster with the Avamar server. The Avamar for
Windows Server User Guide provides instructions.
d. Use the Cluster Configuration Tool to install the Avamar cluster client on an
active node. Configuring the Avamar cluster client on Windows on page 48
provides instructions.
Note
Including Oracle database files with the file system backup consumes storage space in
the Avamar system and increases network traffic during the nightly backup window.
Create a dataset that excludes the entire root directory branch for each Oracle
instance, and then assign the dataset to the Avamar client. For example, if the full
pathname of a database instance is /space/local/oracle/ora901, exclude this
directory in the Avamar dataset.
Procedure
1. Open the oratab file in a text editor and note the home directory for all Oracle
database instances.
a. Select Enter Explicitly and select the plug-in from the Select Plug-In Type
list.
b. To remove a plug-in from the dataset, select the plug-in from the list in the
bottom portion of the New Dataset dialog box, and then click -. Repeat this
step as necessary.
Note
The Avamar Plug-in for Oracle does not support include or exclude lists in
datasets.
6. Click the Options tab and select the plug-in from the Select Plug-In Type list.
The windows expands to display plug-in options.
7. Complete the following fields:
a. Leave the Oracle instance name field blank. The Oracle instance name is
filled in when the Oracle server is assigned to a group.
b. (Optional) For Oracle 12c and later, if the Oracle user has SYSBACKUP
privileges (instead of SYSDBA), select SYSBACKUP privilege.
c. Type the username to use to authenticate the Oracle database in the
Username field. If you leave the Username field blank, RMAN tries to log in
with the same username and password that the Avamar client agent uses,
and attempts to assume SYSDBA (or SYSBACKUP) privileges.
d. Type the password for the account in the Password field.
e. Click OK.
The New Dataset dialog box closes. The new dataset appears in the left
pane of the Manage All Datasets window.
8. Click OK.
The Manage All Datasets window closes.
9. In Avamar Administrator, click the Policy launcher link button.
The Policy window appears.
10. Click the Policy Management tab.
11. Click the Clients tab.
The left pane contains a list of domains.
Note
We recommend that you configure a shared var directory. The Avamar Plug-in for
Oracle supports automatic failover for the Avamar agent if the active node goes down,
regardless of whether the var directory is a shared. However, if there be
configurations with non-shared var directories, the Avamar logs are saved only on
local node.
where vlrac1 is the scan name for Oracle grid 11g R2.
5. Press Enter to accept the default virtual hostname.
The following output appears in the command shell:
Using vlrac1 as hostname
6. Repeat steps 2 through 5 on the other nodes.
--disable_nonlocal_listenport
--disablegui
6. If the var directory is not shared, repeat steps 4 on page 57 and 5 on page 58
for all nodes.
7. Restart the avagent process for RAC by typing the following command:
crsctl start resource EMCagent
Note
6. If the var directory is not being shared, copy the files /usr/local/avamar/
ora_rac/var/cid.bin and /usr/local/avamar/ora_rac/var/
avagent.cfg from this node into the same directory on all the other nodes.
You do not need to do this step if the var directory is being shared.
Results
Once you register the Avamar client with the Avamar server, start.sh runs and
starts EMCagent as an Oracle Clusterware resource on the current node. Backups
and restores connect to the RAC database instance on the active node. If the active
node goes down, EMCagent automatically restarts on one of the other RAC nodes.
The new node then automatically notifies Avamar server of the address change for the
active node.
3. Stop EMCagent and remove it from the Oracle Clusterware resources by typing
the following command:
./rac_stop
Results
The rac_deconfig script deletes the Avamar_install_dir/ora_rac directory.
Note
We recommend that you configure a shared var directory. The Avamar Plug-in for
Oracle supports automatic failover for the Avamar agent if the active node goes down,
regardless of whether the var directory is a shared. However, if there be
configurations with non-shared var directories, the Avamar logs are saved only on
local node.
Running AvamarRACConfiguration.exe
AvamarRACConfiguration.exe is installed as part of the Avamar Plug-in for
Oracle installation and is located in C:\Program Files\avs\bin. To configure
Oracle RAC on Windows Server 2008, run AvamarRACConfiguration.exe on one
Oracle cluster node.
Procedure
1. Log in to one of the Oracle cluster nodes as an administrator.
2. Double-click C:\Program Files\avs\bin
\AvamarRACConfiguration.exe.
The Setup Avamar RAC Configuration for Windows dialog box appears.
3. Select the correct name from the Choose Oracle RAC Scan Name/Virtual list:
l For Oracle 11g R1, select the virtual hostname.
l For Oracle 11g R2, select the scan name.
4. Type the full pathname and folder name for the var folder in the Var folder
field.
To browse the file system for the var folder, click Browse and select the var
folder from the File Open dialog box.
5. Select the Shared checkbox if the var folder is a shared folder or disk.
Note
6. Type the DNS hostname or IP address for the Avamar server in the
Administrator server hostname or IP field.
7. Type the port for the Avamar server in the Administrative server listen port
field. The default value is 28001.
8. Type the domain name in the Backup domain for this client field. The default
value is clients.
9. Select one or more nodes from the Available Nodes box.
To select multiple entries, press and hold the Ctrl key while you select entries
with the mouse.
10. Click Configure.
After you finish
To ensure that backups using the RMAN CLI backups are viewable in the Avamar
Administrator Activity window, copy the avoracle.cmd file from ../ora_rac/
var/ to ../ora_rac/var/clientlogs/. The following options must be present in
avoracle.cmd:
l --rac_cluster
l --hostname = cluster scan name
7. Click Register.
8. After the registration completes, start the EMCagent on any of the Clusterware
nodes by typing one of the following commands:
l For Oracle 11g R1, type the following command:
crs_start EMCagent
l For Oracle 11g R2, type the following command:
crsctl start resource EMCagent
cd /usr/local/avamar/bin
where:
l database_name is the name of the single-instance database.
l resource is the resource which controls the failover of the single-instance
database (for example, ora.dbsi1.db).
l shared_directory is a shared directory (for example, /cluster_share/).
l node_names is a space-separated list of the names of the nodes on which
the single-instance database is configured.
Example command line:
Note
4. Enter the client name or press Enter to accept the default selection:
5. If ssh autologin is not set up for the root user, you will be prompted to enter
the root password for each remote node:
root@node_name's password:
Note
Note
Management Console-initiated backups and restores are sent to the node where the
EMCagent_database_name is running. If the database instance fails over to another
node, the EMCagent_database_name resource is failed over to that node as well. The
new node then automatically notifies the Avamar server of the address change for the
active node.
root@node_name's password:
After a successful lookup, if the database has not been configured before,
nodes are listed under Available Nodes.
a. For Var Folder, type a var directory or click Browse to select one.
Note
Note
The Setup Avamar for Oracle Single-Instance Database dialog box opens.
Figure 9 Setup Avamar for Oracle Single-Instance Database dialog
Backup 75
Backup
Note
where filename is the absolute pathname of the file to be used for Block
Change Tracking. Oracle uses this file to track datafile changes. Oracle
documentation provides more information about Block Change Tracking.
Note
ARCHIVELOG mode, you must use the alter database archivelog command to
set it.
Procedure
1. Connect to the database by typing the following command:
sqlplus "/ as sysdba"
If archiving is not set for the database, screen output similar to the following
output appears:
LOG_MODE
----------
NOARCHIVELOG
3. Shut down the database by typing the following command:
shutdown immediate;
Note
h. (Linux and UNIX only) If the application bitness and OS bitness are not the
same, select the appropriate setting from the Media Management Library
Bitwidth list.
If the application bitness and OS bitness are the same, leave the Media
Management Library Bitwidth set to Automatic, the default setting.
Note
i. Select Exit a multiple target backup when any one backup fails to
prevent a multiple target backup from continuing after one of the backups
fails.
j. Type the number of files that RMAN can open concurrently per channel in
the Filesperset field. The default value is 1.
k. (Advanced option) Do not select the Enable debugging message option.
This option is for troubleshooting backup problems. When you select the
Enable debugging messages option, the Avamar Plug-in for Oracle creates
large log files.
l. (Advanced option) Leave the NLS_DATE_FORMAT field blank.
m. (Advanced option) Select the appropriate option from the Enhanced Data
Deduplication list:
l To use the global enhanced data deduplication setting already set on the
server, select Default. This is the default setting.
l To back up the datafiles without using enhanced data deduplication,
select Disabled.
l To use enhanced data deduplication for the backup, select Enabled.
Note
The Avamar Plug-in for Oracle supports incremental (level 0 and level 1)
backups for Oracle 11g and later. To improve level 1 (differential or
cumulative) backup performance, enable the Block Change Tracking
feature. Enabling Block Change Tracking on page 76 provides more
information.
o. (Optional) If you use a recovery catalog, select Use recovery catalog and
complete the following fields:
l Type the recovery catalog service entry in the Recovery Catalog Server
Name field.
l Type the recovery catalog username in the Recovery Catalog User
Name field.
Note
The Use recovery catalog option uses the values in the Recovery Catalog
Server Name, Recovery Catalog User Name, and Recovery Catalog
Password fields to form a recovery catalog server connection string for
RMAN.
r. Select Store backup on Data Domain system to store the backup on a Data
Domain system instead of the Avamar server, and then select the Data
Domain system from the list.
s. From the Encryption method to Data Domain system list, select the
encryption method to use for data transfer between the client and the Data
Domain system during the backup.
t. Click OK to close the Backup Command Line Options dialog box.
12. Click OK to close the On Demand Backup Options dialog box.
The following status message appears:
Backup initiated.
13. Click OK.
Scheduling backups
Scheduled backups run automatically to ensure that backups of the Oracle data occur
on an ongoing basis. You can schedule backups to run daily, weekly, or monthly. The
scheduled backup can include multiple clients or a single server.
Procedure
1. Create a dataset for the backups.
2. Create a group for the backups.
During the group creation process:
Creating a dataset
A dataset specifies the data to include in a scheduled backup and the options to use
for the backup. Create at least one dataset for scheduled backups on a client or group
of clients. Create multiple datasets to segregate client data.
Procedure
1. In Avamar Administrator, select Tools > Manage Datasets.
The Manage All Datasets window appears.
2. Click New.
The New Dataset dialog box appears.
3. In the Name box, type a name for the dataset.
The name can include alphanumeric characters (A-Z, a-z, 0-9) and the following
special characters: period (.), hyphen (-), and underscore (_). Do not use
Unicode characters or the following special characters: ` ~ ! @ # $ % ^ & * ( )
=+[]{}|\/;:'"<>,?
4. On the Source Data tab, select Enter Explicitly.
5. Select the Oracle RMAN plug-in for the platform from the Select Plug-In Type
list.
6. Click ... (the Browse for files and/or folders button).
The Select Files and/or Folders dialog box appears.
7. Set the options in the Select Files and/or Folder dialog box:
a. Select the domain to view the clients.
A list of clients appears below the domain.
b. Select the client that runs the Oracle server.
A list of plug-ins appear in the pane to the right of the client’s list.
e. Click OK.
The Select Files and/or Folders dialog box closes and the New Dataset
dialog box lists the files, folders, or databases that you selected.
8. Remove all items from the source data list other than the Oracle databases:
a. Select an entry from the list.
b. Click -.
c. Repeat steps a and b to remove all other entries.
After removing non-database items, the Source Data tab should look similar to
the following figure.
Figure 12 New Dataset window
9. Leave the Inclusion and Exclusion tabs as they are. The Avamar Plug-in for
Oracle does not support include or exclude lists.
Creating a dataset 83
Backup
10. Click the Options tab and set the plug-in options:
a. Select the Oracle RMAN plug-in from the Select Plug-In Type list.
The Oracle RMAN plug-in options appear.
b. Select Show Advanced Options to view advanced options.
c. Leave the Oracle Instance Name field blank. The Avamar Plug-in for Oracle
determines the Oracle instance name when you browse and select a target
to back up.
d. (Optional) For Oracle 12c and later, if the Oracle user has SYSBACKUP
privileges (instead of SYSDBA), select SYSBACKUP privilege.
e. Type the username to use to authenticate the Oracle database in the
Username field. This feature is the user with SYSDBA (or SYSBACKUP)
privileges.
f. Type the password for the username account in the Password field.
g. Select the number of channels to allocate during the backup from the
Number of RMAN Channels list. The maximum number is 10.
Backup options on page 132 provides more information about the Number
of RMAN Channels option.
Note
i. (Linux and UNIX only) If the application bitness and OS bitness are not the
same, select the appropriate setting from the Media Management Library
Bitwidth list. If the application bitness and OS bitness are the same, leave
the Media Management Library Bitwidth set to the Automatic, the default
setting.
Note
j. (Optional) Select Exit a multiple target backup when any one backup fails
to prevent a multiple target backup from continuing after one of the backups
fail.
k. Type the number of files that RMAN can open concurrently per channel in
the Filesperset field. The default value is 1.
Note
The Avamar Plug-in for Oracle supports incremental (level 0 and level 1)
backups for Oracle 11g and later. To improve level 1 (differential or
cumulative) backup performance, enable the Block Change Tracking
feature. Enabling Block Change Tracking on page 76 provides more
information.
m. (Optional) If you use a recovery catalog, select Use recovery catalog and
complete the following fields:
l In the Recovery Catalog Server Name field, type the recovery catalog
service entry.
l In the Recovery Catalog User Name field, type the recovery catalog
username.
l In the Recovery Catalog Password field, type the recovery catalog
password.
Note
If you select the Use recovery catalog option, the Recovery Catalog
Server Name, Recovery Catalog User Name, and Recovery Catalog
Password settings are used to specify a recovery catalog server connection
string for RMAN.
n. To store the backup on a Data Domain system instead of the Avamar server,
select Store backup on Data Domain system, and then select the Data
Domain system from the list.
Note
Plug-in Options on page 131 provides more information about the Avamar
Plug-in for Oracle plug-in options, including information about advanced
options.
o. From the Encryption method to Data Domain system list, select the
encryption method to use for data transfer between the client and the Data
Domain system during the backup.
11. Click OK to close the New Dataset dialog box.
The new dataset is added to the list of datasets in the Manage All Datasets
window.
Creating a dataset 85
Backup
Creating a group
When you create a group, you define the dataset, schedule, and retention policy,
which together comprise the group policy for scheduled backups of all members of the
group. A group must contain at least one Avamar client. When the group contains two
or more clients, the clients must belong to the same Avamar domain. You can override
group policy settings at the client level.
You cannot edit schedules or retention policies when you use the New Group wizard
to create a group. Review existing schedules and retention policies. If required, create
new ones before you create the group. Avamar Administration Guide provides
information about schedules or retention policies.
Procedure
1. In Avamar Administrator, click the Policy launcher link button.
The Policy window appears.
2. Click the Policy Management tab.
3. Click the Groups tab.
4. Select the domain for the group.
The Policy window displays a table that contains groups for the domain.
5. Select Actions > Group > New > Backup Group.
The New Group wizard appears.
6. Type a name for the new group in the Name box.
The name can include alphanumeric characters (A-Z, a-z, 0–9) and the
following special characters: period (.), hyphen (-), and underscore (_). Do not
use Unicode characters or the following special characters: ` ~ ! @ # $ % ^ & *
()=+[]{}|\/;:'"<>,?
7. To use this group for scheduled client backups, clear the Disabled checkbox.
Selecting the checkbox disables backups for the group.
8. From the Avamar encryption method list, select the encryption method to use
for client/server data transfer during this backup.
The encryption technology and bit strength for a client/server connection
depend on several factors, including the client operating system and Avamar
server version. The Avamar Product Security Guide provides additional
information.
9. Select the dataset you created from the Select an Existing Dataset list, then
and click Next.
The next New Group page appears with schedule information.
10. Select a schedule from the Select an Existing Schedule list, and then click
Next.
The next New Group page appears with retention policy information.
11. Select a retention policy from the Select an Existing Retention Policy list, and
then click Next.
The final New Group page appears. A list of domains appears in the Choose
Domain pane.
Monitoring backups
You can monitor backups to ensure that the backups complete successfully and to
troubleshoot issues. The Activity Monitor in Avamar Administrator enables you to
view status information for both on-demand and scheduled backups.
Procedure
1. In Avamar Administrator, click the Activity launcher link.
The Activity window appears.
2. Click the Activity Monitor tab.
A list of all activities appears.
3. To filter the results to display only backup activity, select Actions > Filter.
The Filter Activity dialog box appears.
4. Select All Backups from the Type list.
5. Click OK.
Canceling backups
You can cancel a backup at any time before it completes. The cancellation can take
five minutes or more. The backup might complete before the cancellation finishes.
Procedure
1. In Avamar Administrator, click the Activity launcher link.
The Activity window appears.
2. Click the Activity Monitor tab.
A list of all activities appears.
3. Select the backup from the list.
4. Select Actions > Cancel Activity.
A confirmation message appears.
5. Click Yes.
Restarting the backup after the active node’s instance goes down
Procedure
1. Establish the active node by taking the appropriate action:
l Restarting the instance on the active node.
l Shutting down the current active node to enable one of the other nodes as
the active node.
2. Start a new backup.
Note
Note
For configurations in which you store the database on a raw file structure,
Oracle recommends that you use a normal file system as the flash recovery
area.
$ORACLE-SID must point to the correct system identifier to restore the Oracle
database.
sqlplus “/ as sysdba”
shutdown immediate;
exit
startup nomount;
exit
mkdir $ORACLE_HOME/oradata/DB_NAME.saved
mv $ORACLE_HOME/oradata/DB_NAME/* \
$ORACLE_HOME/oradata/DB_NAME.saved
mkdir $ORACLE_HOME/flash_recovery_area/DB_NAME.saved
mv $ORACLE_HOME/flash_recovery_area/DB_NAME/* \
$ORACLE_HOME/flash_recovery_area/DB_NAME.saved
Note
The Oracle files can be in the default location or in a nondefault location. The
default location of Oracle files varies depending on the version of Oracle. The
previous commands use the default values for the directories.
mkdir $ORACLE_HOME/flash_recovery_area/db_name.saved
mv $ORACLE_HOME/flash_recovery_area/db_name/* \
$ORACLE_HOME/flash_recovery_area/db_name.saved
Note
The following directories are the default directories of the datafiles (*.dbf),
control files (*.ctl), redo log files (*.log), archive log files (*.arc), and
autobackup files (*.bkp):
l $ORACLE_HOME/oradata/DB_NAME
l $ORACLE_HOME/flash_recovery_area/DB_NAME
Note
If the Oracle directories have been deleted or do not exist, create the directory
structure before restoring the database.
Restore types
Avamar Administrator supports the restore of a database backup from one system to
another system or directory on the same system. The restore uses the same Oracle
system identifier (SID) and database identification number (DBID) of the original
database for the restored database.
Note
After preparing the database, you can restore database files to the original client or to
a different client.
A list of Avamar clients appears in the pane below the domains list.
4. From the list of clients, select the client that runs the Oracle server.
5. Click the By Date tab.
6. Select the backup date from the calendar. Valid backups occurred on dates with
a yellow highlight.
A list of backups that were performed on that date appears in the Backups
table next to the calendar.
7. Select a backup from the Backups table.
The backup contents appear in the Contents of Backup pane.
8. Expand the folders in the Contents of Backup pane to display database SIDs.
Note
Note
You must select a control file for the restore to complete successfully.
The following figure shows the Backup, Restore and Manage window after
selecting a database and a control file.
g. Select the number of channels to allocate during the restore from the
Number of RMAN Channels list. The maximum number is 10.
h. (Optional) Select Exit a multiple target restore when any one restore
fails to prevent a multiple target restore from continuing after one of the
restore operations fails.
i. (Advanced option) Do not select the Enable debugging message option.
This option is for troubleshooting restore problems. When you select the
Enable debugging messages option, the Avamar Plug-in for Oracle creates
large log files.
j. (Advanced option) Type a timestamp format for the target database in the
NLS_DATE_FORMAT field.
k. From the Encryption method from Data Domain system list, select the
encryption method to use for data transfer between the Data Domain
system and the client during the restore.
l. Select a Recovery Type:
l To recover the database to the present time or to a point-in-time in the
past, select Point-in-Time (PIT).
Do not select multiple databases for a point-in-time recovery. You must
select only one database for the restore.
l To recover data blocks from the flash recovery area, select Flashback
Database (FRA).
You must configure flash recovery area before you can use the
Flashback Recovery (FRA) recovery type. Configuring Flashback
Database recovery on page 90 provides more information.
l (Advanced option) To restore corrupt blocks only, and not the entire
database, select Corrupt blocks.
To use the Corrupt blocks recovery option, you must set the
DB_BLOCK_CHECKSUM initialization parameter to TYPICAL for the Oracle
database. The database must be in a mounted or open state.
n. Select an option from the Recovery mode list for the selected recovery
type.
Recovery modes and values on page 140 provides more information about
the Recovery mode options.
o. Specify the SCN, log sequence number, or timestamp in the Recovery value
field. This value depends on the option you select from the Recovery mode
list.
p. To open the database after the recovery finishes, select Open the database
with resetlogs after recovery.
This option is selected by default.
Clear the Open the database with resetlogs after recovery option to
disable this option. When you clear this option, the restore operation does
not open the database with resetlogs. You can then apply archive logs to
recover the database to the most current point-in-time that is available.
15. (Optional) Specify other advanced options in the Restore Command Line
Options dialog box as appropriate:
a. To run a user-defined script at the beginning of the restore, type the script
name in the Run user-defined script at beginning of restore field.
The script must be in the avamar\etc\scripts directory on the client.
b. Select Exit restore if script fails to stop the script from processing when
the script returns a non-zero status code.
This option is selected by default.
c. To run a user-defined script at the end of the restore, type the script name
in the Run user-defined script at end of restore field.
The script must be in the avamar\etc\scripts directory on the client.
d. Select Exit process with script failure exitcode to exit the script when it
fails with an exitcode from the script rather than an exitcode from the
Avamar Plug-in for Oracle.
This option is selected by default.
Note
Precede all attributes you type in the Enter Attribute field with
[avoracle].
where:
l language specifies the language. For example, Japanese.
l territory specifies the country. For example, Japan.
l charset specifies the character set. For example, JA16SJIS.
Note
Note
If the restore process fails, manual recovery steps can be necessary. Restore
fails to complete successfully on page 155 provides details.
19. (Solaris only) Restart the listener and other dependent processes if you
restored a database to a Solaris VCS cluster.
A list of Avamar clients appears in the pane below the domains list.
5. From the list of clients, select the client that runs the Oracle server.
6. Click the By Date tab.
7. Select the backup date from the calendar. Valid backups occurred on dates with
a yellow highlight.
A list of backups that were performed on that date appears in the Backups
table next to the calendar.
8. Select a control file backup.
The backup contents appear in the Contents of Backup pane.
9. Expand the folders in the Contents of Backup pane to display database SIDs.
Note
The following figure shows the Backup, Restore and Manage window after
selecting databases and a control file.
Figure 14 Backup, Restore and Manage window
d. Click Browse.
The Browse for File, Folder, or Directory dialog box appears.
e. Select the target destination for the restore, and then click OK.
The target appears in the Save Target(s) in Directory field.
f. Click OK to close the Set Destination dialog box.
In the Restore Options dialog box, the Destination column in the Items
Marked for Restore table contains the target destination.
g. Click More Options.
The Restore Command Line Options dialog box appears.
13. Set the plug-in options:
a. Select Show Advanced Options to view advanced options.
b. Leave the Oracle Instance Name field blank. The Avamar Plug-in for Oracle
determines the Oracle instance name when you browse and select a
database to restore.
c. (Optional) For Oracle 12c and later, if the Oracle user has SYSBACKUP
privileges (instead of SYSDBA), select SYSBACKUP privilege.
d. Type the username to use to authenticate the Oracle database in the User
Name field. This is the user with SYSDBA (or SYSBACKUP) privileges.
e. Type the password for the account In the Password field.
f. (Linux and UNIX only) If the application bitness and OS bitness are not the
same, select the appropriate setting from the Media Management Library
Bitwidth list.
If the application bitness and OS bitness are the same, leave the Media
Management Library Bitwidth set to the Automatic (default).
g. Select the number of channels to allocate during the restore from the
Number of RMAN Channels list. The maximum number is 10.
h. (Optional) Select Exit a multiple target restore when any one restore
fails to prevent a multiple target restore from continuing after one of the
restore operations fails.
i. (Advanced option) Do not select the Enable debugging message option.
This option is for troubleshooting restore problems. When you select the
Enable debugging messages option, the Avamar Plug-in for Oracle creates
large log files.
j. (Advanced option) Type a timestamp format for the target database in the
NLS_DATE_FORMAT field.
k. From the Encryption method from Data Domain system list, select the
encryption method to use for data transfer between the Data Domain
system and the client during the restore.
l. Select a Recovery Type:
l To recover the database to the present time or to a point-in-time in the
past, select Point-in-Time (PIT).
Do not select multiple databases for a point-in-time recovery. You must
select only one database for the restore.
l To recover data blocks from the flash recovery area, select Flashback
Database (FRA).
You must configure flash recovery area before you can use the
Flashback Recovery (FRA) recovery type. Configuring Flashback
Database recovery on page 90 provides more information.
l (Advanced option) To restore corrupt blocks only, and not the entire
database, select Corrupt blocks.
To use the Corrupt blocks recovery option, you must set the
DB_BLOCK_CHECKSUM initialization parameter to TYPICAL for the Oracle
database. The database must be in a mounted or open state.
n. Select an option from the Recovery mode list for the selected recovery
type.
Recovery modes and values on page 140 provides more information about
the Recovery mode options.
o. Specify the SCN, log sequence number, or timestamp in the Recovery value
field. This value depends on the option you select from the Recovery mode
list.
p. To open the database after the recovery finishes, select Open the database
with resetlogs after recovery.
This option is selected by default.
Clear the Open the database with resetlogs after recovery option to
disable this option. When you clear this option, the restore operation does
not open the database with resetlogs. You can then apply archive logs to
recover the database to the most current point-in-time that is available.
14. (Optional) Specify other advanced options in the Restore Command Line
Options dialog box as appropriate:
a. To run a user-defined script at the beginning of the restore, type the script
name in the Run user-defined script at beginning of restore field.
The script must be in the avamar\etc\scripts directory on the client.
b. Select Exit restore if script fails to stop the script from processing when
the script returns a non-zero status code.
This option is selected by default.
c. To run a user-defined script at the end of the restore, type the script name
in the Run user-defined script at end of restore field.
The script must be in the avamar\etc\scripts directory on the client.
d. Select Exit process with script failure exitcode to exit the script when it
fails with an exitcode from the script rather than an exitcode from the
Avamar Plug-in for Oracle.
This option is selected by default.
Note
Precede all attributes you type in the Enter Attribute field with
[avoracle].
where:
l language specifies the language. For example, Japanese.
l territory specifies the country. For example, Japan.
l charset specifies the character set. For example, JA16SJIS.
Note
Note
If the restore process fails, manual recovery steps can be necessary. Restore
fails to complete successfully on page 155 provides details.
18. (Solaris only) Restart the listener and other dependent processes if you
restored a database to a Solaris VCS cluster.
Monitoring restores
You can monitor restores to ensure that the restores complete successfully and to
troubleshoot issues. The Activity Monitor in Avamar Administrator enables you to
view status information for restores.
Procedure
1. In Avamar Administrator, click the Activity launcher link.
The Activity window appears.
2. Click the Activity Monitor tab.
A list of all activities appears.
3. To filter the results to display only restore activity, select Actions > Filter.
The Filter Activity dialog box appears.
4. Select Restore from the Type list.
5. Click OK.
Canceling restores
You can cancel a restore any time before the restore completes. The cancellation can
take five minutes or more. The restore might complete before the cancellation
finishes.
Procedure
1. In Avamar Administrator, click the Activity launcher link.
The Activity window appears.
2. Click the Activity Monitor tab.
A list of all activities appears.
Note
To resolve registration problems, retire the client and reregister it with the
Avamar server.
7. Restore the server parameter file (spfile) by using the following RMAN
script:
where:
Note
Do not include the avtar -c and -x options in the avtar flag file. The -c and -x
options might conflict with other avtar options that are specified for backup or
restore operations that Avamar Administrator runs.
Procedure
1. Create a plain text file with a text editor.
The remaining steps use my-avtar-flags.txt file as an example flag file.
2. Add the following entries to the text file:
--pidname=Oracle
--pidnum=pidnum
--logfile=install-dir/var/clientlogs/avtar.log
--vardir=install-dir/var/clientlogs
--id=user
--ap=password
--path=/clients/my-db-client
--expires={num-days |timestamp}
where:
l pidnum is the correct PID number for the operating system:
n For Linux, use PID 1002.
n For Solaris, use 2002.
n For Windows, use 3002.
3. To use an RMAN script to back up Oracle to Data Domain systems, add the
following Data Domain-specific entries:
--ddr=true
--ddr-index=ddr-index
where ddr-index is the index number (1, 2, 3, and so forth) that you assign to
the Data Domain system when you add it to the Avamar server configuration.
Note
If the backup is not to a Data Domain System, then add the following entry:
--ddr=false
4. Save the file to /oracle or another convenient place in the search path.
--no of channels=num
--operation=operation
where:
l num is the number of multiple channels that are run in parallel.
l operation is either backup or restore.
3. Save the file to /oracle or another convenient place in the search path.
Note
With a taskflag file, for most avtar processes the logfile name is generated
using the workorder ID from Management Console, and the --logfile
parameter in the avtar flag file is ignored.
where install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows.
where sizespec specifies the size of each backup section. For example: 250M.
The following example command creates a multisection backup of the database where
each backup piece is 250M:
Specify both the %d and %U together to obtain a unique name. For example: format
'%d_%U'.
RMAN compares the value of the maxopenfiles parameter with the number of
files in each backup set and uses the level of multiplexing as a minimum of two.
where n is the number of files RMAN includes in a backup set. The default value is
8.
Results
RMAN compares the value of the filesperset parameter with number of files to be
backed up divided by the number of allocated channels, and then uses the lower of the
two values. For example, if the total number of files to be backed up is 8, the number
of channels is 1, and filesperset is 4, RMAN creates two backup sets each with
four files.
Results
RMAN skips backups of offline or read-only datafiles only when there are r +1 backups
of the files to SBT.
speed, you can specify the --before, --after, and --nobackuptag flags with the
send command.
The Avamar Plug-in for Oracle runs the avtar --history command for each CLI
backup and for each backup a restore retrieves. When a backup or restore includes
hundreds of backups, the avtar --history command might take hours to run.
The avtar --history command supports two time-range CLI flags, as well as the
--nobackuptag flag:
l The --before flag instructs the avtar process to search only for backups that
were created before the time specified by the --before flag.
l The --after flag instructs the avtar process to search only for backups that
were created after the time specified by the --after flag.
l The --nobackuptag flag can improve performance because the Avamar Plug-in
for Oracle library, libobk_avamar.x, automatically sets the --backuptag flag
to search backups. This may cause slow restore performance due to avtar --
history failing and retrying. The --nobackuptag flag can be used to avoid
failing history searches.
The Avamar Plug-in for Oracle library, libobk_avamar.x, enables you to set the --
before, --after, and --nobackuptag flags for operations that perform an index
lookup. The libobk_avamar.x uses these flags to increase index lookup
performance.
Procedure
l Do not set the --before or --after flags for backups. The libobk_avamar.x
automatically sets these flags to the backup start time, which enables the backup
index lookup to search only for backups that are created after the backup began.
l Set the --before, --after, or --nobackuptag flags for restores with the
send command in an RMAN script. The following RMAN script shows how to set
these flags:
Use the following time format for the --before and --after flags:
YYYY-MM-DD HH:MM:SS
Note
The smaller the time range between the --before and --after flags, the faster
the searches.
l In addition to the --before and --after flags, use the --nohist flag to
disable all index lookups for all operations. Set the --nohist flag with the send
command in an RMAN script:
Results
When a backup or restore specifies all four flags, the --nohist flag takes
precedence. The --before and --after flags are ignored.
Note
Avamar uses the RMAN interface to perform hot and cold backups. RMAN requires
the Oracle database to be running to perform a hot backup.
Backing up a database
Procedure
1. Open a command shell.
Note
run {
configure controlfile autobackup on;
allocate channel c1 type sbt\
PARMS="SBT_LIBRARY=install-dir/lib/libobk_avamar.so"\
format '%d_%U';
set controlfile autobackup format for device type sbt\
to "CONTROLFILE.%F";
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--bindir=install-dir/bin"' "--taskfile=/oracle/taskfile.txt";
backup database plus archivelog;
release channel c1;
}
where install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows.
Backing up a tablespace
The following procedure uses an RMAN script to back up a tablespace to an Avamar
server or a Data Domain system.
An avtar flag file for the RMAN script that is specified in this procedure contains the
following entries:
--debug
--pidname=Oracle
--pidnum=3002
--logfile=install-dir/var/clientlogs/backupdb.log
--vardir=install-dir/var
--id=testuser@/clients/oraw2k864-mc2.bgl-avamar.emc
--password=testuser
--path=/clients/oraw2k864-mc2.bgl-avamar.emc
--server=avamar-1.emc.com
Note
To view the contents of a tablespace backup, use the list backup command. The
list backup command lists all the datafiles and the control file that are part of the
tablespace backup.
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Connect to the Oracle database to back up.
4. Back up the Oracle tablespace by typing commands similar to the following
RMAN commands:
run {
configure controlfile autobackup on;
In the sample script, the database name is ANT and the tablespace name is
ant_ts. The script backs up the tablespace and the database control file by
using the autobackup option.
Backing up a datafile
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Connect to the Oracle database to back up.
4. Back up the Oracle datafile by typing RMAN commands similar to the following
commands:
run {
configure controlfile autobackup on;
allocate channel c1 type sbt\
PARMS="SBT_LIBRARY=install-dir/lib/libobk_avamar.so"\
format '%d_%U';
set controlfile autobackup format for device type sbt\
to "CONTROLFILE.%F";
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--taskfile=/oracle/taskfile.txt"\
"--bindir=install-dir/bin"';
backup datafile "MyFile.dbf";
release channel c1;
}
where:
l install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux,/opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows, and so forth.
l MyFile.dbf is the Oracle datafile to back up.
Note
RMAN command line backups can only be restored through command line restores.
Restore of command line backups from the Avamar Administrator are not supported.
Restoring a database
To restore a database backup, you must specify a value from the control file name.
Backups you perform from RMAN use the format, c.DBID-DATE-SEQ, for the
control file name. Backups you perform with Avamar Administrator add a prefix to the
control file name.
You can modify the default RMAN format of the control file by passing directives to
RMAN scripts.
Avamar Administrator generates scripts that contain the RMAN directive, %F:
The %F directive combines the DBID, date, and sequence to form the following control
file name:
CONTROLFILE.c.DBID-DATE-SEQ
The sample scripts in this guide assume this format for the control file name.
The control file name contains a prefix when you use a backup that you created with
Avamar Administrator for the restore. You must then add the prefix to the send
command. The prefix must be the first directive. The following send command
specifies “11g/orcl” as the prefix for an Oracle 11g database with a SID of orcl:
The path that you specify by the --prefix option must contain a trailing slash (/).
The direction of the slash does not change on Windows platforms.
The following procedure uses an RMAN script to restore an Oracle control file and
database.
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Connect to the Oracle database to restore.
5. From the backup to be restored, retrieve the following information from the
control file:
a. Examine the database backup control file name.
b. Note the values for the following variables:
l DATE
l DBID
l SEQ
Use the values of the DATE, DBID, and SEQ variables in the RMAN restore
script.
6. Restore the Oracle control file by typing the following RMAN commands:
set dbid=DBID;
set controlfile autobackup format for device type sbt to\
'CONTROLFILE.%F';
run {
allocate channel c1 type sbt\
PARMS="SBT_LIBRARY=install-dir/lib/libobk_avamar.so"\
format '%d_%U';
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--taskfile=/oracle/taskfile.txt"\
"--bindir=install-dir/bin"';
restore controlfile from autobackup MAXSEQ=SEQ\
until time = "TO_DATE('DATE','YYYYMMDD')";
startup mount;
release channel c1;
list backup;
}
where:
l DBID is the database ID.
l install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows.
l YYYYMMDD is a date.
The restore process copies the control file and puts the database in a mount
state. A list of available database backups and corresponding system change
numbers (SCN) appears in the command shell
7. Locate and note the SCN that corresponds to the backup to use for the recover
process:
l To recover an archive log backup, locate and note the next SCN for the
archive log.
l To recover from a database backup, locate and note the SCN for the
database.
Note
In general, database control files are small and it is highly recommended a single
channel is used for restoring the control file for achieving better performance.
run {
allocate channel c1 type sbt PARMS="SBT_LIBRARY=install-dir\
/lib/libobk_avamar.so" format '%d_%U';
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--taskfile=/oracle/taskfile.txt"\
"--bindir=install-dir/bin"';
set until scn scn;
restore database;
recover database;
release channel c1;
}
alter database open resetlogs;
where:
l scn is the next SCN value (noted in step 7) for the archive log recovery or
the SCN value for the database.
l install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows.
Note
If the restore process fails, you might need to perform manual recovery steps.
ORA-19870: error while restoring backup piece on page 154 provides more
information.
Restoring a tablespace
You can use an RMAN script to restore a tablespace from an Avamar server or a Data
Domain system.
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Connect to the Oracle database to restore.
run {
allocate channel c1 type sbt\
PARMS="SBT_LIBRARY=install-dir/lib/libobk_avamar.so"
format '%d_%U';
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--taskfile=/oracle/taskfile.txt"\
"--bindir=install-dir/bin"';
restore tablespace "USERS";
recover tablespace "USERS";
release channel c1;
}
where:
l install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows, and so forth.
l USERS is the tablespace to restore.
The list backup command lists information similar to the following output:
From the list backup command's output, note the values for the DB ID,
MAXSEQ, SCN, and timestamp parameters. For example, the sample output
includes the following parameters values:
l DB ID is 107988049.
l Control file MAXSEQ number is 0e (14 in decimal).
l SCN is 1935412.
l Timestamp is 20121007T232335.
You use these parameters in the tablespace restore script.
4. Remove the tablespace datafiles and the control file from the oradata
directory.
5. Type the following SQL*Plus command to start the Oracle instance in nomount
mode:
startup nomount;
6. Run the restore script to restore the control file. Then run the script that
restores the tablespace. For more information about the restore scripts, review
the following sample scripts:
l Sample script to restore the control file on page 121
l Sample script to restore the tablespace by using an SCN on page 121
l Sample script to restore the tablespace by using a timestamp on page 121
8. Run the RMAN command to reset logs and open the database:
alter database open resetlogs;
Restoring datafiles
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Connect to the Oracle database to restore.
4. Restore the Oracle datafile by typing the following RMAN commands:
run {
allocate channel c1 type sbt\
PARMS="SBT_LIBRARY=install-dir/lib/libobk_avamar.so"\
format '%d_%U';
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--taskfile=/oracle/taskfile.txt"\
"--bindir=install-dir/bin" "--labelnum=num"';
restore datafile "MyFile.dbf";
recover datafile "MyFile.dbf";
release channel c1;
}
where:
l install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows.
l num is the backup number from which you want to restore.
l MyFile.dbf is the Oracle datafile you want to restore.
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Restore the Oracle database by typing the following RMAN commands:
where:
l user and passwd are the credentials for the recovery catalog (CATALOG).
l install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows, and so forth.
Ensure that the RMAN retention period and the Avamar retention policy are as
close as possible to the same length of time.
Crosschecking backups
The crosscheck command verifies that backups on the Avamar server exist. RMAN
marks the backup as available or expired upon successful completion of this command.
When the crosscheck command is unable to connect to the Avamar server, the
operation fails.
When you back up a database from Avamar Administrator, the Avamar Plug-in for
Oracle adds a prefix to the name of the backup file. To crosscheck this type of a
backup, ensure that you add the prefix to the avtar flag file. The prefix that you
specify by the avtar flag file must match the prefix of the Avamar Administrator
backup.
Note
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to and RMAN prompt.
3. Connect to the Oracle database.
4. Verify a backup by typing the following RMAN commands:
where install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows, and so forth.
Deleting backups
To delete backups, the Avamar user account must have the delete privilege. This
user account is the account that corresponds to the --id value in the avtar flag file.
When you run the delete command from an account that does not have the delete
privilege, the avtar program issues a warning, not an error.
Before you begin
Note
The following procedure requires an avtar flag file. Creating an avtar flag file on page
106 provides more information.
To add the delete privilege to the Avamar user account, use the avmgr command:
avmgr chgv --u=name --pv=delete
where name is the name of the user account.
Note
The delete command deletes expired backups from the Avamar server if the backups
are marked as obsolete. Use the delete command only to manage RMAN backups.
The use of the delete command to manage backups that are originally created by
Avamar Administrator can cause unpredictable system behavior.
Procedure
1. Open a command shell.
2. Log in to Oracle RMAN by using the Oracle user ID and password.
The command prompt changes to an RMAN prompt.
3. Connect to the Oracle database.
4. Delete an expired backup by typing the following RMAN commands:
run {
allocate channel c1 type sbt
PARMS="SBT_LIBRARY=/install-dir/lib/libobk_avamar.so";
send '"--flagfile=/oracle/my-avtar-flags.txt"\
"--bindir=/usr/local/avamar/bin"';
delete expired backupset;
}
where install-dir is the base installation directory for the platform. For example,
specify /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, C:
\Progra~1\avs\bin on Windows, and so forth.
The script specifies a cacheprefix directive for each channel. If the send
command is split into multiple instances, specify the cacheprefix directive
only once for each channel.
5. Before running an RMAN script that allocates multiple channels, ensure that the
user account has permissions to create files in the install-dir/var
directory or the cache files exists and has the correct permissions.
--no_of_channels=2
--operation=backup
2. Modify the send statements in the RMAN script by adding a taskfile parameter.
For example:
3. Run the RMAN script according to the appropriate instructions in this chapter.
4. Locate the new entry for the current RMAN operation in the Activity window in
Avamar Administrator.
NOTICE
The Avamar software does not check or validate the information that is typed in the
Enter Attribute and Enter Attribute Value fields. The values in the Enter Attribute
and Enter Attribute Value fields override settings that are specified with the GUI
controls for the options.
Detailed instructions on how to access and set plug-in options during a backup or
restore are available in Backup on page 75 and Restore and Recovery on page 89.
Backup options
Backup plug-in options enable you to control backup functionality that is specific to
the Avamar Plug-in for Oracle. You can specify plug-in options for on-demand and
scheduled backups.
The following table lists options that are available for the Avamar Plug-in for Oracle
when you perform an on-demand backup or when you configure dataset for scheduled
backups.
Option Description
Oracle Instance Name Leave this field blank. The Avamar Plug-in for Oracle
determines the Oracle instance name when you browse and
select a target to back up.
Option Description
Number of RMAN Channels Specifies the number of channels to allocate during a backup
or restore. The maximum number is 10. The default is 1. This
option impacts the number of streams that Data Domain
systems use. The formula that determines the number of
streams is:
NUMBER OF RMAN CHANNELS x NUMBER OF DATA
DOMAIN STREAMS.
Note
Note
Back up database Backs up the Oracle database. You can use this option by
itself or with the Backup archive logs option.
Back up archive logs Backs up Oracle archive logs. You can use this option by itself
or with the Back up database option.
Note
Delete archive logs after backup Automatically deletes Oracle archive logs after a successful
database backup.
Media Management Library Bitwidth Specifies Media Management Library (MML) bitwidth. Select
an option:
l Automatic (default)
l 32-bit
l 64-bit
If the application bitness and OS bitness are not the same,
select the appropriate setting from the Media
Management Library Bitwidth list. If the application
bitness and OS bitness are the same, leave the Media
Management Library Bitwidth set to Automatic.
Option Description
Note
Exit a multiple target backup when any one backup fails Prevents a multiple target backup from continuing after one
of the backups fails.
Enable debugging messages (advanced option) Writes maximum information to log files. Use with caution.
NLS_DATE_FORMAT (advanced option) Specifies a valid timestamp format for the target machine. For
example: mm/dd/yyyy.
Enhanced Data Deduplication (advanced option) Enables or disables data compression. During backups,
enhanced data deduplication can reduce the amount of client
data that is sent to the server, but might require additional
client CPU resources. Select an option:
l To back up the data files without using compression,
select Default.
l To use the global data compression setting that is already
set on the server, select Default. This is the default
setting.
l To use enhanced data deduplication for the backup,
select Enabled.
Full backup Backs up all data files. You can optionally choose to backup
the archive logs during a Level 0 (incremental) backup or at a
later time. Full backups do not use the Block Change
Tracking option. This option is the default.
Level 0 backup Performs a level 0 backup. Level 0 backups back up all data
files. You must perform a level 0 backup before you perform a
level 1 backup.
Level 1 differential backup Backs up all database blocks that have changed since the
most recent level 1 or level 0 backup. You must perform a level
0 backup before you perform a level 1 backup. Selecting the
Level 1 backup option before you create a level 0 backup
results in a level 0 backup.
Level 1 cumulative backup Backs up all database blocks that have changed since the
most recent level 0 backup.
Use recovery catalog Select this option to use the values in the Recovery
Catalog Server Name, Recovery Catalog Username,
and Recovery Catalog Password fields to form a recovery
catalog server connection string for RMAN. Using a recovery
catalog server enables you to use specialized features of
RMAN. A thorough discussion of these features is beyond the
scope of this guide. The Oracle documentation provides more
information.
Option Description
Recovery Catalog Server Name Specifies the recovery catalog server name.
Run user-defined script at beginning of backup (advanced Specifies the name of a script that runs at the beginning of
option) the backup. The preprocessing script must be in the /
avamar/etc/scripts directory on the client.
Exit backup if script fails (advanced option) Stops processing the script when the script returns a non-
zero status code.
Run user-defined script at end of backup (advanced option) Specifies the name of a script that runs at the end the
backup. The postprocessing script must be in the /
avamar/etc/scripts directory on the client.
Exit process with script failure exitcode (advanced option) Exits the script with an exitcode from the script rather than
with the standard avoracle exitcode.
Filesperset Specifies the number of files that RMAN can include in each
backup set. The default is 1.
Store backup on Data Domain system Backs up the data to the Data Domain system rather than to
the Avamar server. Select the checkbox, and then choose a
Data Domain system from the list.
Encryption method to Data Domain system Specifies the encryption method for data transfer between
the client and the Data Domain system during the backup.
4. Click +.
The option and value appear in the box below the + and - buttons.
--sbtio_trace_level=value
The acceptable values for --sbtio_trace_level are 0 or any integer greater than
0. A 0 indicates minimal logging and reports only error conditions. Any value greater
than 0 logs all messages.
By default, the trace level is set to 2, which logs all messages. You can minimize
logging by setting --sbtio_trace_level to 0.
4. Click +.
The option and value appear in the box below the + and - buttons.
Administrator via the Backup Command Line Options dialog box or the Restore
Command Line Options dialog box.
To modify the timeout, specify the --libobk_timeout flag in the avoracle.cmd
file by using the format:
--libobk_timeout=value
4. Click +.
The option and value appear in the box below the + and - buttons.
Restore options
Restore plug-in options enable you to control restore functionality that is specific to
the Avamar Plug-in for Oracle. You set restore options from the Restore Command
Line Options dialog box.
The following table lists options for restore operations with the Avamar Plug-in for
Oracle.
Option Description
Oracle Instance Name Leave this field blank. The Avamar Plug-in for Oracle
determines the Oracle instance name when you browse and
select a target to restore.
Option Description
connection string to Oracle. The connection string must
specify a user that has backup privileges for the database.
If left blank, RMAN tries to log in with the same username and
password that the Avamar client agent is running under, and
attempts to assume SYSDBA (or SYSBACKUP) privileges.
Typically, this field should contain the special account name
(backupuser), Creating the Oracle user account on page 76
provides more information.
Media Management Library Bitwidth Specifies Media Management Library (MML) bitwidth.
Choices are:
l Automatic (default)
l 32-bit
l 64-bit
If the application bitness and OS bitness are not the same,
select the appropriate setting from the Media Management
Library Bitwidth list. If the application bitness and OS bitness
are the same, leave the Media Management Library
Bitwidth set to the Automatic.
Note
Number of RMAN Channels Specifies the number of channels to allocate during a backup
or restore. The maximum number is 10. The default is 1. This
option impacts the number of streams that Data Domain
systems use. The formula that determines the number of
streams is: NUMBER OF RMAN CHANNELS x NUMBER OF
DATA DOMAIN STREAMS.
Note
Note
Option Description
Exit a multiple target restore when any one restore fails Prevents a multiple target restore from continuing after one
of the backups fails.
Enable debugging messages (advanced option) Writes maximum information to log files. Use with caution.
NLS_DATE_FORMAT (advanced option) Specifies a valid timestamp format for the target machine. For
example: mm/dd/yyyy.
Encryption method from Data Domain system Specifies the encryption method for data transfer between
the Data Domain system and the client during the restore.
Corrupt blocks (advanced option) Recovers corrupt blocks only, and not the entire database. To
use the Corrupt blocks only option, you must set the
DB_BLOCK_CHECKSUM initialization parameter to TYPICAL
for the Oracle database. The database must be in a mounted
or open state.
Validate database (advanced option) Validates the database only if the option is selected during a
corrupt blocks recovery
Recovery mode Lists recovery modes for the Point-in-Time (PIT) and
Flashback Database (FRA) recovery types. Select an
option from the Recovery mode list. Recovery modes and
values on page 140 provides more information.
Open the database with resetlogs after recovery Select this option to open the database after the recovery.
Clear this option to enable a roll-forward operation to recover
the database with archive log transactions.
Run user-defined script at beginning of restore (advanced Specifies the name of a script that runs at the beginning of
option) the restore. The preprocessing script must be in the /
avamar/etc/scripts directory on the client.
Exit restore if script fails (advanced option) Stops processing the script when the script returns a non-
zero status code.
Run user-defined script at end of restore (advanced option) Specifies the name of a script that runs at the end of the
restore. The postprocessing script must be in the /
avamar/etc/scripts directory on the client.
Exit process with script failure exitcode (advanced option) Exits the script with an exitcode from the script rather than
with the standard avoracle exitcode.
Command Line Options dialog box or the Restore Command Line Options dialog
box.
To specify preprocessing or postprocessing scripts, select Show Advanced Options
in either of the two dialog boxes.
1. From the Backup Command Line Options or Restore Command Line Options
dialog box, select Show Advanced Options.
2. Click More.
The Enter Attribute and Enter Attribute Value fields appear.
The following table describes the attributes that you specify in the Enter Attribute
and Enter Attributes Value fields.
Attribute Description
run_at_start=script_name Specifies a script to run before a backup or restore operation.
The user interface includes the Run user-defined script
at beginning of backup and Run user-defined script
at beginning of restore fields for this attribute.
run_at_start_clause=flags Specifies flags to use with the run_at_start script.
The following table describes flags that you specify for run_at_start_clause,
run_at_end_clause, run_before_database_clause, and
run_after_database_clause attributes.
Example of
stringlist_args=false:
[avoracle]run_at_start=scr
ipt.bat First Second Third
Example of
stringlist_args=true:
[avoracle]run_at_start=scr
ipt.bat First Second Third
[avoracle]run_at_start=scr
ipt.bat,First,Second,Third
First and Second correspond to the attributes and flags you pass to the
script.
Note
To pass a third attribute and flag, you append Third to the text string.
4. Click More.
The Enter Attribute and Enter Attribute Value fields appear.
5. Type the run_at_start_clause attribute in the Enter Attribute field:
[avoracle]run_at_start_clause
9. Type the timeout_seconds flag and value in the Enter Attribute Value field:
timeout_seconds=60
10. Click +.
The run_at_start_clause attributes and flags appear in the box below the
+ and - buttons.
Figure 16 Backup Command Line Options window
11. Clear the Exit backup if script fails option to enable the backup to proceed if
the script fails.
4. Type the script name, first, second, and third in the Enter Attribute
Value field:
dbpostscript.bat first second third
5. Click +.
6. Type the run_after_database_clause attribute in the Enter Attribute
field:
[avoracle]run_after_database_clause
7. Type the desc flag and value in the Enter Attribute Value field:
desc=”Avamar post script after database”
8. Click +.
9. Type the run_after_database_clause attribute in the Enter Attribute
field:
[avoracle]run_after_database_clause
10. Type the timeout_seconds flag and value in the Enter Attribute Value field:
timeout_seconds=200
11. Click +.
12. Type the run_after_database_clause attribute in the Enter Attribute
field:
[avoracle]run_after_database_clause
13. Type the create_stdout_pipe flag and value in the Enter Attribute Value
field:
create_stdout_pipe=false
14. Click +.
The attributes and flags appear in the box below the + and - buttons.
Note
Troubleshooting 149
Troubleshooting
Backups that you run from Avamar Administrator or RMAN scripts that you run from
the command line fail after setting backup copies to 3:
l For backups from Avamar Administrator, an error message similar to the following
error appears in the sbtio.log:
Note
To further protect the Oracle data beyond performing regular backups, consider using
Avamar replication. The Avamar Administration Guide provides more information about
the Avamar replication feature.
Log files for RMAN operations cannot be viewed from the Avamar
Administrator if a custom var directory is used.
When you use a custom var directory for RMAN backups, all CLI operations complete
normally and the log files can be viewed from the custom directory. However, the log
files cannot be viewed from the Avamar Administrator.
To prevent this problem, register the secondary node by using the original virtual
hostname.
These errors occur if the specified var directory does not have sufficient permissions
for the Oracle user. The Oracle user requires read, write, and execute permissions for
the var directory.
Specify the /var/avamar/clientlogs directory for backups that you perform
from the RMAN CLI.
Backups with Avamar Administrator automatically access the cache files from
the /var/clientlogs directory.
However, the Activity window in Avamar Administrator incorrectly displays the restore
status as completed.
In this case, you can examine the activity logs to determine the cause of the restore
failure.
RMAN-00571: =======================================
RMAN-00569: ===== ERROR MESSAGE STACK FOLLOWS =====
RMAN-00571: =======================================
RMAN-03002: failure of restore command at 05/09/2014 10:01:35
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Oracle requires you to set the NLS_LANG environment variable to the correct
language, territory, and character set when the following configuration settings are
true:
l The operating system is in a locale other than English.
l The database contains datafiles that use the UTF-8 character set.
Additional information: 25
Recovery Manager complete.
where:
l install-dir is the base installation directory for the platform (for
example, /usr/local/avamar on Linux, /opt/AVMRclnt on Solaris, and C:
\Program Files\avs\bin on Windows).
l scn is an SCN value noted in step 2 on page 155.
6. Use Oracle documentation to perform other necessary recovery steps.
To solve this issue, use the Edit RMAN Script button from the Oracle Enterprise
Manager to add the appropriate RMAN send command. Backup and Restore with
Oracle RMAN on page 105 provides more information about creating RMAN scripts.
The following problems might cause the RMAN backup script to fail with the
ORA-19511 error:
l The /var/avamar directory does not have correct permissions to start a backup.
Use the /var/avamar/clientlogs directory instead of the /var/avamar
directory.
l Either RMAN or libobk cannot locate avtar.
The allocate channel command in the RMAN backup or restore script must
include Avamar-home/bin as the PATH variable or include bindir="/usr/
local/avamar/bin".
l An Oracle instance is running as a nonstandard user or group.
To determine if Oracle is installed as a nonstandard user or group, check the file
permissions for the Oracle home directory. For example, use the following
commands:
cd /home/oracle/oracle/product/10.2.0/db_1/oradata
ls -l
To resolve this issue, ensure that all variables in the RMAN script that specify the
Windows installation directory use Progra~1, the short name for the Program
Files folder. The parser cannot process spaces in folder names.
For example, the correct syntax for the --bindir variable is --bindir=C:
\Progra~1\avs\bin.
4. Click +.
The option and value appear in the box below the + and - buttons.
5. Restart the backup.
These errors can occur when you allocate too many channels for a backup or restore
from Avamar Administrator.
To resolve this issue, it is recommended to set the number of channels to no more
than two times the number of processors. If the problem still persists, reduce the
number of channels.
The Number of RMAN Channels option is available from the Backup Command Line
Options, Restore Command Line Options, and New Dataset dialog boxes.
This problem does not apply to backups or restores started by an RMAN script.
Hidden backups
At the end of each database backup, the Avamar Plug-in for Oracle performs a final
step to group backup pieces into a consolidated backup.
If a backup fails in the final consolidation step, the backup becomes a hidden backup,
which cannot be searched for and restored from Avamar Administrator. At the
moment of this backup failure, the Avamar Plug-in for Oracle displays the following
error message:
Failed to create the snapview. However, the database data has
been successfully backed up and is marked as a hidden backup.
Restore is available through CLI only. See the plug-in
documentation for information about restoring hidden backups.
It is recommended that you perform an immediate full database backup after the
backup failure.
Although the backup label does not display in the Avamar Administrator window, the
Avamar Plug-in for Oracle performs a proper backup of the database data. To view
information on hidden backups, you must use the following command:
avtar --backups --server=Avamar_server_name --
id=Avamar_server_username --password=Avamar_server_password --
account=Avamar_domain
The following example shows the output from the command. Records that are
associated with the Hidden Oracle RMAN backup are the hidden backup pieces.
Note
Note
64-bit operating systems do not support the 32-bit versions of Oracle 10g and later
versions. You can find additional information about Oracle on the Oracle website.
where:
l version is the version of Oracle.
l db-name is the name of the Oracle database.
The following output appears in the command shell:
/home/oracle/oracle/product/10.2.0/db_1/bin/rman: ELF 64-bit
LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.4.0, dynamically linked (uses shared libs),
not stripped
file ~/oracle/product/version/db-name/bin/sqlplus
where:
l version is the version of Oracle.
l db-name is the name of the Oracle database.
The following output appears in the command shell:
/home/oracle/oracle/product/10.2.0/db_1/bin/sqlplus: ELF 64-bit
LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.4.0, dynamically linked (uses shared libs),
not stripped
The text string ELF 64-bit LSB executable in the command output confirms
that both Oracle and RMAN are 64-bit.
The Cluster Configuration Tool requires Microsoft .NET Framework 4. You can
download and install the .NET Framework 4 from the Microsoft Download Center.
The RMAN scripts, RMAN log files, and the avoracle log files require a minimum of
100 MB of disk space.
cd Avamar-home/lib
file *
The text strings ELF 64-bit LSB shared object and ELF 32-bit LSB
shared object in the following command output confirm that both 64-bit and 32-
bit libraries are present:
libobk_avamar64.so: ELF 64-bit LSB shared object, AMD x86-64,
version 1 (SYSV), not stripped
libobk_avamar.so: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), not stripped
which rman
/usr/X11R6/bin/rman
rpm -qf /usr/X11R6/bin/rman
xorg-x11-devel-6.8.2-1.EL.33
xorg-x11-devel-6.8.2-1.EL.33
more oratab
catalogdb:/home/oracle/oracle/product/10.2.0/db_1:N
largedb:/home/oracle/OraHome:N
orcl:/home/oracle/oracle/product/10.2.0/db_1:N
The sample output from the oratab file includes a database that is named largedb.
This database has both Oracle 9i and Oracle 10g homes. Because largedb is an Oracle
9i instance, the correct RMAN executable is in /home/oracle/OraHome/bin/
rman.
Set the PATH variable to the ORACLE_HOME/bin directory to ensure that RMAN uses
the correct executable file. Before running RMAN scripts, run /usr/local/bin/
oraenv.
Note
The following procedure runs the UNIX kill command to stop avoracle processes,
which were started by the Avamar Administrator interface. The Avamar Administrator
automatically starts the avoracle processes for browse, backup, and restore
operations. Stop these avoracle processes only when you determine that an issue
occurs with a browse, backup, or restore operation.
1. Log in to the Oracle server.
2. Show all Avamar processes by typing the following command:
ps -ef|grep avoracle
The command shell displays a list of active processes. Some of them are
avoracle processes for the Avamar Plug-in for Oracle.
3. Locate the avoracle processes in the list and note the process ID numbers
(PIDs).
4. Terminate the process by typing the following command:
kill pid
where pid is a process ID displayed in step 2.
5. Repeat step 4 until all avoracle processes are stopped.
./avoracle --browse
When the browse problem exists, the output from the avoracle program contains
the following message:
avoracle Info <7908>: browse returning with 0 items
The following circumstances can prevent you from browsing the Oracle databases:
l The Avamar client and Oracle databases use two separate NIC cards, each with
different IP addresses and hostnames.
Platform Method
Microsoft Windows Use the Windows Explorer to verify that the
C:\Program files\avs folder exists and
contains libobk_avamar.dll.
Oracle Linux, Red Hat Linux, or SUSE Linux Use the rpm command:
swinstall -list
pkginfo|grep -i AVMRclnt
activation The process of passing the client ID (CID) back to the client, where it is stored in an
encrypted file on the client file system.
administrator Person who normally installs, configures, and maintains software on network
computers, and who adds users and defines user privileges.
archive logs Log files that contain a copy of one of the filled members of an online redo log group.
The archiving process requires that the database be set to ARCHIVELOG mode. Oracle
terminology refers to archive logs as archive redo logs.
Avamar Administrator A graphical management console software application that is used to remotely
administer an Avamar system from a supported Windows or Linux client computer.
Avamar client A computer or workstation that runs Avamar software and accesses the Avamar server
over a network connection. Avamar client software comprises a client agent and one or
more plug-ins.
Avamar server The server component of the Avamar client/server system. Avamar server is a fault-
tolerant, high-availability system that efficiently stores the backups from all protected
clients. It also provides essential processes and services required for data restores,
client access, and remote system administration. Avamar server runs as a distributed
application across multiple networked storage nodes.
backup A point-in-time copy of client data that can be restored as individual files, selected data,
or as an entire backup.
browse The process of viewing data that is available for backup on a client computer or restore
from the Avamar server.
client activation The process of passing the client ID (CID) back to the client, where it is stored in an
encrypted file on the client file system.
client agent A platform-specific software process that runs on the client and communicates with the
Management Console Server (MCS) and with any plug-ins installed on that client.
client registration The process of establishing an identity with the Avamar server. When Avamar
recognizes the client, it assigns a unique client ID (CID), which it passes back to the
client during client activation.
cluster Two or more independent network servers, usually with exact copies of the same
software and data, that operate and appear to clients as if they are a single unit. A
cluster configuration enables work to be shifted from one server to another, providing
high availability, which allows application services to continue despite most hardware or
software failures.
cold backup A backup of database objects that you perform while the corresponding database or
instance is shut down and unavailable to users. Also known as an offline backup.
database A collection of data arranged for ease and speed of update, search, and retrieval by
computer software.
database files Oracle database files include datafiles, control files, and online redo logs.
Data Domain system Disk-based deduplication appliances and gateways that provide data protection and
disaster recovery (DR) in the enterprise environment.
dataset A policy that defines a set of files, directories, and file systems for each supported
platform that are included or excluded in backups across a group of clients. A dataset is
a persistent and reusable Avamar policy that can be named and attached to multiple
groups.
DD Boost The API that Avamar clients use to access a Data Domain system. The DD Boost API is
installed automatically on the client computer when you install the Avamar client. It is
also installed automatically on the Avamar server when you install Avamar.
disaster recovery Recovery from any disruptive situation, such as hardware failure or software corruption,
in which ordinary data recovery procedures are not sufficient to restore a system and
its data to normal day-to-day operations. A disaster recovery can be a bare metal
recovery.
DNS Domain Name Server. A dynamic and distributed directory service for assigning domain
names to specific IP addresses.
domain A feature in Avamar Administrator that is used to organize large numbers of clients into
named areas of control and management.
file system Software interface used to save, retrieve, and manage files on storage media by
providing directory structures, data transfer methods, and file association.
group A level of organization in Avamar Administrator for one or more Avamar clients. All
clients in an Avamar group use the same group policies, which include the dataset,
schedule, and retention policy.
group policy The dataset, schedule, and retention policy for all clients in an Avamar group.
MCS Management console server. The server subsystem that provides centralized
administration (scheduling, monitoring, and management) for the Avamar server. The
MCS also runs the server-side processes used by Avamar Administrator.
Media Management A software library used by RMAN to back up data to tertiary storage. The MML for the
Library (MML) Avamar Plug-in for Oracle is libobk_avamar.
Media Manager (MM) A third-party networked backup system. MM works with Recovery Manager so that
database backups can be written directly to tertiary storage.
metadata Data about the backup, including information about the original database files, the
backup types, the date and time of the backup, and other information necessary for
restore.
Oracle instance A memory structure and a group of Oracle Server processes running on a node.
oratab file A text file that contains the system identifier and home directory of the Oracle
database. A typical oratab entry is similar to the following: ora91:/space/local/
oracle/ora901. The default location for the oratab file is /var/opt/oracle on
Solaris and /etc on other systems.
plug-in Avamar client software that recognizes a particular kind of data resident on that client.
policy A set of rules for client backups that can be named and applied to multiple groups.
Groups have dataset, schedule, and retention policies.
Recovery Manager A software application that provides a command line interface for hot and cold backups,
(RMAN) as well as cold recovery of a supported Oracle database.
redirected restore The process of restoring a backup to a different location than the original location
where the backup occurred.
registration The process of establishing an identity with the Avamar server. When Avamar
recognizes the client, it assigns a unique client ID (CID), which it passes back to the
client during client activation.
restore An operation that retrieves one or more file systems, directories, files, or data objects
from a backup and writes the data to a designated location.
retention The time setting to automatically delete backups on an Avamar server. Retention can be
set to permanent for backups that should not be deleted from an Avamar server.
Retention is a persistent and reusable Avamar policy that can be named and attached to
multiple groups.
schedule The ability to control the frequency and the start and end time each day for backups of
clients in a group. A schedule is a persistent and reusable Avamar policy that can be
named and attached to multiple groups.
System Backup to Tape An Oracle architecture that supports directly writing backups to tape (and reading
them) by using the Media Management Library.
tablespace A logical storage unit in a database, which groups related logical structures together.
transaction logs A record of database transactions or list of changed files in a database, stored in a log
file to execute quick restore and rollback transactions.
User Account Control A Windows feature available in Windows 7, Windows Server 2008, Windows Server
(UAC) 2008 R2, Windows Vista. UAC helps prevent unauthorized changes to your computer.
When functions that could potentially affect a computer's operation are made, UAC
prompts the user for permission or for an administrator's password before continuing
with the task.