Re: many blocks read while unique index in use

  • From: Tanel Poder <tanel@xxxxxxxxxxxxxx>
  • To: remigiusz.sokolowski@xxxxxxxxxx
  • Date: Thu, 14 Jul 2011 00:55:28 +0300

9i has a prefetching problem, could be a bug.... in statspack, search for
"prefetch clients" stats ... or query X$KCBKPFS (or run my prefetch.sql from
tpt_public.zip) to see whether prefetching is happening:

SQL> @prefetch

        ID NAME                 BLOCK_SIZE  TIMESTAMP        OPS     BLOCKS
BLOCKS/OP
---------- -------------------- ---------- ---------- ---------- ----------
---------
         3 DEFAULT                    8192 4294119730        179       2141
     12.0
         3 DEFAULT                    8192 4294125740         95       1460
     15.4
         3 DEFAULT                    8192 4294408820       1744      30486
     17.5



--
Tanel Poder
http://blog.tanelpoder.com



On Wed, Jul 13, 2011 at 12:30 PM, Remigiusz Sokolowski <
remigiusz.sokolowski@xxxxxxxxxx> wrote:

> hi,
>
> this is about 9.2.0.8 on windows
>
> Have You any idea what could be a reason for the following scenario?
>
> We have an update, which should use an unique index in order to perform
> that update. The average row length is 145.
>
> However statspack shows that during an update we read (and those are
> physical reads, buffer gets are even higher) sometimes 4000blks
> sometimes even 18000 per execution.
> The plan for this query is perfectly normal - uniqe scan - IO cost IIRC 3.
>
> What could be the reason for such anomaly? bad accounting?
>
> Regards
> Remigiusz
>
> --
> Pole nakazi
>
> ----------------------------------------------------------------------
> Remigiusz Sokolowski <remigiusz.sokolowski@xxxxxxxxxx>
> pos   : DBA at DIiUSI
> addr  : Nordea Bank Polska SA, Luzycka 6A Street, 81-537 Gdynia, Poland
> phone : +48 58 667 17 43
> mobile: +48 602 42 42 77
> oraclh
> Nordea Bank Polska S.A. z siedzibą w Gdyni, ul. Kielecka 2, 81-303 Gdynia,
> wpisaną do Rejestru Przedsiębiorców Krajowego Rejestru Sądowego pod
> numerem: 0000021828,
> dla której dokumentację przechowuje Sąd Rejonowy Gdańsk - Północ w Gdańsku,
> VIII Wydział Gospodarczy Krajowego Rejestru Sądowego,
> o kapitale zakładowym i wpłaconym w wysokości: 277.493.500,00 złotych,
> NIP: 586-000-78-20, REGON: 190024711--
> //www.freelists.org/webpage/oracle-l
>
>
>

Other related posts: