- Install pythondev
- Install DB2 or server driver package
- easy_install ibm_db
- Get license file from torolab.
- Run follow command:
db2licm –a db2consv_zs.lic
- Test your connection:
import ibm_db
ibm_db.connect("DATABASE=name;HOSTNAME=host;PORT=60000;PROTOCOL=TCPIP;UID=username;
PWD=password;", "", "")