Solved

DB2 Connect times out after 60 minutes...

Posted on 2004-03-24
3
586 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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