This chapter describes how to configure protected databases for backup and recovery operations with Recovery Appliance.
This chapter contains the following topics:
Overview of Configuring Protected Databases for Recovery Appliance
Enrolling the Protected Database with Recovery Appliance (Cloud Control)
Enrolling the Protected Database with Recovery Appliance (Command Line)
Configuring Backup and Recovery Settings for Protected Databases (Cloud Control)
Configuring Backup and Recovery Settings for Protected Databases (Command Line)
To use Recovery Appliance as a centralized repository for your protected database backups, configuration is required both on the Recovery Appliance and on the protected database. You can use Enterprise Manager Cloud Control (Cloud Control) or RMAN to configure protected databases.
On the Recovery Appliance, the configuration steps include creating a protection policy that is assigned to the protected database, creating a Recovery Appliance user who owns the virtual private catalog, and granting access for the protected databases to a Recovery Appliance user. These steps are described in Zero Data Loss Recovery Appliance Administrator's Guide.
On the protected database, the configuration includes enabling the protected database to access the Recovery Appliance, adding protected database metadata to the Recovery Appliance, and specifying settings that will be used during backup and recovery operations.
Note:
Oracle recommends that you use a server parameter file for your protected database.
Note:
Oracle wallets created by Cloud Control support HTTP transport only. To use HTTPS transport, the wallet needs to be set up outside of Cloud Control.
Configuring protected databases performs the set up tasks required to back up and recover protected databases using Recovery Appliance.
To configure a protected database for Recovery Appliance:
Enroll the protected database with a Recovery Appliance.
Enrolling is a one-time task that must be performed the first time you set up a protected database to use the Recovery Appliance. It includes the tasks described in "Overview of Enrolling Protected Databases".
Configure backup and recovery settings for the protected database.
These settings, described in "Overview of Protected Database Backup Settings" and "Overview of Protected Database Recovery Settings", are used during backup and recovery operations for the protected database. The settings can be modified according to the backup or recovery task that is being performed.
Perform a test backup to verify that your protected database configuration is successful.
See Also:
The Recovery Appliance backup module is an Oracle-supplied SBT library that functions as a media management library. RMAN uses the Recovery Appliance backup module to transfer backup data over the network to the Recovery Appliance. The backup module is referenced when allocating or configuring an RMAN SBT channel for backup or recovery operations to the Recovery Appliance. All backups to the Recovery Appliance, and all restores of complete backup sets, are performed by means of this backup module.
The Recovery Appliance backup module must be installed in the following locations:
In the Oracle home of every protected database that uses RMAN to backup protected databases to Recovery Appliance
If a particular Oracle home is used by more than one protected database, then the backup module must be installed only once in this Oracle home.
On every upstream Recovery Appliance that sends backups to downstream Recovery Appliances in replication environments
The library for the Recovery Appliance backup module, libra.so
, is preinstalled on Recovery Appliance. However, the Oracle wallet containing the replication user credentials must be created on the upstream Recovery Appliance.
The Recovery Appliance backup module configuration file contains the configuration settings that are used when protected databases communicate with the Recovery Appliance. The configuration file is created automatically when the Recovery Appliance backup module is installed on the protected database host. "Configuration Parameters for the Recovery Appliance Backup Module" describes the configuration parameters that can be specified while installing the Recovery Appliance backup module.
You can also set some Recovery Appliance backup module configuration parameters inline, while configuring or allocating RMAN SBT channels for the Recovery Appliance, as shown in Example 3-3 and Example 3-4.
Table 3-1 describes the configuration parameters that are used when installing the Recovery Appliance backup module. These parameters are used by protected databases while backing up to and restoring from Recovery Appliance.
Table 3-1 Recovery Appliance Backup Module Installer Parameters
Parameter Name | Mandatory/Optional | Description |
---|---|---|
dbUser |
Mandatory |
User name of the Recovery Appliance user who has the privileges required to connect to, send, and receive backups for the protected database |
dbPass |
Mandatory |
Password for the |
host |
Mandatory |
SCAN host name of the Recovery Appliance |
port |
Mandatory |
Listener port number of the Recovery Appliance metadata database |
serviceName |
Mandatory |
Service name of the Recovery Appliance metadata database |
walletDir |
Mandatory |
Location of the Oracle wallet that stores the Recovery Appliance user credentials and the proxy information used to connect to the Recovery Appliance. Note: If an Oracle wallet already exists in this directory, then the Recovery Appliance backup module installer overwrites the existing wallet. |
proxyHost |
Optional |
Host name or IP address and TCP port of a proxy server through which to make an HTTP connection to the Recovery Appliance, in the form host:port. |
configFile |
Optional |
Location of the configuration file that stores the configuration parameters for the Recovery Appliance backup module. The default location on Linux/UNIX is |
libDir |
Optional |
Location where the shared library for the Recovery Appliance backup module is stored. This library is used to transfer backup data over the network to the Recovery Appliance. It is recommended that you store the shared library in When you omit this parameter, the installer does not download the shared library. Downloading the library is not required only when you regenerate the Oracle wallet and configuration file in an Oracle home where the backup module was previously installed. |
libPlatform |
Optional |
Platform name of the protected database host on which the Recovery Appliance backup module needs to be installed. Typically, the Recovery Appliance backup module installer automatically determines the platform on which it is run. You need to set this parameter only if the installer displays an error indicating the platform cannot be determined. Valid values for platform name are: linux64, windows64, solaris_sparc64, solaris_sparcx64, zlinux64, aix_ppc64, and hpux_ia64. |
argFile |
Optional |
File from which the remaining command-line parameters must be read during the Recovery Appliance backup module installation. |
See Also:
Enrolling a protected database enables a specific Recovery Appliance to receive backups from the protected database. This is a one-time task that must be performed the first time you set up a protected database to use Recovery Appliance. Enrolling requires steps to be performed on both the Recovery Appliance and the protected database.
Enrolling a protected database performs the following tasks:
Configures credentials required for the protected database to access the Recovery Appliance
The protected database administrator requires credentials to authenticate with the Recovery Appliance and perform backup and recovery operations. This is done by associating a protected database administrator user with a Recovery Appliance user (in the Recovery Appliance metadata database). These credentials are stored in an Oracle wallet that is created on the protected database.
Defines recovery window goals and allocates reserved space on the Recovery Appliance by associating the protected database with an appropriate protection policy
Grants access to the protected database to the Recovery Appliance user
Registers the protected database with the Recovery Appliance catalog
Metadata for protected database backups must be stored in the Recovery Appliance catalog. There are multiple virtual private catalogs within the Recovery Appliance catalog. You must specify the virtual private catalog owner that will manipulate metadata for this protected database.
When you use Cloud Control, an Enterprise Manager administrator must be provided access to the named credentials that are used to connect to a Recovery Appliance from Cloud Control. Enterprise Manager administrators that administer backup and restore operations for the protected database need access to these credentials in order to connect to the Recovery Appliance when configuring protected databases to backup to and restore from the Recovery Appliance.
Before you back up a protected database to Recovery Appliance, you must configure the protected database backup settings. These settings, described in Table 3-2, define the default behavior for your protected database backup environment. RMAN assigns default values for each backup setting. However, it is recommended that you configure settings according to the backup requirements of the protected database.
Table 3-2 Protected Database Backup Settings
Backup Setting | Description |
---|---|
Control file autobackup |
Specifies that the control file and server parameter file must be automatically backed up whenever a backup record is added or database structure metadata in the control file changes. |
Disk backup location |
When configuring backups for the Recovery Appliance, if backup polling is required, then specify the backup polling location. |
Backup optimization |
Skips the backup of files when an identical file has already been backed up to the Recovery Appliance. |
Retention policy |
Specifies which backups must be retained to meet your recovery goals. You can either specify a recovery window or a redundancy value. This setting needs to be specified when you use a parallel backup strategy and need to delete obsolete backups created by your existing (not Recovery Appliance) backup strategy. |
Archived redo log deletion policy |
Specifies when archived redo logs are eligible for deletion. This policy applies to all archiving destinations including the fast recovery area. |
Table 3-3 describes the recovery settings for protected databases. The values of some settings (for example, fast recovery area), are assigned based on how the protected database is configured for the Recovery Appliance.
Table 3-3 Protected Database Recovery Settings
Recovery Setting | Description |
---|---|
Desired mean time to recover |
The Mean Time to Recover (MTTR) is the time required to recover the protected database. Plan your backup strategy based on an MTTR that is acceptable for your protected database. |
|
The Optionally, configure the following additional properties for the protected database:
Note: Running the protected database in See Also: Oracle Database Administrator's Guide for information about configuring your database to run in |
Fast recovery area |
A fast recovery area is a disk location that stores backup-related files such as RMAN backups, archived redo log files, control file and online redo log file copies. The fast recovery area automates management of backup-related files and minimizes the need to manually manage disk space for backup-related files. See Also: Oracle Database Backup and Recovery User's Guide for more information about configuring a fast recovery area. |
Enrolling protected databases with a Recovery Appliance using Cloud Control includes the following high-level steps:
Create the Enterprise Manager administrator user who has the privileges required to back up and recover the protected database.
See "Creating the Enterprise Manager Administrator to Manage Protected Database Operations".
Enroll the protected database with a Recovery Appliance.
See "Enrolling a Protected Database with Recovery Appliance Using Cloud Control".
The Enterprise Manager administrator is an Enterprise Manager user that has the roles and privileges required to manage the data protection of one or more protected databases.
To create an Enterprise Manager administrator named protdb_admin:
Log in to Cloud Control as an Enterprise Manager administrator who has the privileges to create other Enterprise Manager administrator accounts.
From the Setup menu, select Security, and then select Administrators.
The Administrators page is displayed.
Click Create to display the Create Administrator: Properties page.
Enter the credentials of the new Enterprise Manager administrator in the Name and Password fields. In this example, the name of the Enterprise Manager administrator is protdb_admin
.
In the Password Profile field, DEFAULT is selected. This value need not be modified. Providing information in the other fields on this page is optional.
Click Next to display the Create Administrator protdb_admin: Roles page.
Move the EM_USER role from the Available Roles list to the Selected Roles list and click Next.
The Create Administrator protdb_admin: Target Privileges page is displayed.
In the Target Privileges section, add privileges for all the protected databases that will be managed by the new Enterprise Manager administrator.
To add privileges for a target protected database:
Click Add to display the Search and Add: Targets dialog.
Search for the protected database using the Target Name, Target Type, and On Host filters. Choose the protected database and click Select.
The selected protected database is added to the list of targets in the Target Privileges section.
Click the View icon for this target and select the following privileges:
Recovery Appliance target: View privilege.
Targets corresponding to the protected databases that will be managed by this Enterprise Manager administrator user: Full privilege.
Targets corresponding to the hosts of each protected database that will be managed by this Enterprise Manager administrator: Full privilege.
Repeat these steps for each protected database that will be managed by the new Enterprise Manager user.
Click Next to display the Create Administrator protdb_admin: EM Resource Privileges page.
Perform the following steps:
For the Job System privilege, click the Edit icon in the Manage Privilege Grants column. In the Resource Type Privileges section, select Create and then click Continue.
To provide the EM administrator user access to existing credentials, click the Edit icon in the Named Credential column. In the Resource Privileges section, click Add and select the named credentials that must be associated with this Enterprise Manager administrator.
Click Review to display the Create Administrator protdb_admin: Review page.
The properties, roles, and privileges for this new user are displayed. Review the settings and click Back to modify settings.
Click Finish to create the Enterprise Manager administrator.
Cloud Control simplifies the process of enrolling protected databases by performing certain tasks automatically.
See Also:
Note:
The Recovery Appliance Settings section that is used to register the protected databases is displayed only for protected databases using Oracle Database 11g Release 2 (11.2) or later. If the protected database release is lower than 11.2, then use the command line to register the protected database and configure virtual private catalog user credentials.
To enroll a protected database with a Recovery Appliance:
After the protected database is enrolled with a Recovery Appliance, you can use the home page for the protected database (shown in Figure 3-1) to perform configuration, backup, and recovery operations for the protected database.
The enrollment steps on the Recovery Appliance are performed using procedures in the DBMS_RA
package. The steps performed on the protected databases use RMAN or operating system commands.
To enroll a protected database with a Recovery Appliance using RMAN:
Protected databases communicate with the Recovery Appliance through the Recovery Appliance backup module. You must install the backup module on the protected database host before you enroll the protected database with Recovery Appliance. "Overview of Recovery Appliance Backup Module" describes the location where the Recovery Appliance backup module must be installed.
During the Recovery Appliance backup module installation, an Oracle wallet that contains credentials required to authenticate the protected database with Recovery Appliance is created. Additional Oracle wallets can be created as described in "Creating an Oracle Wallet on the Protected Database".
Note:
Oracle 10g protected databases require alternate manual steps for installing the library and creating the wallet. See "Enrolling Oracle 10g Protected Databases" for instructions on how to complete these tasks.
To install the Recovery Appliance backup module:
Complete the following steps before you install the Recovery Appliance backup module:
Verify that you have Java version 1.5 or higher
Contact the Recovery Appliance administrator and obtain the following information:
Recovery Appliance host name and port number
Credentials of the Recovery Appliance user that will be used to authenticate the protected database with the Recovery Appliance
The permissions required to perform protected database backup and recovery operations need to be assigned to this Recovery Appliance user.
Ensure that the release of the protected database is Oracle Database 10g Release 2 or later.
You can either download the Recovery Appliance backup module installer from the Oracle Technology Network (OTN) or obtain it from the Recovery Appliance.
On the Recovery Appliance, the installer is called ra_installer.zi
p and is available in the ORACLE_HOME
/lib
directory. During the installation, the Recovery Appliance backup module first attempts to download the modules required for your platform from OTN. If OTN access is unavailable, then the installer obtains the required libraries from the Recovery Appliance.
To download the Recovery Appliance backup module installer from OTN:
Install the Recovery Appliance backup module in the host file system of the protected database. Since the Recovery Appliance backup module is a shared library, it must be installed into a location within the shared library search path that is visible to every protected database instance. For example, $ORACLE_HOME/lib
is the default location for shared libraries for the Oracle database.
The Recovery Appliance backup module location is used with the SBT_LIBRARY
parameter in the ALLOCATE CHANNEL
or CONFIGURE CHANNEL
commands as described in "Using RMAN Channels for Recovery Appliance Backup and Recovery Operations".
To run the Recovery Appliance backup module installer:
Oracle 10g protected database enrollment requires alternate manual configuration steps for the first part of the enrollment process.
Perform the following tasks on the protected database server:
All protected databases must use the Recovery Appliance catalog on the target Recovery Appliance to store protected database backup metadata. Registering the protected database with the Recovery Appliance catalog ensures that metadata for the protected database and its backups is stored in the Recovery Appliance catalog. However, any existing backup metadata stored in an RMAN recovery catalog is not available in the Recovery Appliance catalog unless you import the RMAN recovery catalog into the Recovery Appliance catalog as described in "Importing Protected Database Metadata into the Recovery Appliance Catalog".
Use the REGISTER DATABASE
command to register protected databases with the Recovery Appliance.
To register a protected database with the Recovery Appliance:
See Also:
Oracle Database Backup and Recovery Reference for more information about the REGISTER
DATABASE
command
Oracle Database Backup and Recovery User's Guide for information about the RMAN recovery catalog
Oracle Database Net Services Administrator's Guide for more information about net service names
Before you back up a protected database to the Recovery Appliance, you must configure backup and recovery settings for the protected database. These configured settings are used in subsequent backup and recovery operations.
Note:
You can use Cloud Control to enroll protected databases with Oracle Database 11g Release 2 (11.2) or later. For Oracle Database releases earlier than 11.2, use the command line to configure backup and recovery settings.
Backup settings define the default backup environment for the protected database. The settings that configure real-time redo transport and polling locations define how backups are created to the Recovery Appliance. Other settings, such as control file autobackups or backup optimization, define best practices and performance improvements for protected database backups. These settings may be configured based on your requirements.
See Also:
To configure backup settings for a protected database using Cloud Control:
Recovery settings define the default recovery environment for the protected database. The only mandatory setting for Recovery Appliance is the Log Archive Filename Format. Configuring the remaining recovery settings is optional.
See Also:
To configure recovery settings for a protected database using Cloud Control:
You can clear the backup configuration of a protected database and remove its existing Recovery Appliance settings. Clearing the backup configuration removes the currently-configured Recovery Appliance and virtual private catalog user, any configured RMAN channels, and the real-time redo transport configuration.
To clear the backup configuration for a protected database using Cloud Control:
You can use the regular RMAN commands to configure backup and recovery settings for protected databases. These configured settings are used in subsequent backup and recovery operations.
This section contains the following topics:
RMAN assigns default values for protected database backup settings. You can use the CONFIGURE
command to modify these settings according to the backup requirements of your protected database.
See Also:
To configure backup settings for a protected database using the command line:
When you configure real-time redo transport, redo data from the protected database is directly transported and stored on the Recovery Appliance. This reduces the window of potential data loss that exists between successive archived log backups as described in "About Configuring Real-Time Redo Transport for Protected Databases".
Configuring real-time redo transport for a protected database is a one-time step. After you set it up, the protected database asynchronously transports redo data to the Recovery Appliance.
Note:
The user you use for redo transport must be the same user you configured to send backups to the Recovery Appliance.
When you clear the real-time redo transport configuration for a protected database, you must manually force a redo log switch to maintain an accurate state for the protected database. The log switch forces the remote file server process (RFS) to stop sending redo data to Recovery Appliance.
See Also:
Zero Data Loss Recovery Appliance Administrator's Guide for information about Oracle Database releases for which redo transport is supported
Deploying Zero Data Loss Recovery Appliance in a Data Guard Configuration for instructions on how to configure redo transport for Recovery Appliance with Oracle Data Guard
To enable real-time redo transport for a protected database:
An Oracle wallet stores the credentials of the Recovery Appliance user that will be used by the protected database to authenticate with the Recovery Appliance. These same credentials are used for sending backups and redo, if configured. When you install the Recovery Appliance backup module, an Oracle wallet is automatically created. You can also create the wallet and add required entries manually.
Note:
The sqlnet.ora
file in the protected database must contain the location of the Oracle wallet. Typically, the wallet location is automatically added to this file when you install the Recovery Appliance backup module.
Example 3-1 Creating an Oracle Wallet on the Protected Database
The following command creates an Oracle wallet that stores the credentials of the Recovery Appliance user named ravpc1
:
$ mkstore \ -wrl $ORACLE_HOME/oracle/wallet \ -createALO \ -createCredential newyork ravpc1
Enter the password for the ravpc1
user when prompted. Here, newyork
is the net service name of the Recovery Appliance database. The directory $
ORACLE_HOME
/oracle/wallet
must be created before the mkstore
command is run.
Example 3-2 Creating an Oracle Wallet with Multiple User Credentials
The following command creates two sets of credentials in the Oracle wallet of a protected database. In this scenario, ra_user
is used both by the Recovery Appliance for normal backup and recovery operations (and real-time redo transport, if enabled) and by the Data Guard standby database for data synchronization. The service name of the Recovery Appliance is zdlra2
and that of the primary database in the Data Guard set up is chicago
.
$ mkstore \ -wrl $ORACLE_HOME/oracle/wallet \ -createALO \ -createCredential chicago ra_user \ -createCredential zdlra2 ra_user
Enter the password for ra_user
when prompted. The directory $
ORACLE_HOME
/oracle/wallet
must be created before the mkstore
command is run.
Use the CONFIGURE
command to modify the default values assigned by RMAN for the protected database recovery settings.
See Also:
To configure recovery settings for a protected database using the command line:
To transfer backups to and from the Recovery Appliance, you must use an RMAN SBT (System Backup to Tape) channel that corresponds to the Recovery Appliance backup module.
The following techniques are available to use RMAN channels for protected database operations:
You configure RMAN SBT channels for Recovery Appliance using the RMAN CONFIGURE
command. Configuring channels for a protected database creates persistent settings that are applicable to all backup, restore, and maintenance operations on that protected database. Configured settings remain in effect until they are explicitly cleared, changed, or overridden in a particular operation using an ALLOCATE
command.
Example 3-3 configures an RMAN SBT channel for a Recovery Appliance. After this configuration, you need not explicitly allocate SBT channels that correspond to the Recovery Appliance backup module for each backup or recovery operation.
Example 3-3 Configuring an RMAN Channel for Recovery Appliance
In this example, an RMAN SBT channel is configured with the SBT_LIBRARY
parameter pointing to the Recovery Appliance backup module. The complete path of the shared library libra.so
is specified. The RA_WALLET
parameter represents the location of the Oracle wallet that stores the credentials used to authenticate this protected database with the Recovery Appliance. ra-scan
is the SCAN of the Recovery Appliance and zdlra5
is the service name of the Recovery Appliance metadata database.
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/u01/app/oracle/product/11.2.0.4.0/dbhome_1/lib/libra.so, ENV=(RA_WALLET=location=file:/u01/app/oracle/product/11.2.0.4.0/dbhome_1/dbs/zdlra credential_alias=ra-scan:1521/zdlra5:dedicated)' FORMAT '%U_%d';
Use the RMAN ALLOCATE
command to allocate RMAN SBT channels that will be used to back up to or recover from the Recovery Appliance. For a particular operation, you can override the persistent configuration that was set using the CONFIGURE
command by explicitly allocating an RMAN SBT channel before the operation. Enclose the ALLOCATE
command and the other commands in a RUN
block.
Example 3-4 allocates an RMAN SBT channel for the Recovery Appliance and then creates a full backup of the protected database including archived redo logs.
Example 3-4 Allocating RMAN Channels for Recovery Appliance
This example allocates an RMAN SBT channel with the SBT_LIBRARY
parameter specifying the complete path of the Recovery Appliance backup module. The ENV
setting is used to specify the configuration parameters used by the Recovery Appliance backup module. ra-scan
is the SCAN of the Recovery Appliance and zdlra5
is the service name of the Recovery Appliance metadata database.
RUN { ALLOCATE CHANNEL c1 DEVICE TYPE sbt_tape PARMS='SBT_LIBRARY=/u01/app/oracle/product/12.1.0.2/dbhome_1/lib/libra.so, ENV=(RA_WALLET=location=file:/u01/app/oracle/product/12.1.0.2/dbhome_1/dbs credential_alias=ra-scan:1521/zdlra5:dedicated)' FORMAT '%U_%d'; BACKUP INCREMENTAL LEVEL 1 DATABASE PLUS ARCHIVELOG; }
After you enroll the protected database with a Recovery Appliance, it is recommended that you perform a test backup and recovery operation. This testing helps confirm that your configuration settings are accurate and that the backup to and recovery from the Recovery Appliance are performed successfully. If you encounter any problem with the test backup or recovery, you may correct your settings and reconfigure your protected database.
After configuring a protected database for Recovery Appliance, you can test the connection to the Recovery Appliance by attempting a test backup.
To create a test backup of the protected database:
After creating a test backup of the protected database to Recovery Appliance, you can test this backup by performing a test recovery.
To perform a test recovery of the protected database:
If these backup and recovery procedures succeed, then the client database is ready to perform regular backups to the Recovery Appliance.