I cannot connect to the Informix server using pyodbc >= 5.0 with the OneDB Linux 64-bit ODBC Driver. There is no issue when using pyodbc < 5.0.
python error:
Traceback (most recent call last):
File "/usr/local/airflow/informix_pyodbc.py", line 32, in
conn = pyodbc.connect(conn_str, ansi=True)
pyodbc.Error: ('H000', '[H000] [ (-11060) (SQLDriverConnect)')
FAILURE! A connection error occurred.
This is likely due to an incorrect ServerName, Database, UID, or PWD.
--- ERROR DETAILS ---
('H000', '[H000] [ (-11060) (SQLDriverConnect)')
ODBC trace log:
[ODBC][5421][1751284780.466418][__handles.c][499]
Exit:[SQL_SUCCESS]
Environment = 0x2b9e280
[ODBC][5421][1751284780.473963][SQLSetEnvAttr.c][189]
Entry:
Environment = 0x2b9e280
Attribute = SQL_ATTR_ODBC_VERSION
Value = 0x3
StrLen = 4
[ODBC][5421][1751284780.483959][SQLSetEnvAttr.c][381]
Exit:[SQL_SUCCESS]
[ODBC][5421][1751284780.491650][SQLAllocHandle.c][395]
Entry:
Handle Type = 2
Input Handle = 0x2b9e280
UNICODE Using encoding ASCII 'UTF-8' and UNICODE 'UCS-2LE'
[ODBC][5421][1751284780.492689][SQLAllocHandle.c][531]
Exit:[SQL_SUCCESS]
Output Handle = 0x2ac36b0
[ODBC][5421][1751284780.494001][SQLDriverConnectW.c][298]
Entry:
Connection = 0x2ac36b0
Window Hdl = (nil)
Str In = [DRIVER=/opt/hcl/onedb_driver/onedb-odbc-driver/lib/cli/iclit09b.so;HostName=xxx.xxx.xxx.xxx;ServiceName=50001;ServerName=xxxxx...][length = 320 (SQL_NTS)]
Str Out = (nil)
Str Out Max = 0
Str Out Ptr = (nil)
Completion = 0
[ODBC][5421][1751284780.509374][SQLDriverConnectW.c][869]
Exit:[SQL_ERROR]
[ODBC][5421][1751284780.509822][SQLGetDiagRecW.c][535]
Entry:
Connection = 0x2ac36b0
Rec Number = 1
SQLState = 0x7fffe5b30ae4
Native = 0x7fffe5b30abc
Message Text = 0x2ad6190
Buffer Length = 1023
Text Len Ptr = 0x7fffe5b30aba
[ODBC][5421][1751284780.510154][SQLGetDiagRecW.c][596]
Exit:[SQL_SUCCESS]
SQLState = [H]
Native = 0x7fffe5b30abc -> -11060 (32 bits)
Message Text = [[]
[ODBC][5421][1751284780.510516][SQLFreeHandle.c][290]
Entry:
Handle Type = 2
Input Handle = 0x2ac36b0
[ODBC][5421][1751284780.510821][SQLFreeHandle.c][339]
Exit:[SQL_SUCCESS]
I cannot connect to the Informix server using pyodbc >= 5.0 with the OneDB Linux 64-bit ODBC Driver. There is no issue when using pyodbc < 5.0.
python error:
Traceback (most recent call last):
File "/usr/local/airflow/informix_pyodbc.py", line 32, in
conn = pyodbc.connect(conn_str, ansi=True)
pyodbc.Error: ('H000', '[H000] [ (-11060) (SQLDriverConnect)')
FAILURE! A connection error occurred.
This is likely due to an incorrect ServerName, Database, UID, or PWD.
--- ERROR DETAILS ---
('H000', '[H000] [ (-11060) (SQLDriverConnect)')
ODBC trace log:
[ODBC][5421][1751284780.466418][__handles.c][499]
Exit:[SQL_SUCCESS]
Environment = 0x2b9e280
[ODBC][5421][1751284780.473963][SQLSetEnvAttr.c][189]
Entry:
Environment = 0x2b9e280
Attribute = SQL_ATTR_ODBC_VERSION
Value = 0x3
StrLen = 4
[ODBC][5421][1751284780.483959][SQLSetEnvAttr.c][381]
Exit:[SQL_SUCCESS]
[ODBC][5421][1751284780.491650][SQLAllocHandle.c][395]
Entry:
Handle Type = 2
Input Handle = 0x2b9e280
UNICODE Using encoding ASCII 'UTF-8' and UNICODE 'UCS-2LE'
[ODBC][5421][1751284780.492689][SQLAllocHandle.c][531]
Exit:[SQL_SUCCESS]
Output Handle = 0x2ac36b0
[ODBC][5421][1751284780.494001][SQLDriverConnectW.c][298]
Entry:
Connection = 0x2ac36b0
Window Hdl = (nil)
Str In = [DRIVER=/opt/hcl/onedb_driver/onedb-odbc-driver/lib/cli/iclit09b.so;HostName=xxx.xxx.xxx.xxx;ServiceName=50001;ServerName=xxxxx...][length = 320 (SQL_NTS)]
Str Out = (nil)
Str Out Max = 0
Str Out Ptr = (nil)
Completion = 0
[ODBC][5421][1751284780.509374][SQLDriverConnectW.c][869]
Exit:[SQL_ERROR]
[ODBC][5421][1751284780.509822][SQLGetDiagRecW.c][535]
Entry:
Connection = 0x2ac36b0
Rec Number = 1
SQLState = 0x7fffe5b30ae4
Native = 0x7fffe5b30abc
Message Text = 0x2ad6190
Buffer Length = 1023
Text Len Ptr = 0x7fffe5b30aba
[ODBC][5421][1751284780.510154][SQLGetDiagRecW.c][596]
Exit:[SQL_SUCCESS]
SQLState = [H]
Native = 0x7fffe5b30abc -> -11060 (32 bits)
Message Text = [[]
[ODBC][5421][1751284780.510516][SQLFreeHandle.c][290]
Entry:
Handle Type = 2
Input Handle = 0x2ac36b0
[ODBC][5421][1751284780.510821][SQLFreeHandle.c][339]
Exit:[SQL_SUCCESS]