32 Oracle Database Cloud Backup Module for Azure
Use the Oracle Database Cloud Backup Module for Azure to backup your Oracle Databases to Microsoft Azure Cloud Storage using RMAN.
32.1 About Oracle Database Cloud Backup Module for Azure
You can backup Oracle Database 23ai and higher to Azure Blob Storage containers.
The RMAN SBT library for Azure enables RMAN to communicate with the Oracle Database Cloud Backup Module to perform backup and recovery tasks with Azure Storage. Backups are directly stored in Azure blob containers.
Before creating backups to Azure, you must create an Azure Storage account and obtain the storage account credentials required for authentication. Next, set up the Oracle Database Cloud Backup Module for Azure on the target Oracle Database server. Finally, you must configure an RMAN SBT channel using the RMAN SBT library for Azure. This creates a persistent RMAN configuration for all backups and restores with Azure storage containers.
Note:
The Oracle Database Cloud Backup Module for Azure is compatible with Oracle Databases deployed on-premises or on Azure cloud. Support for writing backups to Azure Blob Storage for Oracle-managed database services is not available.
32.2 Sign-up for a Microsoft Azure Blob Storage Account
To backup your Oracle Database to Microsoft Azure, you need an existing Microsoft Azure Blob Storage account.
Create a Microsoft Azure Storage account. See Create an Azure storage account.
storageaccount
- Azure Blob Storage Account Namesharedkey
- Azure Blog Storage Account Keycontainer
- Azure Blob Container Name
32.3 Set Up the Oracle Database Cloud Backup Module for Azure
Before you backup to Azure, you must set up the Oracle Database Cloud Backup Module for Azure on the target Oracle Database server.
The backup module setup tool az_setup.zip
is available
in the Oracle home directory after you install the Oracle Database.
Table 32-1 File Name and Location of the Oracle Database Cloud Backup Module for Azure Setup Tool
Oracle Database Cloud Backup Module for Azure Setup Tool | Location on UNIX and Linux Systems | Location on Windows Systems |
---|---|---|
|
|
|
32.3.1 Prerequisites for the Oracle Database Cloud Backup Module for Azure
Verify these minimum requirements before you set up the Oracle Database Cloud Backup Module for Azure.
Table 32-2 Minimum System Requirements for the Oracle Database Cloud Backup Module for Azure
System | Supported Version |
---|---|
Oracle Database |
Oracle Database 23ai Release 8 (23.8) or later versions |
Java SE Development Kit (JDK) |
Default JDK version supported by the target Oracle Database release. |
32.3.2 Parameters for Running the Oracle Database Cloud Backup Module for Azure Setup Tool
Review the mandatory parameters and compile their values before you set up the Oracle Database Cloud Backup Module for Azure.
After you install Oracle Database, the backup module setup tool
az_setup.zip
is available in the Oracle home directory (see
Table 32-1).
az_setup.zip
setup tool to a
subdirectory of your choice. To preview the parameters, run this command from the
subdirectory that contains the extracted setup
files.$ java -jar az_setup.jar
Example 32-1 Extracting the Oracle Database Cloud Backup Module for Azure Setup Files and Previewing the Parameters (on UNIX and Linux systems)
In this example, extract the contents of the
az_setup.zip
file to the azmodule
subdirectory.
$ mkdir -p $ORACLE_HOME/lib/azmodule
$ cd $ORACLE_HOME/lib/azmodule
unzip -q $ORACLE_HOME/lib/az_setup.zip
azmodule
subdirectory that contains the extracted setup
files.$ java -jar az_setup.jar
Table 32-3 Parameters to Set Up the Oracle Database Cloud Backup Module for Azure
Parameter | Description | Required or Optional |
---|---|---|
|
The account name for your Microsoft Azure Blob Storage account used for RMAN backups. |
Required |
|
The access key for the specified Microsoft Azure
|
Required |
|
A custom container associated with the specified Azure
When you backup to Azure, RMAN stores the backups in the specified container. The setup tool will create the specified container, if it does not exist. Skip the
-container parameter in these
scenarios:
|
|
|
A WORM compliant (immutable) Azure storage container to store RMAN backups. See Microsoft Azure Immutable Storage for more information. |
Optional |
|
A container used to store temporary metadata during RMAN backup and recovery operations. |
Required if you have specified a
|
|
Directory that contains the Azure storage account credentials required to authenticate RMAN operations. Create the wallet directory before you run the setup tool. If you skip this parameter, then the setup tool prompts you to enter the wallet directory. |
Required |
|
List of SSL certificates that needs to be imported into the Oracle wallet. |
Required - If you want to manually add a list of SSL certificates to the wallet. Optional - If you want the setup tool to retrieve the required SSL certificates. |
|
Specifies a custom name and location for the Azure backup
module configuration file created by the setup tool. For example,
Skip the
-configFile parameter if you
want to create the configuration file in the default location chosen
by the setup tool.
The default name for the configuration file is
|
Optional |
|
HTTP proxy server host name |
Optional |
|
HTTP proxy server port number |
Optional |
|
HTTP proxy server user name, if needed. |
Optional |
|
HTTP proxy server password, if needed. |
Optional |
|
A plain text file which contains the input parameters for the Azure Backup Module setup tool. Specify For example, assume that the
arguments.txt file contains this parameter
definition:
This example shows that you can set up the backup module
using the parameters specified in the
arguments.txt
file:
|
Optional |
|
Imports all |
Optional |
|
Import current |
Optional |
32.3.3 Run the Setup for the Backup Module for Azure
Use these steps to set up the Oracle Database Cloud Backup Module for Azure on the target database server.
The Oracle Database Cloud Backup Module for Azure setup tool creates these files:
- Configuration file
az<ORACLE_SID>.ora
, where<ORACLE_SID>
is the system identifier of the Oracle Database that is being backed up to Azure storage.By default, the configuration file is located in the
$ORACLE_HOME/dbs
directory onUNIX
and Linux systems. On Windows systems, the default location of the configuration file is%ORACLE_HOME%\database.
- Oracle wallet file, that securely stores the Microsoft Azure Storage account credentials. RMAN requires the wallet file for authentication during backup and restore operations with Azure blob containers..
32.4 Configuration Parameters Created by the Oracle Database Cloud Backup Module for Azure
The setup tool creates the configuration file with parameter values required for RMAN operations with the Oracle Database Cloud Backup Module for Azure.
You can optionally modify the parameter values in the configuration file.
Table 32-4 Configuration Parameters To Specify Settings for the Oracle Database Cloud Backup Module for Azure
Parameter Name | Mandatory? | Description |
---|---|---|
|
Yes |
Specifies the name of the host to which the RMAN backups are sent. |
|
No |
Specifies the proxy server and port when the target database is
behind a firewall. It is specified in the
|
|
No |
Specifies the Azure Blob Storage container in which RMAN stores the database backups. If this parameter is not specified, then the SBT library first attempts to find an existing bucket in the specified location and named in the format oracle-data-account name-. If no such bucket exists, then the SBT library creates a unique bucket with the oracle-data-account name- prefix. |
|
No |
Name of the Azure Blob Storage container that stores the temporary files associated with immutable backups. The backup module requires the temporary container for backup operations. Create a separate container to store
the temporary files. Run the setup tool by specifying the container
name in the -temp-metadata-container value in the
az.ORACLE_SID.ora
configuration file after you run the setup tool.
|
|
No |
Specifies the object size, in bytes, that will used when storing backups to Azure Blob Storage. The default chunk size is 100MB. |
|
Yes |
Defines the wallet location, alias, and proxy authentication alias
through which the SBT library reads the Azure account credentials.
The format of this parameter is:
|