Yes and yes.
SELECT * FROM my_table FOR UPDATE;
will throw a lock on each row it selects.
However, Oracle's mantra is "Readers don't block writers, and writers don't block readers". Another select statement can run since it looks but doesn't actually touch anything.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.