Wednesday, January 27, 2010

Linking NetBackup for Oracle with RMAN

Linking RMAN with a library provided by NetBackup for Oracle on UNIX is the only NetBackup requirement. Before writing to sequential devices such as tape, you must link the Oracle Server software with the media management API library installed by NetBackup for Oracle on UNIX. Oracle uses this library when it needs to write to, or read from devices supported by Media Manager.

To link Oracle with NetBackup for Oracle on UNIX

1. Become the Oracle user.

su -oracle

2. Shutdown all of the Oracle instances (SIDs). The user must connect as sysdba, either using OS Authentication or Oracle Authentication (set up in the Oracle password file). The following example is for Oracle9i.

Set the ORACLE_SID environment variable to the first SID.

Connect as sysdba using OS Authentication:

sqlplus /nolog
connect / as sysdba
shutdown immediate
exit

Connect as sysdba using Oracle Authentication (via password file):

sqlplus /nolog
connect userid/password as sysdba
shutdown immediate
exit

Change the ORACLE_SID environment variable to any other SID that uses this Oracle installation and repeat above commands.

3. Set up automatic linking.

a. Change directory to install_path/netbackup/bin/
normally is /usr/openv/netbackup/bin

b. Run the oracle_link script:

./oracle_link

This script determines the Oracle version level and then links Oracle to NetBackup accordingly. All output from this script will be captured in a /tmp/make_trace.pid file. To change the trace file location, change the MAKE_TRACE variable in the oracle_link script.

No comments:

Post a Comment