Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 16 Mar 2012 @ 14:03:56 GMT


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


Subj:   Re: Missing space in the Database
 
From:   Maheswar Kothapalli

Dear all,

     SELECT

     DATABASENAME (TITLE 'DATABASENAME')
     ,SUM(MAXPERM)/(1024*1024*1024) (DECIMAL(15,6)) (TITLE 'MAX PERM (GB)')
     ,SUM(CURRENTPERM)/(1024*1024*1024) (DECIMAL(15,6)) (TITLE 'CURRENT PERM
     (GB)')
     ,((SUM(CURRENTPERM))/ NULLIFZERO (SUM(MAXPERM)) * 100) (DECIMAL(15,6))
     (TITLE 'PERCENT USED')
     FROM DBC.DISKSPACE
     WHERE MAXPERM >0
     GROUP BY 1
     ORDER BY 4 DESC
     ;

Along with Max perm, Current perm You will get percentage of usage



     
  <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: 23 Jun 2019