Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Size calculation discrepancy between dba_segments and dba_extents

resistanceIsFruitfulFeb 17 2016 — edited Feb 18 2016

DB version : 11.2.0.4

OS : Oracle Linux 6.4

I have a DB which is 21 TeraBytes in size as reflected in DBA_DATA_FILES.BYTES . But, the space consumed by objects is much lesser (around 5.5 TB) as shown below from the outpus of DBA_SEGMENTS and DBA_EXTENTS views

But, there is a difference of around 6GB between sum(DBA_SEGMENTS.BYTES) and sum(DBA_EXTENTS.BYTES) . Shouldn't these two views provide the same number ?

SQL> select sum(bytes/1024/1024/1024) bytesGB from dba_Data_Files;

   BYTESGB

----------

21447.9961

SQL> select sum(bytes/1024/1024/1024) bytesGB from dba_segments;

   BYTESGB

----------

5680.51129

SQL> select sum(bytes/1024/1024/1024) bytesGB from dba_extents;

   BYTESGB

----------

5674.91309

This post has been answered by Jonathan Lewis on Feb 17 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2016
Added on Feb 17 2016
3 comments
945 views