Closed RomeroGabriel closed 1 year ago
@RomeroGabriel It is a known issue with GSKit library that comes with the downloaded clidriver https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz
. To fix this issue, update your script to download https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/v11.5.4/linuxx64_odbc_cli.tar.gz. v11.5.4 clidriver do not has this problem. Thanks.
@bimalkjha Thanks a lot!!! This really solves the problem.
NB for those coming to this later the driver linked to above https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/v11.5.4/linuxx64_odbc_cli.tar.gz is the 32-bit driver
@paullilley How you concluded that its a 32bit driver? I downloaded https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/v11.5.4/linuxx64_odbc_cli.tar.gz on my linux system, set the PATH and DYLD_LIBRARY_PATH env vars to point to this clidriver and then executed db2level command. It shows, its a 64bit driver. Also, 64bit python and node applications works fine with it.
bjha@qasdevdbctdev05: work/bjha/nodework> db2level
DB21085I This instance or install (instance name, where applicable: "*") uses
"64" bits and DB2 code release "SQL11054" with level identifier "0605010F".
Informational tokens are "DB2 v11.5.4.0", "s2006161200", "DYN2006161200AMD64",
and Fix Pack "0".
Product is installed at "/work/bjha/nodework/clidriver".
bjha@qasdevdbctdev05: work/bjha/nodework>
So, this driver is 64 bit only. See the above db2level
command output from this driver that mentions it is a 64bit driver.
Also, regarding the original issue: We have updated default clidriver at https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz to Db2 V11.5.9.0 driver that contains fix for GSKit Error: 2
issue. So, no need to download v11.5.4 driver now. Just go with default installation steps. Thanks.
Ah, my mistake - apologies. Previously I've had problems with libdb2.so vs libdb2o.so. Thanks also for the update of the default driver with fixed GSKit!
Operating System Name:
macOS Ventura 13.4.1
&&Debian GNU/Linux 12 bookworm
db2level output from clidriver if in use:
Target Db2 Server Version:
Python Version:
3.10
and3.8
ibm_db version:
3.1.0
and3.1.4
For non-Windows, output of below commands: uname:
Linux
uname -m:x86_64
Value of below environment variables if set: IBM_DB_HOME:
IBM_DB_HOME /ibmdriver/clidriver (docker image)
PATH:LIB/LD_LIBRARY_PATH/DYLD_LIBRARY_PATH: LD_LIBRARY_PATH $LD_LIBRARY_PATH:$IBM_DB_HOME/lib
Test script to reproduce the problem.
Steps to Reproduce:
Context
I have a pipeline that’s encountering a strange issue when connecting to two databases. One database uses SSL but doesn't require a certificate. The other one also uses SSL and requires a .der certificate. ISSUE: If I first connect to .der certificate and then to the other one, I encounter the following error:
[IBM][CLI Driver] SQL10013N The specified library "GSKit Error: 2" could not be loaded. SQLSTATE=42724 SQLCODE=-10013
. However, if I connect to the one without .der file first there are no issues. This is happing for my macOS work notebook and also for the pipeline's docker image.Infos
pconnect
andconnect
functions;