473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DB2 governor, is setlimit clause measured across one SQL,UOW,connection?

Hi,
>From reading manuals, it wasn't clear to me, if the DB2 governor's
setlimit configuration file clause, applies to each SQL, UOW or
connection. Only setlimit uowtime is specifically mentioned as elapsed
time since the start of UOW.

For example if I have,

setlimit cpu 60;
action force;

Does this mean, if an individual SQL statements exceeds 60 CPU second
usage, the connection will be forced off? Or when the CPU usage
accumulated across UOW (or connection) exceeds 60 seconds, the
connection is forced off? If the limit is not at SQL statement
granularity, is there a way I can force users who submit long running
SQLs and not force users who submit many short running SQLs even though
their accumulated CPU usage might exceed the limit?

TIA

P Adhia

Oct 16 '06 #1
2 3305
P. Adhia wrote:
Hi,

From reading manuals, it wasn't clear to me, if the DB2 governor's
setlimit configuration file clause, applies to each SQL, UOW or
connection.
If anyone is interested, the correct answer is "limits are measured
across connection boundary". DB2 governor isn't very useful in my
particular situation, but helps to know anyway. It took a PMR and
talking to two support persons to figure out this piece of information,
which should have been in the manual.

It would be interesting to know what % of DB2 users are using some sort
of control mechanism that kills runaway queries to guarantee acceptable
database performance for the rest and how many of these users use DB2
governor, 3rd party or home-grown facilities.

P Adhia
Oct 22 '06 #2
Hi,

If you want to "kill" on a SQL statement basis, you could have a look to
Query Patroller (you must pay for it). This product is preemptive and based
on the timerons for the SQL that is going to be executed ...

* if the cost is above a limit, SQL query is simply "held" and can be
canceld by a DBA, so no harm on your server ... or run later.

* if the cost is below the limit, but the load on the server is above a
global limit, SQL query is "queued". If the load is fine, SQL query is
"running".

* if the cost is not costing so much, the query is not even managed by Query
Patroller.

It's a very nice product that can be completed by the DB2 Governor, that
kills after harm has been done, when QP stops before executing.

HTH,

JM

"P Adhia" <pa****@spamnot.yahoo.coma écrit dans le message de
news:34***************************@ALLTEL.NET...
P. Adhia wrote:
Hi,

From reading manuals, it wasn't clear to me, if the DB2 governor's
setlimit configuration file clause, applies to each SQL, UOW or
connection.

If anyone is interested, the correct answer is "limits are measured
across connection boundary". DB2 governor isn't very useful in my
particular situation, but helps to know anyway. It took a PMR and
talking to two support persons to figure out this piece of information,
which should have been in the manual.

It would be interesting to know what % of DB2 users are using some sort
of control mechanism that kills runaway queries to guarantee acceptable
database performance for the rest and how many of these users use DB2
governor, 3rd party or home-grown facilities.

P Adhia

Oct 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
2
by: Garry Clarke | last post by:
I have enabled the query governor on our SQL2000 SP2 server with a threshold of 3600. Now, some of the maintenance jobs fail due to the limit being to low (e.g. one of the user databases integrity...
2
by: Brian Cryer | last post by:
I'm working on a VB.NET project where we are intending to use MSDE as our back-end database. The actual number of users is expected to be low and I don't have any concerns as to whether MSDE will...
4
by: Thiru | last post by:
Hi, Greetings to All. I have encountered a problem while working on DB2 Governer. I build my configuration file as below.(Just for practise) desc "Restrict the Unit of Work to be less then 1...
12
by: Bill Moran | last post by:
Hey all. I've hit an SQL problem that I'm a bit mystified by. I have two different questions regarding this problem: why? and how do I work around it? The following query: SELECT GCP.id,...
3
by: Sean Shanny | last post by:
To all, We are running postgresql 7.4.1 on an G5 with dual procs, OSX 10.3.3 server, 8GB mem, attached to a fully configured 3.5TB XRaid box via fibre channel. I think we have run into this...
0
by: paul.herger | last post by:
We are running DB2 V8 on Solaris 9. Last week we upgraded from FP7 to FP13. Everything seemed to be fine, but yesterday we were confronted with a strange behavior of the DB2 governor. An...
1
by: matias.cornejo | last post by:
I put the next lines in the overnor configuration file to force the sessions ir there are more than 15 minutes doing nothing but it's not working. I need some help. ...
0
by: lesmith | last post by:
db2 governor failing with connection refused -------------------------------------------------------------------------------- We are trying to test using the db2 governor (udb v8) and get a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.