Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 23 Feb 2010 @ 15:18:34 GMT


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


Subj:   Re: Database Size of playpen
 
From:   Wale Akala

Hi Paul,

Try...


1 - what the allocated size is.

     SEL DatabaseName, SUM(MaxPerm)
        FROM DBC.DiskSpace
        WHERE DatabaseName =  Playpen Database
        GROUP BY 1;

2 - the unused / used portion of the allocation

     SEL TRIM(DatabaseName) AS DatabaseName,
        SUM(MaxPerm) AS MaxPerm,
        SUM(CurrentPerm) AS CurPerm,
        SUM(CurrentPerm)/SUM(MaxPerm) AS PctUsed,
        (SUM(MaxPerm)-SUM(CurrentPerm))/SUM(MaxPerm) AS PctFree
        FROM DBC.DiskSpace
        WHERE DatabaseName =  Playpen Database
        GROUP BY 1
        ORDER BY 1
        HAVING SUM(MaxPerm) > 0;

Best regards,

Wale



     
  <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: 15 Jun 2023