Listen Software's How To: Calculating Tablespace and Table Byte Sizes | Database Journal

Listen Software’s How To: Calculating Tablespace and Table Byte Sizes

May 13, 2002
1 minute read

Tablespace Byte Sizes

select distinct 
       a.tablespace_name, 
sum(a.bytes) 
       as free_bytes,
sum(b.BYTES) 
       as Total_Bytes 
from dba_free_space a, 
     dba_data_files b 
Where a.tablespace_name = 
      b.tablespace_name 
group by a.tablespace_name

Table Byte Sizes

select segment_name,tablespace_name,bytes,blocks 
FROM DBA_SEGMENTS 
where segment_type='TABLE' AND TABLESPACE_NAME 
NOT IN('SYSTEM') order by bytes desc
Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.