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!

table size in gb

user650888Jan 19 2024

Yesterday, I ran alter table tablename drop partition partition name commands on a table which is partitioned on a date

so today I just wanted to know what is the size of the table

why am I not seeing that table in user_segments after the alter table drop partitions done ?

select \* from user\_segments where segment\_type='TABLE'  and segment\_name like 'xyz%' order by segment\_name

Using the below sql for calculating the size in gb

select segment_name,sum(bytes)/1024/1024/1024 GB from user_segments where segment_type='TABLE' and segment_name = 'xyz' group by segment_name

This post has been answered by Solomon Yakobson on Jan 19 2024
Jump to Answer
Comments
Post Details
Added on Jan 19 2024
3 comments
4,343 views