Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: System tablespace growing
"Telemachus" <telemachus_at_ulysseswillreturn.net> wrote in message
news:blrra.10890$pK2.14154_at_news.indigo.ie...
> what's wrong with just
>
>
> select * from (select owner,segment_name,bytes/1024/1024 MB from
> dba_segments where TABLESPACE_NAME = 'SYSTEM' ) where rownum < 11 order by
> MB desc;
>
> This gives you the top 10 space hoggers in SYSTEM
>
Hi Telmachus,
Actually it doesn't.
It gives you the first ten selected segments, ordered by size which is not the same thing.
To list the top ten largest segments, rewrite as follows:
select * from (select owner,segment_name,bytes/1024/1024 MB
from dba_segments where TABLESPACE_NAME = 'SYSTEM' order by MB desc)
Cheers
Richard Received on Wed Apr 30 2003 - 05:58:48 CDT