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: tkprof - disk reads greater than query+current

Re: tkprof - disk reads greater than query+current

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Sat, 21 Apr 2007 06:59:01 +0100
Message-ID: <FvadncPoZMQBNbTbRVnyhgA@bt.com>

<wagen123_at_yahoo.com> wrote in message
news:1177099240.399682.248700_at_b75g2000hsg.googlegroups.com...
> Jonathan,
>
> This is a Oracle text query - uses DOMAIN index.
> select * from ( select a.*, rownum rnum from ( select /*
> +FIRST_ROWS(21)*/
> columnA, columnB, columnC, create_date from tableName
> where
> contains ( columnD, 'MICROSOFT') > 0 and
> create_date between sysdate - 180 and sysdate order by create_date
> desc ) a
> where rownum <= 21) where rnum > 0;
>
> Thanks
> wagen
>
>

If this is persistent behaviour, I'd run a couple of queries with event 10046 set at level 8 to catch the disk read waits and see exactly where they came.

Context indexes are built from multiple objects, there may be some funny code in their use that hits the sample bug. On a more simplistic level, you may find that some of the underlying objects do not have statistics so 10g is doing dynamic sampling - which can result in exactly the same anomaly. Did you find any funny SQL in the tkprof output file when you first ran your tests ?

-- 
Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com

Author: Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html
Received on Sat Apr 21 2007 - 00:59:01 CDT

Original text of this message

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