Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 04 Feb 2009 @ 21:24:55 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016