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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ((Re)): problem interpreting wait events

RE: ((Re)): problem interpreting wait events

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Mon, 23 Aug 2004 17:00:08 -0400
Message-ID: <4C9B6FDA0B06FE4DAF5918BBF0AD82CF09660D60@bosmail00.bos.il.pqe>


Ryan,

Try this:

select segment_type, segment_name
  from dba_extents
 where file_id =3D &file
   and &block between block_id and block_id+blocks-1;

It will probably be slow....if so, go w/ the GTT=20 and index solution that Dan already provided.

-Mark

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of ryan gaffuri Sent: Monday, August 23, 2004 4:54 PM
To: oracle-l_at_freelists.org
Subject: ((Re)): problem interpreting wait events

i don't have a problem with performance. I think I am checking the wrong data dictionray view. I took the p2 value from db file sequential read = and I
thought I could use the block_id in dba_extents. When I query on it, I = get
'no rows selected', so I think I am using the wrong view.

anyone know which one to use for this?
----- Original Message -----=20
From: "Daniel Fink" <Daniel.Fink_at_Sun.COM> To: <oracle-l_at_freelists.org>
Sent: Monday, August 23, 2004 2:57 PM
Subject: Re: problem interpreting wait events

> Ryan,
>
> I have found that this type of query against dba_extents performs
horribly. My solution has been to create a GTT, load relevant data
> from dba_extents, slap an index on file_id and block_id and query the =
GTT.
Even in some of the larger dbs I've done this on, the
> overall time was much less than the original query.
>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon Aug 23 2004 - 15:56:03 CDT

Original text of this message

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