Archives of the TeradataForum
Message Posted: Wed, 04 Feb 2009 @ 21:24:55 GMT
Subj: | | Re: Automating priority for bad queries |
|
From: | | Dempsey, Mike |
You can write a small Monitor application (use the Monitor Object that comes with Teradata Manager. It includes small sample apps you can use
as a base for your app.) to fetch the session information every 60 seconds or so. (Use the GetSessionData() method)
Spin through each session and check the SpoolSpace property. If it is > 500GB then call the ModifyAccount() method to change their
priority.
The sample apps contain a GUI but you can remove everything except the initial dialog that allows you to logon to Teradata and shutdown the
app.
Mike Dempsey
Teradata Client Tools
|