IBM Support

IBM Directory Server fails with "SQLAllocEnv" error msg when starting

Question & Answer


Question

When enabling SSL communication for ITIM (IBM Tivoli Identity Manager), we stop and start ibmslapd but this error message appears : Error code -1 from odbc string:" SQLAllocEnv " . Error encountered. Server starting in configuration only mode. Configuration read securePort 636. Plugin of type EXTENDEDOP is successfully loaded from libloga.a. Non-SSL port initialized to 389. SSL port initialized to 636. Local UNIX socket name initialized to /tmp/s.slapd.

Cause

We had two different DB2 versions (7 and 8) installed on same machine and two DB2 instances related to each version.

LIBPATH ENV variable was pointing to library path for DB2 Instance related to version 7 when it supposed to be set to DB2 version 8 library path.

Answer

Change and export the LIBPATH environment variable in order to point to the library path related to correct DB2 version.

Example: export LIBPATH=/usr/lib:/usr/ldap/lib:/lib/usr/opt/db2_08_01/lib64:/home/ldapdb2/sqllib/lib

Also execute the db2profile related to your DB2 instance.

Example: . /home/ldapdb2/sqllib/db2profile

[{"Product":{"code":"SSVJJU","label":"IBM Security Directory Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.1","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21172734