My Oracle Support Banner

Select FOR UPDATE With ANSI Join Query Get ORA-02014 After Setting _COMPLEX_VIEW_MERGING=FALSE (Doc ID 1102853.1)

Last updated on MARCH 10, 2025

Applies to:

Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

After setting _COMPLEX_VIEW_MERGING=FALSE the following sample SQL statement which does not contain any views fails with "ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc".

Changes

Set _COMPLEX_VIEW_MERGING=FALSE

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.