Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!drn.maxwell.syr.edu!news.maxwell.syr.edu!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: georgejzhang@gmail.com
Newsgroups: comp.databases.oracle.server
Subject: Question regarding read consistency in Tom Kyte's Expert 10g book
Date: 5 May 2005 09:57:30 -0700
Organization: http://groups.google.com
Lines: 21
Message-ID: <1115312250.226306.325880@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: 64.141.128.206
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1115312255 17874 127.0.0.1 (5 May 2005 16:57:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 5 May 2005 16:57:35 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=64.141.128.206;
   posting-account=YqkK9Q0AAAATkP9RZnV644JLpl1EhLtN
Xref: dp-news.maxwell.syr.edu comp.databases.oracle.server:242080

Hi,

I am reading Chapter one (still beta) of Tom Kyte's new Expert 10g
book (http://oracle.apress.com/), and it is really a good read.

However, I have some questions about the read consistency example (page
20 - 22) - getting the total balance of accounts table (I would have
tested it if I could).  On page 22, table 1-2, what if T7 and T6
interchange their position?  If the transaction updates row4 and
commits before the query reads row4, the query would not know that row4
has been updated, thus getting the total of 1650?  That of course does
not sound right.  Can you explain how that happens?

And another question, the same example on page 20, why do we assume
that the table stores one row per block?  What if all 4 row are stored
in one block?

Thanks

George

