Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Find out the top 20 biggest tables
Nearly.
Exchange user_segments for dba_segments. user_segments only shows those top 20 tables owned by the user, not for the whole database.
Obviously, querying dba_segments requires appropriate privileges.
Rgds
AW
kirtan wrote:
> 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 from user_segments where segment_type='TABLE' and
> tablespace_name='<tablespacename>' order by bytes desc
> ) where rownum <=20
Received on Fri Mar 18 2005 - 05:29:44 CST
![]() |
![]() |