PowerProtect: How to Perform a Redirected Restore with Oracle RMAN Agent
Summary: The following is a process for performing a redirected restore using the RMAN Agent.
Instructions
Step 1:
Install the PowerProtect App Direct RMAN Agent (standalone) onto a target system. Do not register with PowerProtect Data Manager (registration steps can be completed after the restore as an optional step. Registration cannot be performed at this stage as edits must be made to the Database to ensure proper discovery and avoid an elastic search database collision.)
Step 2:
Gather the storage unit name and password generated by the PowerProtect Data Manager policy from the PowerProtect Data Manager server by going to the directory:
/usr/local/brs/puppet/scripts
From there, you obtain the storage-unit username and password by typing the following command:
./get_dd_mtree_credential.py <MTree-name>
This command provides the username and password of the MTree. (If this is for a non-PowerProtect Data Manager generated backup, continue using the username and password for the MTree you previously backed up to.)
Step 3:
On the target system, go to the:
<Rman_agent_install_directory>/bin
Run:
./ddutil -C
Follow the prompts.
- Enter the name or IP address of the Data Domain
- Enter the username for the MTree (or DDboost user that owns the MTree for non-PPDM driven backups)
- Enter the corresponding password
Step 4:
From:
<Rman_agent_install_directory>/bin
Run:
./ddutil -f -z <dd_name>:<storage_unit_name>
This command presents a list of available backups to restore. If it does not, ensure that the lockbox was created with the correct username and password.
Step 5:
Perform the restore operation. Here is an example script using RMAN:
connect target *
RUN {
ALLOCATE CHANNEL CH1 TYPE 'SBT_TAPE' TRACE 5 PARMS 'BLKSIZE=1048576,
SBT_LIBRARY=libddobk.so, ENV=(STORAGE_UNIT=rman_su, BACKUP_HOST=blrv071a091.lss.emc.com,
RMAN_AGENT_HOME=/opt/dpsapps/rmanagent/)';
ALLOCATE CHANNEL DDBEA1 TYPE SBT_TAPE PARMS
‘BLKSIZE=1048576, SBT_LIBRARY= SBT_LIBRARY=/opt/dpsapps/dbappagent/lib/lib64/
libddboostora.so,ENV=(CONFIG_FILE=/orasnb/oracle_ddbda.cfg)’
RESTORE DATABASE;
RECOVER DATABASE
RELEASE CHANNEL CH1;
}
If the restore system should be discovered and registered with PowerProtect Data Manager, contact support to check dependencies before registration with PowerProtect Data Manager. This assures no faults in the Elastic search database upon discovery.
Failure to resolve these dependencies results in discovery or backup failures.