OK - I'll handle things in order...
Unfortunately, there is very rarely time when no-one is logged on to the box (production machine in a retail environment) - I'll just have to monitor it, and try to catch it at the right time.
No - I've never heard of this utility, I could certainly try it.
No - no Volatile / Global temps / cursors involved.
CURRENTSPOOL shows varying amounts across
all the AMPs, with no discernable pattern (i.e. it's never the same twice, either - even after my ID is bounced and I re-run the same job against the same data).
At this site it's just my User Id - but I'm the only one running this size of query. At my previous site, it happened intermittently to anyone running large queries (we were building a large financial VA system, so many of us used large amounts of spool).
I'll try the query if I can catch the circumstances noted above. I simply use:
Code:
SELECT
VPROC
,SUM(CURRENTSPOOL)
FROM DBC.ALLSPACE
WHERE
DATABASENAME = '<USERID>'
AND TABLENAME <> 'ALL' -- EXCLUDE WHEN EXAMINING DATABASES --
GROUP BY 1 ORDER BY 1
;
Don't think any AMPs are down (if it was this regular, I'd be seriously concerned) - I'm sure that either the DBAs or me would have noticed, especially at the previous site.
Thanx thus far - I've got some things to try next week.
SiM Card