Académique Documents
Professionnel Documents
Culture Documents
T1 T2 T3
L(A)
L(A)
L(B)
L(B)
L(B)
L(A)
M=A
N=B
A=B
B=M
E(A)
B=A
A=N
E(A)
E(B)
E(B)
Commit
Commit
P=A
A=B
B=P
E(A)
E(B)
Commit
T1 T2
Begin Transaction
Select * From T ;
Begin transaction
Select B from T where A=10;
Update T set B=1000 where
A=10;
Commit
Select B from T where A<20;
Commit
T1 T2
Set transaction isolation level READ
COMMITTED
Begin Transaction
Select B From T where A=10;
Set transaction isolation level SERIALIZABLE
Begin transaction
Update T set B=B+1 ;
Commit
Select B From T where A=10;
Commit
T1 T2
Set transaction isolation level SERIALIZABLE
Begin Transaction
Select B From T where A=10;
Set transaction isolation level READ
COMMITTED
Begin transaction
Update T set B=B+1 ;
Commit
Select B From T where A=10;
Commit
T1 T2
Set transaction isolation level REPEATABLE
READ
Begin Transaction
Select count(*) From T ;
Set transaction isolation level READ
COMMITTED
Begin transaction
Insert into T values(30, 300) ;
Commit
Select count(*) From T;
Commit
T1 T2
Set transaction isolation level REPATABLE
READ
Begin Transaction
Select B From T where A=10;
Set transaction isolation level READ
COMMITTED
Begin transaction
Insert into T values(30, 300)
Update T set B=B+1 ;
Commit
Select B From T where A=10;
Commit
T1 T2
Set transaction isolation level READ
COMMITTED
Begin Transaction
Select B From T where A=10;
Set transaction isolation level READ
COMMITTED
Begin transaction
Insert into T values(30, 300)
Update T set B=B+1 ;
Commit
Select B From T where A=10;
Commit
T1 T2
Set transaction isolation level SERIALIZABLE
Begin Transaction
Select B From T where A=10;
Set transaction isolation level SERIALIZABLE
Begin transaction
Update T set B=B+1 ;
Commit
Select B From T where A=10;
Commit