Wrong Cardinality And Nested Loop Issue
(Doc ID 2666644.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
- 12.2.0.1 version simple query with ANSI JOIN is using Nested Loops / Merge Join method for this query
- CBO generates lateral view based execution for right outer joins that have
filter predicates on the right side of the join (as part of the join):
Plan hash value: 2519657318
------------------------------------------------------------------------------
-----------
| Id | Operation | Name | Rows | Bytes | Cost
(%CPU)| Time |
------------------------------------------------------------------------------
-----------
| 0 | SELECT STATEMENT | | 1 | 26 | 11M(15)| 00:07:21 |
| 1 | SORT AGGREGATE | | 1 | 26 | | |
| 2 | NESTED LOOPS OUTER | | 78M| 1935M| 11M (15)| 00:07:21 |
| 3 | TABLE ACCESS FULL | T1 | 98335 | 2496K| 114 (15)| 00:00:01 |
| 4 | VIEW | VW_LAT_C83A7ED5 | 794 | | 115 (15)| 00:00:01 |◄◄◄◄◄
|* 5 | FILTER | | | | | |
|* 6 | TABLE ACCESS FULL| T2 | 794 | 20644 | 115 (15)| 00:00:01 |
------------------------------------------------------------------------------
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 |
Cause |
Solution |
References |