Select For Update Statement With a Subquery Returns Wrong Results (Doc ID 2277991.1)

Last updated on JUNE 26, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

A Select for update statement with a subquery returns wrong result after waiting for update statement to commit.

The problem can be demonstrated in the Example test case below: (Select for update in Session 2 returns 1 (wrong result) instead of 2 (correct result).

TEST CASE:

Changes

 None

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms