Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: DBA_SEGMENTS and Full scan

Re: DBA_SEGMENTS and Full scan

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 16 Jun 2006 06:44:26 -0700
Message-ID: <1150465466.560873.285390@y41g2000cwy.googlegroups.com>

Guitarator wrote:
> Hi
>
> Actually a single request on the Dba_segments have 7 Full_scan on
> SYS.TAB$, SYS.TABPARTS$, SYS.CLU$ ... . Is there a way to contourn this
> problem ?
>
> SELECT SUM(bytes)/1024/1024
> FROM DBA_SEGMENTS
> WHERE tablespace_name = 'TBDATA001'
> AND segment_type = 'TABLE'
> /
>
> Oracle version is 9.2.0.6
> O.S. AIX 5.3
Why do you consider this a problem? On my 9.2.0.6 system running on AIX 5.2 the response for you query on a 8G tablespace was 2.4 seconds.

Both TAB$ and CLU$ are stored in the same cluster so reading one of them will fetch the physical blocks for the other into memory if not alreay present.

HTH -- Mark D Powell -- Received on Fri Jun 16 2006 - 08:44:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US