DSX LOCAL:无法连接到本地主机上的DB2

时间:2018-06-19 15:00:37

标签: data-science-experience

我无法连接到本地托管的DB2数据库。我收到以下错误-

  1 import ibm_db as db
  2 #import db2

----> 3 conn = db.connect(“ DATABASE = SAMPLE; HOSTNAME = 127.0.0.1; PORT = 50000; PROTOCOL = SOCKETS; UID = db2inst1; PWD = db2inst2;”,“”,“”)       4 #conn = db2.connect('dsn = Local_database','db2inst1','db2inst1')

异常:[IBM] [CLI驱动程序] SQL1013N找不到数据库别名或数据库名称“”。 SQLSTATE = 42705 SQLCODE = -1013

0 个答案:

没有答案