Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: JDBC transaction isolation Date: Thu, 3 May 2012 17:15:46 -0700 (PDT) Organization: http://groups.google.com Lines: 59 Message-ID: <24360777.22.1336090546668.JavaMail.geo-discussion-forums@pbfk7> References: <4fa2aa0c$0$294$14726298@news.sunsite.dk> <4fa2d5c7$0$288$14726298@news.sunsite.dk> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1336090664 11238 127.0.0.1 (4 May 2012 00:17:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 May 2012 00:17:44 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 Xref: csiph.com comp.lang.java.programmer:14237 Richard Maher wrote: > Arne Vajh=F8j wrote ... > > Almost all database have it at the SQL level: > > > > http://dev.mysql.com/doc/refman/5.5/en/set-transaction.html > > http://www.postgresql.org/docs/9.1/static/sql-set-transaction.html and= =20 > > http://www.postgresql.org/docs/9.1/static/transaction-iso.html > > http://msdn.microsoft.com/en-us/library/ms173763.aspx > > http://docs.oracle.com/cd/B10500_01/server.920/a96524/c21cnsis.htm > > >=20 > Is anyone else of the opinion that Oracle really does not support the=20 > serializable isolation level? (At least not in the way that SQL Server, R= db,=20 Are you referring to their database product or some other product, such as = Java? > and I'm sure others do) That is, it doesn't prevent inserts to the other= =20 > txn's result-set,touched-rows by locking but rather fudges some sort of= =20 > snapshot/consistent-view of old data. (And even then with restrictions)= =20 > Eg: - select count(*) from employees where dept_code=3D1; They do support SERIALIZABLE isolation, and properly by all evidence: "ISOLATION LEVEL Clause "Use the ISOLATION LEVEL clause to specify how transactions containing data= base modifications are handled. "The SERIALIZABLE setting specifies serializable transaction isolation mode= as defined in the=20 SQL standard. If a serializable transaction contains data manipulation lang= uage (DML) that=20 attempts to update any resource that may have been updated in a transaction= uncommitted at=20 the start of the serializable transaction, then the DML statement fails." See also=20 There's nothing in the definition of SERIALIZABLE transactions that require= s locking. So whatever anyone else's opinion, or yours, the facts seem to be that Orac= le Database properly supports SERIALIZABLE transaction isolation. Why do yo= u ask for opinion when facts are in evidence? --=20 Lew