Escolar Documentos
Profissional Documentos
Cultura Documentos
7recompile
Compile 0 link
Bin"
Re+eatable Rea(
Rea( Stabilit,
C#rsor Stabilit,
*!$o--itte( Rea(
.e Re+eatable Rea( &solation Le"el
%he 'epeatable 'ea" i!olation le#el i! the mo!t re!tricti#e
i!olation le#el a#ailable.
When thi! i!olation le#el i! u!e"& e#ery ro( that i! re$erence"
in any manner by the i!olate" tran!action i! Glocke"G $or the
"uration o$ that tran!action.
%hu!& i$ a tran!action !can! >&=== ro(! in or"er to retrie#e >=&
lock! are ac+uire" an" hel" on all >&=== ro(! !canne"Hnot
Iu!t on the >= ro(! retrie#e".
T*e Read Stability &solation Le"el
(hen the 'ea" Stability i!olation le#el i! u!e"& only ro(! that
are actually retrie#e" by a !ingle tran!action are locke" $or the
"uration o$ that tran!action.
phantom!& ho(e#er& can an" may be !een but becau!e o$ $e(er
lock! are ac+uire"& more tran!action! can run concurrently.
i$ a tran!action !can! >&=== ro(! in or"er to retrie#e >=& lock!
are only ac+uire" an" hel" on the >= ro(! retrie#e"Hnot on all
>&=== ro(! !canne".
T*e Cursor Stability &solation Le"el
When the Cur!or Stability i!olation le#el i! u!e"& only the ro(
that i! currently being re$erence" by a cur!or i! locke". %he
lock ac+uire" remain! in e$$ect until the cur!or i! repo!itione"
or until the i!olating tran!action terminate!.
3$ the cur!or i! repo!itione"& the lock being hel" on the la!t ro(
rea" i! relea!e" an" a ne( lock i! ac+uire" $or the ro( the
cur!or i! no( po!itione" on..
1on repeatable rea"! an" phantom!& on the other han"& can an"
may be !een.
T*e +n%ommitted Read &solation
Le"el
%he uncommitte" rea" i!olation le#el i! the lea!t intru!i#e
i!olation le#el pro#i"e".
3n $act& (hen the uncommitte" rea" i!olation le#el i! u!e"& ro(!
that are retrie#e" by a !ingle tran!action are only locke" i$
another tran!action attempt! to "rop or alter the table $rom (hich
the ro(! (ere retrie#e". Becau!e ro(! o$ten remain unlocke"
When thi! i!olation le#el i! u!e"& "irty rea"!& nonrepeatable
rea"!& an" phantom! can occur.
%he uncommitte" rea" i!olation le#el i! commonly u!e" $or
tran!action! that acce!! rea"2only table!.#ie(! or tran!action!
that execute +uerie! on (hich uncommitte" "ata $rom other
tran!action! (ill ha#e no a"#er!e a$$ect
T*an ,ou