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

Update frequency of CurrentSpool in dbc.DiskSpace - response (3) by dnoeth

$
0
0

The spool is released, i.e. not using space, but it's reducing the user's available spool because the size is not correct.
In fact there's another source for wrong CurrentSpace, Orphan spools, which have allocated space, but these are rare.
 
You can find any left-over spool using:

/*** Phantom Spool ***/
select 
  databasename
  ,sum(currentspool) as LeftOver
  ,'update spool space for ' || trim(databasename) || ';'
from dbc.diskspace
where databasename not in
  (select username from dbc.sessioninfo)
group by 1
having LeftOver > 0

 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles