My Oracle Support Banner

Missing Hint /*+ FIRST_ROWS */ On Pagination Queries When Target DB Is "Oracle11" In Persistence.xml (Doc ID 2043633.1)

Last updated on OCTOBER 21, 2022

Applies to:

Oracle TopLink - Version and later
Information in this document applies to any platform.


When following the "FirstResult/MaxRows" sample for pagination on JPA, available here. It is needed to set the parameter ""
in file "persistence.xml" to a supported database. When this parameter is set to "Oracle" the query generated for pagination includes the SQL hint /* +FIRST_ROWS */ as in the example.
When the parameter is set to "Oracle11" (DB is Oracle 11g), the SQL hint is not included.

How to get the hint using Oracle11 as target database?


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

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