当前位置: 技术问答>java相关
jbuilder7中如何加入db2 jdbc驱动?为什么我的老是出问题?
来源: 互联网 发布时间:2015-11-10
本文导语: driver:COM.ibm.db2.jdbc.net.DB2Driver url:jdbc:db2://localhost/database-name 错误: [IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01 See com.borland.dx.dataset.DataSetException error code: BASE+66 com.borland.dx.dataset....
driver:COM.ibm.db2.jdbc.net.DB2Driver
url:jdbc:db2://localhost/database-name
错误:
[IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01
See com.borland.dx.dataset.DataSetException error code: BASE+66
com.borland.dx.dataset.DataSetException: [IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01
at com.borland.dx.dataset.DataSetException.a(Unknown Source)
at com.borland.dx.dataset.DataSetException.throwException(Unknown Source)
at com.borland.dx.dataset.DataSetException.SQLException(Unknown Source)
at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.e.run(Unknown Source)
Chained exception:
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.socketException(SQLExceptionGenerator.java:579)
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java:251)
at COM.ibm.db2.jdbc.net.DB2Connection.(DB2Connection.java:209)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:219)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.e.run(Unknown Source)
添加方式为:toolconfigure libraries引入sqllibjavadb2java.zip文件。
为什么会提示此错误?
url:jdbc:db2://localhost/database-name
错误:
[IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01
See com.borland.dx.dataset.DataSetException error code: BASE+66
com.borland.dx.dataset.DataSetException: [IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01
at com.borland.dx.dataset.DataSetException.a(Unknown Source)
at com.borland.dx.dataset.DataSetException.throwException(Unknown Source)
at com.borland.dx.dataset.DataSetException.SQLException(Unknown Source)
at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.e.run(Unknown Source)
Chained exception:
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E 打开套接字时出错。SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.socketException(SQLExceptionGenerator.java:579)
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java:251)
at COM.ibm.db2.jdbc.net.DB2Connection.(DB2Connection.java:209)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:219)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source)
at com.borland.jdbcx.metadata.e.run(Unknown Source)
添加方式为:toolconfigure libraries引入sqllibjavadb2java.zip文件。
为什么会提示此错误?
|
url中localhost后面加上端口号50002
在命令窗口中执行:db2jstrt 50002
在命令窗口中执行:db2jstrt 50002