How to link Oracle DB(RMAN) with NetBackup on Unix/Linux

Problem:
NetBackup introduces support for Oracle DB on the Unix/Linux platform, but the oracle_link script that is provided with the install fails to create the needed symbolic links between the Oracle installation directory and the NetBackup installation directory.

Error Message:
If the oracle_link script is executed, it will display a message similar to the following and backups of the Oracle instance will not utilize the NetBackup implementation of the Oracle SBT API.

Oracle version:11.2.0.2.0

This version of Oracle is not supported in this script

Solution:
On the client host, manually create the needed symbolic link between the Oracle installation and the NetBackup installation.

  1. Confirm that the NetBackup shared libraries are present on the client host and of the correct version.

NOTICE: the NetBackup shared library name is : In Solaris libobk.so64.1 and in Linux libobk.so64 .

[root @ unixonline]~ #  cd /usr/openv/netbackup/

Unix OS(Solaris):
[root @ unixonline]/usr/openv/netbackup # ./bin/goodies/support/versioninfo -f bin/libobk.so64.1
======= bin/libobk.so64.1 =======
@(#) NetBackup_7.6.0.1 1496106894

Linux OS(RHEL):
[root@unixonline /usr/openv/netbackup]# ./bin/goodies/support/versioninfo -f bin/libobk.so64
======= bin/libobk.so64 =======
@(#) NetBackup_7.6.0.1 1172785474

2. Go to ORACLE_HOME and Check for an existing libobk.so being used by Oracle and rename if present.(Optional Step)

[root @ unixonline]~ # cd $ORACLE_HOME/lib

[root @ unixonline]/lib # ls libobk.so
libobk.so

[root @ unixonline]/lib # mv libobk.so libobk.so.orig

3. Create the symbolic link to the NetBackup shared library.

Unix OS(Solaris):
[root @ unixonline]/oracle/product/102/db_1/lib # ln –s /usr/openv/netbackup/bin/libobk.so64.1 libobk.so

Linux OS(RHEL):
[root @ unixonline]/oracle/product/11.2.0.4/db_1/lib # ln –s /usr/openv/netbackup/bin/libobk.so64 libobk.so

4. Check and confirm the symbolic link to the NetBackup shared library.

Unix OS(Solaris):
[root @ unixonline]/oracle/product/102/db_1/lib # ls -al libobk.so
lrwxrwxrwx   1 root     root          38 Apr 25  2016 libobk.so -> /usr/openv/netbackup/bin/libobk.so64.1

Linux OS(RHEL):
[root@unixonline lib]# ls -al libobk.so
lrwxrwxrwx 1 root root 36 Jan 28 17:58 libobk.so -> /usr/openv/netbackup/bin/libobk.so64

Leave a Comment