Linking NetBackup for Oracle with RMAN

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. Oracle uses this library when it needs to write to, or read from, devices

To link Oracle with NetBackup for Oracle

1. Become the Oracle user.

su - oracle

2. (Conditional) Shut down all of the Oracle instances (SIDs).

Perform this step if you are using an Oracle8 release. Oracle releases 9 and later do not need to perform this step.
The user must connect as the 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 in one of the following ways:Using OS Authentication:

sqlplus /nologconnect / as sysdbashutdown immediateexit

Using Oracle Authentication (via password file):

sqlplus /nologconnect userid/password as sysdbashutdown immediateexit

c. Change the $ORACLE_SIDenvironment variable to any other SID that uses this Oracle installation, and repeat the preceding commands.

3. Set up automatic linking.

Change directory to /usr/openv/netbackup/bin/

Run the oracle_linkscript:./oracle_link

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

4. Restart the Oracle instances.

Manually Linking HP-UX (64-bit) Using 64-bit Oracle9i or Later Software

Use this procedure for Oracle 9i or later releases.

▼ To link manually

1. Type the following the cd(1) command to change directories:

cd $ORACLE_HOME/lib

2. Type the following ls(1) command to determine whether the Oracle library exists:

ls -l libobk.*

3. (Conditional) Use the mv(1) command to move the Oracle library to an alternate location.

Perform this step if the output from step 2 shows that libobk.slor libobk.a are present.

If libobk.sl exists, type the following command:

mv libobk.sl libobk.sl.orig

If libobk.a exists, type the following command:

mv libobk.a libobk.a.orig

4. Type the following ln(1) command to create new links:

ln -s /usr/openv/netbackup/bin/libobk.sl64 libobk.sl

0 comments: