SYMPTOM:
In Strategy Intelligence Server Universal 10.x on Linux, connecting to Actian Vector3.x Database via mstrtodbcx, below error occurs:
[Error] Connect failed. Error type: Odbc error. Odbc operation attempted: SQLDriverConnect. [82:0: on SQLHANDLE] 523 80 Connection String: DSN=xxx;UID=xxx;
[Error] Connect failed. Error type: Odbc error. Odbc operation attempted: SQLDriverConnect. [IM003:0: on HDBC] [DataDirect][ODBC lib] Specified driver could not be loaded.
DSN information from odbc.ini file:
[DSN NAME] Driver=/opt/Actian/Vector_Client/ingres/lib/libiiodbcdriver.1.so Description= Vendor=Actian Corporation DriverType=Ingres Server=mstr_vw Database=fgdwprd ServerType=Ingres PromptUIDPWD= WithOption= RoleName= RolePWD= DisableCatUnderscore=N AllowProcedureUpdate=N UseSysTables=N BlankDate=N Date1582=N CatConnect=N Numeric_overflow=N SupportIIDECIMAL=N CatSchemaNULL=N ReadOnly=N SelectLoops=N ConvertThreePartNames=N Dbms_password= IngresDate=N StringTruncation=N
ACTION:
[DSN NAME] Driver=<location of installation of Ingres driver>/lib/libiiodbcdriver.1.so Description= Vendor=Ingres Corporation DriverType=Ingres Server=<NAME or IP ADDRESS OF DATABASE SERVER> Database=<NAME OF DATABASE HOSTING WH TABLES> ServerType=Ingres PromptUIDPWD= WithOption= RoleName= RolePWD= DisableCatUnderscore=N AllowProcedureUpdate=N UseSysTables=N BlankDate=N Date1582=N CatConnect=N Numeric_overflow=N SupportIIDECIMAL=N CatSchemaNULL=N ReadOnly=N SelectLoops=N ConvertThreePartNames=N Dbms_password= IngresDate=Y StringTruncation=N
#
# ODBC Driver for Actian Vectorwise
#
II_SYSTEM=/opt/Ingres/IngresII
if ; then
export II_SYSTEM
mstr_append_path LD_LIBRARY_PATH "${II_SYSTEM:?}"/ingres/lib
export LD_LIBRARY_PATH
fi