My Oracle Support Banner

Xml Query Returns Incorrect Results In 11.1.0.X And 11.2.0.1.0 With Count(Distinct... (Doc ID 1112466.1)

Last updated on FEBRUARY 21, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.2.0.1 [Release 11.1 to 11.2]
Information in this document applies to any platform.

Symptoms

In 11.1.0.x and 11.2.0.1.0, given this data:

test.xml:

<Parent>
  <Name>123</Name>
  <Child>
    <Name>xyz</Name>
  </Child>
  <Child>
    <Name>abc</Name>
  </Child>
  <Child>
    <Name>xyz</Name>
  </Child>
</Parent>


and test2.xml:

<Parent>
  <Name>456</Name>
  <Child>
    <Name>xyz</Name>
  </Child>
  <Child>
    <Name>mno</Name>
  </Child>
  <Child>
    <Name>abc</Name>
  </Child>
</Parent>


and this setup:


This problem does not occur in 10.2.0.4.0.

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.