Setting the JDBC Fetch Size Parameter "getDefaultRowPrefetch" in an OC4J Datasource (Doc ID 732917.1)

Last updated on NOVEMBER 05, 2016

Applies to:

JDBC - Version 10.2.0.4 and later
Oracle Containers for J2EE - Version 10.1.3.0.0 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Dec-2012***


Goal

There is a property in JDBC named "defaultRowPrefetch" that sets the number of result set rows prefetched when an SQL query is submitted to the database.

The default prefetch from the server is 10. It is possible to change the default setting using an OC4J Datasource.


Solution

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