Код: Выделить всё
OS: Fedora 40
Kernel: 6.10.6-200
Installed DB2 client: v11.5.9_linuxx64_client.tar.gz
python 3.12.5
ibm_db 3.2.3
Код: Выделить всё
$DB2INSTANCE db2inst1
$DB2_HOME /home/db2inst1/sqllib
$IBM_DB_HOME /home/db2inst1/sqllib
$LD_LIBRARY_PATH /home/db2inst1/sqllib/lib64:/home/db2inst1/sqllib/lib64/gskit:/home/db2inst1/sqllib/lib32
Код: Выделить всё
db2 "catalog tcpip node remote server
remote_instance "
db2 "catalog database as at node authentication SERVER_ENCRYPT"
Вот и часть Python
Я следовал инструкциям https://www.ibm.com/docs/en/db2/11.1?to ... ase-server
Код: Выделить всё
import ibm_db
conn = ibm_db.connect("DATABASE=;HOSTNAME=;PORT=;PROTOCOL=TCPIP;UID=;PWD=", "", "")
Код: Выделить всё
import ibm_db
conn = ibm_db.connect("", "", "")
Код: Выделить всё
Exception: [IBM][CLI Driver] SQL1531N The connection failed because the name specified with the DSN connection string keyword could not be found in either the db2dsdriver.cfg configuration file or the db2cli.ini configuration file. Data source name specified in the connection string: "". SQLCODE=-1531
(Я уже удалил ibm_db и переустановил его)
Подробнее здесь: https://stackoverflow.com/questions/790 ... ase-ibm-db