> This is exactly what I've done. It seems that my Db2 server must be
> configured incorrectly. I've used the configuration assistant to
> enable TCPIP and pointed it to the correct service name and port 60000
> (in my case).

Signature
Knut Stolze
Information Integration Development
IBM Germany / University of Jena
yes, I've done that. :) unfortunately with no luck.
Do you know what the DB2 java enablement program is and where I can
find it? Some of the sample say I must install this?
Current error I'm getting
Exception in thread "main" com.ibm.db2.jcc.b.SqlException: DB2 SQL
error: SQLCOD
E: -30081, SQLSTATE: 08001, SQLERRMC:
10053;*;*;TCP/IP;SOCKETS;127.0.0.1;recv;
at com.ibm.db2.jcc.b.o.a(o.java:3467)
at com.ibm.db2.jcc.c.db.q(db.java:734)
at com.ibm.db2.jcc.c.db.n(db.java:575)
Ian - 28 Jun 2005 15:40 GMT
> yes, I've done that. :) unfortunately with no luck.
>
> Do you know what the DB2 java enablement program is and where I can
> find it? Some of the sample say I must install this?
If you're running the java app on your server (I assume that's the
case because you are using 127.0.0.1), then you've got everything
you need.
> Current error I'm getting
>
[quoted text clipped - 5 lines]
> at com.ibm.db2.jcc.c.db.q(db.java:734)
> at com.ibm.db2.jcc.c.db.n(db.java:575)
This is a generic TCPIP error. Can you post your database manager
configuration (db2 get dbm cfg), /etc/services file and output from
'db2set'
Knut Stolze - 28 Jun 2005 18:49 GMT
> yes, I've done that. :) unfortunately with no luck.
>
[quoted text clipped - 10 lines]
> at com.ibm.db2.jcc.c.db.q(db.java:734)
> at com.ibm.db2.jcc.c.db.n(db.java:575)
With being local, you should try to catalog the database via tcp/ip and then
connect to it.
$ db2 catalog tcpip node local remote localhost server <db2-port-number>
$ db2 catalog db sample as test at node local
$ db2 connect to test user <login> using <password>
If that doesn't work, then you have some problem with your network setup on
the machine (firewall?) that needs to be sorted out first.

Signature
Knut Stolze
Information Integration Development
IBM Germany / University of Jena