Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connect to db2 8 error using JDBC

 
hu jingxuan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code is
Class.forName( "com.ibm.db2.jcc.DB2Driver" );
Connection cn = DriverManager.getConnection("jdbc b2://victor:50000/TOOLSDB","db2admin","db2admin");
the warning is
com.ibm.db2.jcc.b.DisconnectException: encoding not supported!!
at com.ibm.db2.jcc.a.ba.a(ba.java:499)
at com.ibm.db2.jcc.a.bb.br(bb.java:3904)
...
at com.ibm.db2.jcc.a.b.<init>(b.java:207)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:244)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at myprojects.dbcon.DbCon.connection1(DbCon.java:126)
at myprojects.dbcon.DbCon.main(DbCon.java:165)
The db2's version is Chinese Version.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic