Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AMP Usage Via SQL 1

Status
Not open for further replies.

terminalclick

Programmer
Joined
May 6, 2003
Messages
4
Location
GB
Please could someone point me in the direction of some DBC sql which I can run while a query is running to see what AMPs it is using?

(I am having an issue with SPOOL space running out, and I think it's because I have skewed data, where the query is only using one or two of the full amount of AMPs, but need to see if this is the case. I don't have access to any graphical tools.)

Thanks for your help.
 
Hello,

Basically if you are trying to "whatch" yourself on the box try
Select
Databasename
,vproc as Amp_No
,MaxSpool(dec(18,0)) as Max_Allowed_Spool
,CurrentSpool(dec(18,0)) as Current_Usage
,PeakSpool(Dec(18,0)) as Peak_So_Far
,MaxTemp(dec(18,0))
,CurrentTemp(dec(18,0))
,PeakTemp(Dec(18,0))

From dbc.diskspace
Where databasename = 'UserId'
;

Your Peak spool will actualy get cleared down at some point. ours is cleared down at midnight.

Hope this helps,

Liam.
 
That's great, seems to be what I wanted! Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top