NetBackup Redirected Oracle Restore For UNIX and Linux
NetBackup Redirected Oracle Restore For UNIX and Linux
Redirected restore
The user on client A cannot initiate a redirected restore to client B. Only the user
on client B, which is the client receiving the backup image, can initiate the
redirected restore. Any user who belongs to the database group that performed
the backup can restore it, unless the BKUP_IMAGE_PERM variable is set to USER.
The following sections describe how to perform a redirected restore using Oracle
RMAN.
To allow clients to restore only from specific clients, create the following file on
the NetBackup master server:
UNIX/Linux: /usr/openv/netbackup/db/altnames/client_name
Windows: install_path\NetBackup\db\altnames\client_name
Where client_name is the name of the client that is allowed to perform the
redirected restore (the destination client). To the file, add the name of the
NetBackup for Oracle source client.
Enable a network connection to the RMAN catalog database that the source
client used.
On UNIX and Linux, check the bp.conf files on the source client. Make sure
that the CLIENT_NAME variable either is not set or is set to the hostname of
the source client.
Make the init.ora file of the source client available to the destination client.
Copy the file to the destination client or modify the file on the destination
client. Change all location-specific parameters.
On Windows, create and start an Oracle service for the previously set
ORACLE_SID. Create the folder to which you want to restore the data files.
101
102
On UNIX and Linux, grant write permission to the directory to which you
want to restore the data files.
10 On UNIX and Linux, set dbid to be the DBID of the source client database.
Connect to the target database without using a user ID and password.
11 Run an RMAN restore script. On UNIX and Linux, you can alternatively type
the RMAN commands for the restore.
ORACLE_SID is test
The user is connected to the Oracle database using a local connection, not
SQL*Net
Modify the network tnsnames.ora file to enable the RMAN catalog connection.
Create inittest.ora.
Set the environment variable ORACLE_SID to test. On UNIX and Linux, also
set NB_ORA_CLIENT to camel.
Make sure that the destination database directory exists and has appropriate
access permissions.
The data files are restored to the directory path with the same name they had
when they were backed up.
103
104
Now apply the archived logs. Type cancel when you decide to stop recovery.
10 Run rman.
rman rcvcat rman/rman@rcat
Recovery Manager: Release 8.0.5.0.0 - Production
RMAN> @restore_database.rcv
105