When the Oracle environment has some SBT library conflicts that causes the Commvault backups to fail, you must relink the SBT library to load the Commvault SBT library in the $ORACLE_HOME/lib path.
Before You Begin
Set the sNOSBTLIBNAME Additional Setting to Skip Passing SBT_LIBRARY to the Allocate Channel Command
Procedure
-
On the Oracle Agent host command line go to software_installation_folder/iDataAgent and run the Ora_install.sh file as a root user.
[root@dbserve22 iDataAgent]# ./Ora_install.sh
-
At the command prompt, type the Oracle user ID and press Enter.
Please enter ORACLE_USER ID: oracle
-
At the command prompt, type the user group and press Enter.
Please enter user group for oracle [dba]: oinstall
-
At the command prompt, type the Oracle home directory and press Enter.
Please enter ORACLE_HOME directory: /home/oracle/app/oracle/product/11.2.0/dbhome_1
-
At the command prompt, type the home directory of the Oracle root user and press Enter.
Please enter the home directory of user oracle [~oracle]: /home/oracle
-
At the command prompt, type n and press Enter.
Would you like to relink Commvault with different ORACLE_HOME now(y/[n])?n
-
Verify the SBT library is in the specified in the Oracle_HOME/lib directory. On the command line, go to Oracle_HOME/lib and type the following command:
ls -l /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libobk.so lrwxrwxrwx 1 root root 27 May 29 13:02 libobk.so -> /opt/commvault/Base/libobk.so
Result
The $ORACLE_HOME/lib path links to the Commvault SBT library.
To verify the SBT library path, run the following RMAN script:
run
{
allocate channel ch1 type sbt
trace 2;
}
If the script is able to load the Commvault SBT library, the following output is displayed.
allocated channel: ch1
channel ch1: SID=90 device type=SBT_TAPE
channel ch1: Commvault Systems for Oracle: Version 11.0.0(BUILD80)
released channel: ch1