Unix Technical Forum

query timeout

This is a discussion on query timeout within the DB2 forums, part of the Database Server Software category; --> Hi all, I'm writing an ODBC application on NT Server, accessing a db2 udb v 8.1.6 database on AIX. ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 01:27 AM
Abram Friesen
 
Posts: n/a
Default query timeout

Hi all,

I'm writing an ODBC application on NT Server, accessing a db2 udb v
8.1.6 database on AIX. I'd like to issue a query, and if the
table/page/row is locked, to timeout instantly, rather than wait for
the lock to expire.

I can't modify the LOCKTIMEOUT parameter for the database because
ultimately the customer will have control over it, and my application
won't be the only one using that database.

By setting the statement attribute SQL_ATTR_QUERY_TIMEOUT to 1, and
setting QUERYTIMEOUTINTERVAL=1 in the db2cli.ini, I've managed to get
down to a 3 second timeout. Is there any way to further reduce the
timeout? I'd really appreciate any advice on this.

Thanks,

Abram Friesen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com