Solved

DB2 Connect times out after 60 minutes...

Posted on 2004-03-24
3
579 Views
Last Modified: 2012-05-04
I have a query and reporting tool installed on Solaris.  We have some very long running queries.  Going against Oracle, there seems to be no problem, leading me to believe that the reporting engine (except for potentially the data access libs) is working fine.  

When we run any long running query against db2/390, if the join time is over 60 minutes, there is nothing returned ever and the query on the db2 side goes to an RUW waiting state.

On windows, the tool appears to work fine.  If the query starts returning data in 50 minutes and this takes longer than 10 minutes, then we're fine.  It's only if the client waits for more than 60 minutes for feedback from db2 that we have a problem.

JDBC on the same box apparently has the same problem, (seems to time out, leaves process on host hanging in RUW), but not completely sure.

Does anyone know of a particular idle timeout for the db2 middleware (perhaps particular to DB2/390, not UDB) that can be examined?

Any thing I should look for in db2trc?

Thanks!  Micky

0
Comment
Question by:mickyfinn
3 Comments
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 10680747
There is a setting i believe in the mainframe version of DB2 which can be used to limit Distributed query execution time
this maybe what is affecting you...

i believe it just operates on the actual in "SQL" time so if the query only took 59minutes you'd be alright
even if it then took 20minutes to return the results over the network (assuming its set to 60mins)

sorry it been a while since i dealt with this so can't be more specific at present ....

DDS timeout ?

hth
0
 

Author Comment

by:mickyfinn
ID: 10681848
The problem with it being strictly on the DB2 Server side is that I can run queries against these databases from windows boxes using udbconnect or businessobjects (which uses cli).  It appears that this is some sort of setting on the Solaris client side.  I had thought it might be a problem with WebIntelligence, but jdbc connections appear to behave similarly. :(

Micky
0
 
LVL 2

Accepted Solution

by:
LordSilk earned 500 total points
ID: 10769871
hi,

I don't know if this question is still an issue but anyway...

You can try and locate the DB2cli.ini file (part of DB2rtc) on your solaris machine and change (or add) "QUERYTIMEOUTINTERVAL = 0" (without any quotes).
I think it belongs in the common section.

Setting this value to 0 will disable checking for timeouts (default it is 5 seconds I think, which means it check every 5 seconds if a query has exceeded a specified timeout (60 minutes in your case)).

Hope this helps...
Silk





0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now