Can't connect zOS via Python due to license issues

240 views
Skip to first unread message

MaGi

unread,
Feb 19, 2018, 7:49:05 AM2/19/18
to ibm_db
Hello,

I got the problem, that I cannot connect to the database when I run the following script:

import ibm_db

ibm_db.connect("DATABASE=xxxx;HOSTNAME=xxxx;PORT=xxxx;PROTOCOL=TCPIP;UID=xxxx;PWD=xxxx;", "", "")

After executing I retrieve:

SQLCODE=-1598M][CLI Driver] SQL1598N  An attempt to connect to the database server failed because of a licensing problem.  SQLSTATE=42968

I know that I need a license file which I do have but I don't know where to put/install them into on my client.
I got following files:

db2jcc_license_cisuz.jar
db2jcc_license_cu.jar

I could connect to the Database by using QMF for Workstation and adding the .jars, so I assume everything is alright with the files.

Thanks in advance!

Saba Kauser

unread,
Feb 19, 2018, 8:02:19 AM2/19/18
to ibm_db

What do you see when you install the db2jcc* jars. I am not expecting them to be licenses.

For connecting to zOS, you would either need client side license files or Db2 Connect Unlimited Edition for System Z(server based license installed via db2connectactivate jar utility).

Let me know if you plan to buy and I can connect you to respective channel.

 

Thanks!
Reply all
Reply to author
Forward
0 new messages