How to modify the rman restore script – HP A.06.11 User Manual

Page 151

Advertising
background image

Action

To resolve the problem:

1.

Close Data Protector.

2.

Set the environment variable on the system where the Cell Manager resides:

OB2_ORARESTHOSTNAME = target_Oracle_host

3.

Restart Data Protector and try to restore the database items again.

4.

When the restore is complete, close Data Protector and re-set the following
environment variable:

OB2_ORARESTHOSTNAME = empty

5.

Restart Data Protector.

Problem

How to modify the RMAN restore script

When you start a restore of an Oracle database using the Data Protector GUI or CLI,
an RMAN restore script is created, which is instantly run, so you cannot edit it first.

Action

To edit the script before it is run, set the Data Protector omnirc variable
OB2RMANSAVE

to point to an existing directory. When the variable is set and you

start a restore, the RMAN restore script, which is created at run time, is saved to the
specified location under the name
RMAN_restore_backup_specification_name.rman

, and the actual restore

is skipped. Then you can edit the script and run it manually afterwards. On how to
set the omnirc variable, see the online Help index: “omnirc options”.

To start a restore using Data Protector again, clear the OB2RMANSAVE variable by
deleting its content or commenting or removing the whole variable. If you comment
or remove the variable on a Windows client, restart the Data Protector Inet service
for the settings to take effect.

Integration guide for Oracle and SAP

151

Advertising