Re: ADO.NET 2.0 - Question for Microsoft Employees
- From: "Frans Bouma [C# MVP]" <perseus.usenetNOSPAM@xxxxxxxxx>
- Date: Mon, 04 Apr 2005 10:29:21 +0200
Sahil Malik wrote:
Okay, so we have a new Isolationlevel for transactions in ADO.NET - the snapshot isolation.
That exists at System.Data - which leads me to believe that nothing really stops me from setting that isolation level on Oracle.
So my question is - by setting that on Oracle, does it mean the same as
SET TRANSACTION READ ONLY
Or does Isolationlevel.Snapshot not work on Oracle?
(Frankly my opinion, IsolationLevel.Snapshot not working on Oracle is not a good answer, but if that is what it does, then that is what it does ..)
Can anyone advise? :)
Snapshot IS oracle :D. Databases, during transactions, use various kinds of locking mechanisms to ensure consistency. They all work more or less the same: depending on the transaction isolation level, other transactions can read the data changed or have to wait till the exclusive lock is lifted from the row or table.
Oracle uses a different strategy in that it uses a Snapshot isolation level, in which writers don't block readers in any way and readers simply get an older version of the modified data, till the transaction has been completed. This locking mechanism was unique for oracle but is now also implemented in Sqlserver. It works together with MVCC, which ensures multiple copies of the same data during different transactions.
If I'm not mistaken snapshot is what oracle does by default, for example when you don't start a transaction explicitly, but I have to look that up. Basicly, snapshot is the isolation level which avoids deadlocks and also avoids dirty reads.
FB
-- ------------------------------------------------------------------------ Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com My .NET blog: http://weblogs.asp.net/fbouma Microsoft MVP (C#) ------------------------------------------------------------------------ .
- Follow-Ups:
- Re: ADO.NET 2.0 - Question for Microsoft Employees
- From: Sahil Malik [MVP]
- Re: ADO.NET 2.0 - Question for Microsoft Employees
- References:
- ADO.NET 2.0 - Question for Microsoft Employees
- From: Sahil Malik
- ADO.NET 2.0 - Question for Microsoft Employees
- Prev by Date: DeriveParameters and Jet OLEDB Provider
- Next by Date: Re: DeriveParameters and Jet OLEDB Provider
- Previous by thread: Re: ADO.NET 2.0 - Question for Microsoft Employees
- Next by thread: Re: ADO.NET 2.0 - Question for Microsoft Employees
- Index(es):
Relevant Pages
|