Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default isolation level

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
What is the default isolation level set for a
transaction in a database? Is it read commited or serializable ?

--
| Mike Nixon
| Unix Admin
| ----------------------------
 
It's read committed, according to this excerpt from the Oracle 8i concepts manual.

"Oracle offers the read committed and serializable isolation levels, as well as a read-only mode that is not part of SQL92. Read committed is the default and was the only automatic isolation level provided before Oracle Release 7.3."
 
As Karluk says it's Readcommitted.........unless you are running the query through Microsoft Transaction Server - then it's Serializable.
 
can somebody tell me what is readcommited and serailizable.

please explain the concept.

thanx in advance.

regards

sunpatil
 
Both read committed and serializable disallow "dirty reads", so that when you select from a table you don't see anyone else's uncommitted transactions.

Serializable offers additional features that make transactions seem to happen in a specific order, even though in reality they are in progress simultaneously. Serializable offers "repeatable read", which ensures that if you select the same rows a second time in your transaction you will not see updates that were committed after your first select. Similarly you are guaranteed that a second select won't return new rows that weren't in your first select.

The serializable isolation level offers nice features, but comes at a cost of higher overhead. That's probably why Oracle chose read committed as its default. It's up to the programmer to design a transaction and know whether to increase the isolation level to serializable.
 
Besides nice features serializable level brings some limitations: you can not update rows, changed by others during your transaction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top