Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 20 Oct 2003 @ 15:16:21 GMT





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




Subj:   Space usage
 
From:   Frank C. Martinez IV



Hola Pierre,

There is no designation of separate index space with Teradata. Indices are actually subtables which are considered part of the main table. The quickest to get a summary of the space that a particular table is currently using is to do the following:

SELECT TableName,
       SUM(CurrentPerm) AS CurrentPerm,
       SUM(PeakPerm)    AS PeakPerm
  FROM Dbc.TableSize
 WHERE DatabaseName='eu_dev_edw'
   AND TableName='copa'
 GROUP BY 1;

If you want to do an entire set of tables in a database, you can remove the "AND TableName" clause and add an "ORDER BY 1". Of course you could also get rid of the database and do a "LIKE" to see the same table (or set of tables) across all databases. But there is no way to tell the amount of space for a particular index from the database catalog (dbc tables). I will pass this inquiry on to the Teradata listserv and see if they know a way.

iv



Pierre Chavanne wrote (10/20/2003 10:13 AM):

  To: Frank Martinez
Subject: Space usage
 


  Hi Frank,  


  can you send me a query to get the space used by each table - data and index separately - to analyze where we can recover some space.  


  Thanks,  


  Best Regards,  


  Pierre
_____________________________________
Pierre Chavanne
EU Business Information Reporting Lead
 






     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008