Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Spool space and Temp space allocations - response (3) by dnoeth

$
0
0
This is a query to find "phantom spool", i.e. a user who is not logged on to the system, but reported as having some spool in use. It's a problem in Teradata's internal housekeeping. It will be fixed during the next database restart, but if this spool size causes problems (e.g. it reaches a double digit percentage of the user's assigned spool and the user runs out of spool) it can be fixed by the dba using the UPDATE SPACE utility. In your case this shouldn't be a problem as you got 300GB spool and you probably didn't get a "out of spool on disk" error. You should post your failing query + explain. Following query will check for spool usage/skew: select   min(peakspool),   avg(peakspool),   max(peakspool),   100*max(currentspool)/max(coalesce(maxprofilespool, maxspool)) as PercentInUse from dbc.DiskSpace where DatabaseName = user; Dieter

Viewing all articles
Browse latest Browse all 14773

Trending Articles