Configuration
backupmanager allows you to configure RMAN backups to suit your specific needs. You can define backup settings, and customize key parameters for the workload, including:
Prerequisites:
1. Oracle Database Configuration:
Windows:
Install and configure Oracle Database
Set
ORACLE_HOME
environment variable to Oracle installation pathAdd
%ORACLE_HOME%\bin
to PATH of system variable
Linux:
Install and configure Oracle Database
In
/root/.bashrc
or/etc/profile
, add:export ORACLE_HOME=/path/to/oracle/installation
export PATH=$PATH:$ORACLE_HOME/bin
Apply changes:
source /root/.bashrc
or/etc/profile
Ensure ORACLE_HOME
is correctly set before using backupmanager.
2. Zmanda Pro Client installed and registered.
3. backupmanager installed and login configured.
Configuration Process
Starting the RMAN Configuration
Open your terminal and run the following command to begin the RMAN configuration process:
When prompted, enter the Device Name as registered on the server. The default value will be the hostname of the client machine you’re configuring.
Note: Pressing the Delete key will exit backupmanager.
Protected Item Configuration Menu
Once the device name is entered, you'll see the Protected Item configuration menu with the following options:
Edit Protected Item: Modify an existing Protected Item configuration.
Add Protected Item: Set up a new Protected Item configuration.
Exit: Exit the configuration process (this will exit backupmanager).
To create or modify a backup, choose either Edit Protected Item or Add Protected Item.
Selecting a Protected Item Configuration
When editing an existing protected item, you will be presented with a list of previously configured items.
Use the arrow keys to navigate through the list of protected items.
Details of the active selection (Name and ID) will be displayed below for verification.
You can select an item by pressing Enter.
Example:
[Back]: Returns to the previous menu.
[List of protected items]: Displays all available source configurations for the logged-in user.
Configuration Options
Once a protected item is selected, you'll be able to configure the following settings:
Authentication: Configure database connection credentials.
Scripts: Create or modify RMAN backup scripts.
Storage Information: Specify backup storage location.
Save: Save changes.
Exit: Exit without saving changes.
1. Authentication Setup
Authentication is required for connecting to the Oracle database.
1.1 First-Time Setup
If you are configuring authentication for the first time, you’ll need to provide the following details:
Database Name: Name of the Oracle database.
Database DBID: Unique identifier of the Oracle database.
Database Username: The username to access the Oracle database.
Database Password: The corresponding password.
Database Host: The hostname or IP address of the Oracle database.
Database Port: The port on which the Oracle database is running (usually 1521).
Database Service Name: The service name of the Oracle database.
Database Role: Role of the database (sysdba, sysadmin, etc.).
1.2 Existing Authentication
If authentication has already been set up, you’ll see the following options:
View Database Configuration: View current database connection details.
Edit Database Configuration: Modify existing credentials.
Test Connection: Test if the provided credentials can successfully connect to the database.
2. Scripts Configuration
The Scripts section allows you to create or modify RMAN scripts used to back up the Oracle database.
2.1 Adding a New Script
When adding a new script, you’ll be asked to provide the following details:
Script Name: Choose a unique and descriptive name to identify the script.
Script Type:
Custom: Allows you to write a custom RMAN script to meet your specific backup requirements.
Automatic: backupmanager will generate a script for you based on the following configuration choices. Will be including control file and spfile as part of the automatic script backup.
Backup Type:
Full Backup: Backs up the entire database.
Level 0 Incremental Backup: A full backup that allows incrementals on top of it.
Level 1 Incremental Backup: Backs up only the changes since the last level 0 or level 1 backup.
Level 1 Cumulative Incremental: Backs up changes since the last level 0 backup.
2.2 Channel Configuration
RMAN allows parallel backups using channels, which can speed up the process. For each channel, configure the following:
Number of Channels: Specify the number of channels (between 1 and 10).
For each channel:
Identifier: A unique name or ID for the channel (use alphanumeric characters).
Staging Path: Path where backup pieces will be temporarily stored.
Staging Type: Choose between Local Disk or NFS (Network File System).
Storage Destination: Where the backup will be stored (e.g., local, cloud, or remote storage).
2.3 Archive Log Inclusion
Choose whether to include Archive Logs in your backup. Including archive logs is generally recommended as it allows you to restore the database to any point in time.
3. Storage Information
In this section, specify where the backup details will be stored:
Primary Storage Location: Define the destination for the backup inventory which contains backup details.
When modifying the storage vault in the storage information section, it's crucial to understand that this change will be applied to all existing scripts configured.
4. Saving the Configuration
Once all the configurations are completed, make sure to save your changes. Select Save from the main configuration menu to ensure your settings are applied.
5. Exiting the Configuration
After saving your changes, you can exit the backupmanager utility by selecting Exit from the main menu. Be sure to save your work before exiting.
You can gracefully exit the backupmanager at any point during the process by pressing "Ctrl+C".
Last updated