If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Timeout / SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-03, 08:36
c149187 c149187 is offline
Registered User
 
Join Date: Jul 2003
Posts: 50
Timeout / SQL

Hi

Is there a possibility to set a timeout for queries, for example to specify that a query mustn't execute more than 30 seconds ?

UDB 8.1 / Unix

Marc
Reply With Quote
  #2 (permalink)  
Old 12-10-03, 09:05
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
Hi

You can use DB2 Governor.

Regards
Prakash
Reply With Quote
  #3 (permalink)  
Old 12-10-03, 09:30
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
CLI Parameter.

Hi Guess,

There is a CLI parameter that can also be set for the same.

Please refer to the link below..

http://www.db2.jp/db2manual/en_US/in...d/r0008809.htm

Hope that helps

Nitin.
Reply With Quote
  #4 (permalink)  
Old 12-11-03, 02:47
c149187 c149187 is offline
Registered User
 
Join Date: Jul 2003
Posts: 50
Thanks

I have also found in JDBC the following method:

---
int queryTimeout = 30;
statement.setQueryTimeout(queryTimeout);
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On