Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Find out the top 20 biggest tables
Ralf Bender wrote:
> Hi
>
> has anyone a script to find out the top 20 biggest tables in a
tablespace?
>
> regards
> ralf
select *
from (select segment_name "Table Name",
round(sum(bytes)/1024/1024, 2) "Size MB" from dba_extents where tablespace_name = '&tablespace_name' and segment_type = 'TABLE' group by segment_name order by 2 desc)
Regards
/Rauf
Received on Fri Mar 18 2005 - 04:04:49 CST
![]() |
![]() |