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: Regarding the number of consistent gets.

Re: Regarding the number of consistent gets.

From: <sybrandb_at_yahoo.com>
Date: 19 Sep 2005 01:13:04 -0700
Message-ID: <1127117584.585609.190200@z14g2000cwz.googlegroups.com>


Your understanding is wrong. The buffer cache is not static, and it is very unlikely and also unnecessary the buffer cache is as big as the database. It is unnecessary because some records will be queried often and others never. However, as the buffer cache is likely smaller, records will sooner or later get removed from the buffer cache. This is one of the reasons Oracle executes a consistent get at every fetch. Oracle gets every record in the state it was at the beginning of your select statement.
If you select 100 records, and you fetch them one by one, you will incur 100 consistent gets. If in the mean time the affected blocks in the cache didn't change at all, you will see no additional physical reads.

Hth

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Mon Sep 19 2005 - 03:13:04 CDT

Original text of this message

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