Demandeur Autres verrous Énoncé SQL verrou RS RX S SRX X

Transcription

Demandeur Autres verrous Énoncé SQL verrou RS RX S SRX X
Demandeur
Énoncé SQL
SELECT...FROM table ...
INSERT INTO table ...
UPDATE table ...
DELETE FROM table ...
SELECT ... FROM table
FOR UPDATE OF ...
LOCK TABLE table IN
ROW SHARE MODE
LOCK TABLE table IN
ROW EXCLUSIVE MODE
LOCK TABLE table IN
SHARE MODE
LOCK TABLE table IN
SHARE ROW EXCLUSIVE
MODE
LOCK TABLE table IN
EXCLUSIVE MODE
verrou
aucun
RX
RX
RX
RS
Y
Y
Y1
Y1
Autres
verrous
RX S
SRX
Y
Y Y
Y1 N N
Y1 N N
Y1 N N
RS
Y1
Y1
Y1
Y1
N
RS
Y
Y
Y
Y
N
QIUDL
RX
Y
Y
N
N
N
QIUDL
S
Y
N
Y
N
N
QL
SRX
Y
N
N
N
N
QL
X
N
N
N
N
N
Q
X
Y
N
N
N
oper.
Légende
RS : row share
RX : row exclusive
S : share
SRX : share row exclusive
X : exclusive
Q : query
I : insert
U : update
D : delete
L : select for update
1
: il peut y avoir attente de libération de verrou en cas de conflit de verrou
Tab. 18.1 – Verrous de table sous Oracle
55

Documents pareils