- Slow when reporting off an Oracle Store Procedure in Crystal Reports.
- Crystal Reports status bar shows records are coming from the Stored Procedure in small batches.
- Native connection to an Oracle Stored Procedure in Crystal Reports takes much more times to retrurn the result than when using an ODBC connection to the same stored procedure.
- SAP Crystal Reports 2008
- SAP Crystal Reports 2011
- SAP Crystal Reports 2013
- SAP Crystal Reports 2016
- Oracle 11g
Reproducing the Issue
- In Crystal Reports, create a report off an Oracle Stored Procedure returning large amount of records using a native Oracle connection.
- Refresh the report.
- Notice it takes a long time to return the data.
- The reason it takes more time to fetch the data when connecting to an Oracle Stored Procedure in Crystal Reports when using the Native Oracle connection are due to:
- The version of Oracle Client used.
- The version of Crystal Reports used.
- The version of Oracle Client is important because Oracle did not support pre-fetch feature for Stored Procedure prior to Oracle version 126.96.36.199, so the Oracle driver is not fetching data to optimize performance, therefore if the version of the Oracle Client is lower than 188.8.131.52, it will be slower.
- The version of Crystal Reports could also be the cause of the report performance because in older versions of Crystal Reports, it did not take advantage of the new Oracle pre-fetch feature that allows to improve the performance, and this situation was reported to product under ADAPT01682544.
- To improve report performance when using a Native Oracle connection to a Stored Procedure in Crystal Reports:
- Confirm you have installed the Oracle Client 184.108.40.206 or higher, on the computer where Crystal Reports is installed, because the pre-fetch feature that help improve performace is an Oracle functionality that was added from Oracle 220.127.116.11
- Install the following version of Crystal Reports or above, as those versions can take advantage of the new Oracle pre-fetch feature to improve report performance:
- Crystal Reports 2008:
- Fix Pack 5.5
- Service Pack 7
- Crystal Reports 2011:
- Support Pack 08
- Crystal Reports 2013:
- Support Pack 01 - Patch 1.2
- Support Pack 02
- Crystal Reports 2016:
- Support Pack 02
CR, Oracle, stored procedure, performance , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Problem
Crystal Reports 2008 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports 2016