Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 16 Nov 2015 @ 10:04:03 GMT


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


Subj:   Re: Find space allocation of a database
 
From:   Dave Wellman

Hi,

Yup, this is fairly straignt forward, use the DBC.DISKSPACEV view for database-level info and DBC.TABLESIZEV view for table-level information.

     SELECT SUM(maxperm/1e9) AS PermLimit_GB
       ,SUM(currentperm/1e9) AS PermUsed_GB
       ,SUM(maxtemp/1e9) AS TempLimit_GB
       ,SUM(currenttemp/1e9) AS TempUsed_GB
     FROM dbc.diskspacev
     WHERE databasename = 'dbc';

Cheers,

Dave

Ward Analytics Ltd - Information in motion (www.ward-analytics.com)



     
  <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