My Oracle Support Banner

MERGE Statement poor performance due to use of NESTED LOOPS instead HASH JOIN OUTER because of multiple filter predicates (Doc ID 2276300.1)

Last updated on MARCH 03, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.2.0.1 [Release 11.2 to 12.2]
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

Merge statement cannot use HASH JOIN OUTER when there are multiple filter predicates in the join clause. There is an OR operator between those predicates.

Nested loop join is used instead which makes the statement never ending.

The problem manifests as well with UPDATE and DELETE.

 

Changes

 No changes.

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.