var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: who can help me? about jdbc
I connect to db2 use jdbc ,the programe is :
Connection db = DriverManager.getConnection("jdbc:db2:dl","db2inst 1","db2inst1");
Statement stmt = db.createStatement();
Connection db_exec = DriverManager.getConnection("jdbc:db2:dl","db2inst 1","db2inst1");
Statement ppstmt = db_exec.createStatement();
the result of run is :
$ java ImChangeData 3 Dj
[IBM][CLI Driver] SQL1224N A database agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command. SQLSTATE=55032
What's the mater?
I've never used JDBC for DB2, but I'm pretty sure you have a bad connection string.
A different error would have been returned if it was a bad username or password.
A database agent could not be started to service a request
DriverManager.getConnection(url, dbUser, dbPass);
Parameter: url - a database url of the form jdbc:subprotocol:subname url is usually in the form:
I know, I use...
String url = "jdbc:sapdb://PARMA/HOTELDB";
Check out the documentation forthe DB2 connector and make sure your connection string is correct.
String url = "jdbc:sybase:Tds:MYHOST:PORT/DBNAME";