Troubleshooting
Problem
You are activating ATAP for SYBASE in IBM Security Guardium using the grdctl command, for example :
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl --db-instance=
Symptom
grdctl command fails with error:
<SYBASE HOME>/bin/dataserver: error while
loading shared libraries: libsbgse2.so: cannot open shared object file: No such file or directory
Cause
SYBASE environment is not loaded so it can't find the library needed to complete the activation.
Diagnosing The Problem
You are in presence of this issue If the library exists but the grdctl activate command fails indicating it can not find the library. You confirm the library exists by:
1. login to the server with the SYBASE's account
2. check value for the library environment variable, example, LD_LIBRARY_PATH for Linux but variable name may be different in other platforms:
env | grep LD_LIBRARY_PATH
3. You confirm library libsbgse2.so exists in at least one of the paths listed in the library environment variable
Resolving The Problem
One of the following:
- load the SYBASE account environment before running the grdctl command. You can do this in different ways, the most usual one is to add the SYBASE environment to the root's .profile. Another method is to manually run a script that loads the SYBASE account's environment before you run the grdctl command.
- specify the full sybase version to grdctl command:
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl
db-instance=<instance name> db_type=sybase db_base=<base dir> db-version=157 db_user=sybase db-home=<sybase home> store-conf
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl
--db-instance=<instance name> activate
For example, for SYBASE 15.7 installed with base directory on /home/sybase, instance name A1, and sybase instance home directory on /local/a1/sybase/ase157
Command fails:
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl
db-instance=A1 db_type=sybase db_base=/home/sybase db-version=15 db_user=sybase db-home=/local/A1/sybase/ase157 store-conf
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl
--db-instance=A1 activate
<SYBASE HOME>/bin/dataserver: error while loading shared libraries: libsbgse2.so: cannot open shared object file: No such file or directory
Command works (note db-version=157 versus db-version-15):
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl
db-instance=A1 db_type=sybase db_base=/home/sybase db-version=157 db_user=sybase db-home=/local/A1/sybase/ase157 store-conf
/opt/IBM/guardium/modules/ATAP/current/files/bin/guardctl
--db-instance=A1 activate
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21965542