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

Home -> Community -> Mailing Lists -> Oracle-L -> Questionable V$SQLAREA Statistics

Questionable V$SQLAREA Statistics

From: Orr, Steve <sorr_at_rightnow.com>
Date: Mon, 01 Jul 2002 12:38:31 -0800
Message-ID: <F001.0048D37C.20020701123831@fatcity.com>


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). Received on Mon Jul 01 2002 - 15:38:31 CDT

Original text of this message

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