Oracle SQL: NOLOCK in join statment

Naren Karanam picture Naren Karanam · Jul 19, 2016 · Viewed 23.3k times · Source

I can not use NOLOCK after table names in join statements. Is it even a valid scenario to try to read uncommitted data over JOINs

Answer

Gary Myers picture Gary Myers · Jul 19, 2016

The join is irrelevant. NOLOCK isn't used in Oracle. A query will only see committed data (plus any uncommitted changes in the transaction performing the query).

You can write a query such as SELECT * FROM tbl NOLOCK but NOLOCK is simply being used as a table alias and doesn't change the querying mechanism.