SOA 11g DB Adapter Returning Duplicate Records When Using ROWNUM in Where Clause

(Doc ID 1543242.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle SOA Platform - Version 11.1.1.4.0 and later
Information in this document applies to any platform.

Symptoms

 In a SOA 11.1.1.6 install, you are using a database adapter with a pure sql statement query. The sql statement is of the form:

 

The database adapter is supposed to return the first 5 rows that meet the condition but instead returns the first row duplicated 5 times.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms