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: Questionable V$SQLAREA Statistics

Re: Questionable V$SQLAREA Statistics

From: Danisment Gazi Unal (ubTools) <dunal_at_ubTools.com>
Date: Tue, 02 Jul 2002 07:28:25 -0800
Message-ID: <F001.0048DDFB.20020702072825@fatcity.com>


Hi,

You should not compare tkprof outputs with V$SQL,V$SQLAREA. Because, recursive/child statistics are included in their parent statements in these views. But, tkprof substructs recursive statistics. I mean tkprof reports real values for statements, but dictionary doesn't.

regards...

"Orr, Steve" wrote:

> Here's the scene:
>
> 1) I have a 400,000 row table table which is cached.
>
> 2) I have a query against that table and no other with one column referenced
> in the WHERE clause. (This column is indexed and of course I don't really
> need the index since the table is cached but it's there so ho hum...)
>
> 3) When I run tkprof on the query it shows a full table scan ignoring the
> index... that's what I want 'cause it's cached.
>
> 4) But when I look at V$SQLAREA the DISK_READS column is incremented.
>
> 5) This query is executed very often so my StatsPack report lists it as one
> of the most expensive queries in terms of physical reads.
>
> It appears that Oracle is counting full table scans of cached tables as
> DISK_READS in V$SQLAREA. Seems like this is a bug to me 'cause it's not
> really a physical disk read but is getting data from the buffers.
>
> Don't you think this is a bug? Has anyone seen this before?
>
> Steve Orr
> Looking for cache in Bozeman, Montana
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Orr, Steve
> INET: sorr_at_rightnow.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

--
Danisment Gazi Unal
http://www.ubTools.com


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Danisment Gazi Unal (ubTools)
  INET: dunal_at_ubTools.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Jul 02 2002 - 10:28:25 CDT

Original text of this message

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