Question : DB2 Connection Interrupted

Hello DB2 Experts

This is my first time on list. please help me

Here is our problem :

A DB2 session (i.e. DB2 client software on Client  talking to the DB2 database on Server) fails if it is idle for a long time (maybe a day).

We use DB2 with WindowNT on both Client and Server

In a DOS window, type db2cmd to open a DB2 window.
Then type

db2 connect to ASP user NAME205 using NAME205
 and press Enter (this connects us to the database).

Then type
db2 select logonid from user where logonid='1050'
 (actually, any valid command will do) and press Enter. These two commands work perfectly.

Now wait for one day. Next day, type
db2 select logonid from user where logonid='1050'
and press Enter again.

Now the command fails with the message

SQL30081N  A communication error has been detected.  Communication protocol being used: "TCP/IP".  Communication API being used: "SOCKETS".  Location where the error was detected: "0.168.180.228".  Communication function detecting the error: "send".  Protocol specific error code(s): "10054", "*", "0".  SQLSTATE=08001
So now we have lost the connection to the database.

We can make the connection again by typing  
db2 connect to ASP user NAME205 using NAME205
 again. But we want the connection to stay forever.

10054 means WSAECONNRESET (10054) Connection reset by peer.

Please help me or let me who to contact .
Thank you very much in advances

Best Regards

TRANCT

Answer : DB2 Connection Interrupted

Per recommendation, points refunded and question closed.

Netminder
CS Moderator
Random Solutions  
 
programming4us programming4us