Python for z/OS

  • Install pythondev
  • Install DB2 or server driver package
  • easy_install ibm_db
  • Get license file from torolab.

   ftp://db2ftp.torolab.ibm.com:/devinst/db2_v95GA/licenses/s071001/consv_zs/db2/license/db2consv_zs.lic

 

  • 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;", "", "")
上一篇:使用OGG添加唯一标识字段到目标表


下一篇:2019-04-25-day040-数据库的查询