oracle db get table sizes code example
Example: oracle db get table sizes
select segment_name, sum(bytes)/1024 KB
from user_segments
where segment_type='TABLE' and segment_name in (SELECT TABLE_NAME FROM ALL_TABLES)
group by segment_name order by KB desc;