Skip to Main Content

SQL & PL/SQL

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!

Difference between table sizes across the calculated one's and table sizes got from the log file)

Satyam ReddyNov 18 2021

Team,
Let's consider our basic scott schema for this scenario.
When we take the dump for this user and from the log file we see the size as 50MB(approximately).
But when we calculated the size using the below query we get around 500 MB(approximately).
Query used :

select table_name, num_rows, (bytes/1024/1024/1024) GB from dba_tables t Inner
join dba_segments s On table_name=segment_name and t.owner=s.owner Where segment_type='TABLE' And s.owner='SCOTT'
ORDER BY 3 DESC;

Please let us know where we are getting mistaken.
Regards,
Satyam Reddy

This post has been answered by User_H3J7U on Nov 18 2021
Jump to Answer
Comments
Post Details
Added on Nov 18 2021
4 comments
386 views