My Oracle Support Banner

Wrong Results While Selecting Data From A Table In Oracle 12.1.0.2.0 Connected With LAG Function (Doc ID 2254396.1)

Last updated on MARCH 10, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

Select statement produces wrong results when executed in parallel.

Issue does not happen when parallel query is disabled.

The execution plan is:

| Id | Operation | Name |
----------------------------------------------
| 0 | SELECT STATEMENT | |
| 1 | SEQUENCE | SEQ_BBRVS |
| 2 | PX COORDINATOR | |
| 3 | PX SEND QC (RANDOM) | :TQ10001 |
| 4 | WINDOW SORT | |-------------------------------------Problematic one
| 5 | PX RECEIVE | |
| 6 | PX SEND HASH | :TQ10000 |
| 7 | PX BLOCK ITERATOR | |
| 8 | TABLE ACCESS FULL| MYSRC |
----------------------------------------------

 

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


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