java -cp ./opt/IBM/db2/V8.1/java/db2jcc.jar 问题
[root@ESPServer /]# java -cp ./opt/IBM/db2/V8.1/java/db2jcc.jar com.ibm.db2.jcc.
DB2Binder -url jdbc:db2://111.111.1.1:50000/cimx -user YOUUSER -password YOUPASSWORD
不知道这样的错误怎么解决?!谢谢!
Failure to create connection for binding.
[SQLException@4413ee] java.sql.SQLException
[SQLException@4413ee] SQL state = null
[SQLException@4413ee] Error code = -99999
[SQLException@4413ee] Message = The version of the IBM Universal JDBC driver
in use is not licensed for connectivity to DB2 for Unix/Windows databases. To c
onnect to this DB2 server, please obtain a licensed copy of the IBM DB2 Universa
l Driver for JDBC and SQLJ.
[SQLException@4413ee] Stack trace follows
com.ibm.db2.jcc.c.SqlException: The version of the IBM Universal JDBC driver in
use is not licensed for connectivity to DB2 for Unix/Windows databases. To conn
ect to this DB2 server, please obtain a licensed copy of the IBM DB2 Universal D
river for JDBC and SQLJ.
at com.ibm.db2.jcc.c.l.E(l.java:1584)
at com.ibm.db2.jcc.c.l.D(l.java:1557)
at com.ibm.db2.jcc.a.b.<init>;(b.java:199)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:131)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at com.ibm.db2.jcc.c.g.a(g.java:35)
at com.ibm.db2.jcc.DB2Binder.binderMain(DB2Binder.java:115)
at com.ibm.db2.jcc.DB2Binder.main(DB2Binder.java:81)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[root@ESPServer /]# java -cp ./opt/IBM/db2/V8.1/java/db2jcc.jar com.ibm.db2.jcc.
DB2Binder -url jdbc:db2://111.111.1.1:50000/cimx -user YOUUSER -password YOUPASSWORD
上面的命令从网上得知能解决莫名其妙取不出db2数据的问题,不知道为什么运行不了。
http://dbforums.com/t716221.html