The equivalent of ROWLOCK
is the FOR UPDATE
clause
select *
from emp
for update;
Since 11g Oracle has documented the SKIP LOCKED
syntax which is the equivalent of READPAST
:
select *
from emp
for update skip locked;
This syntax has worked for ages (it is fundamental to Advanced Queuing) but if it's not in the docs it's not supported,
There is no equivalent of UPDLOCK
lock because Oracle flat out doesn't allow dirty reads. Find out more.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…