You are on page 1of 2

11/28/2017 Document 1586374.

Best Practices for Gathering Statistics with Oracle E-Business Suite (Doc ID 1586374.1)

This document offers guidance on best practices for gathering database statistics in Oracle E-Business Suite.

There is a change log at the end of this document.

Applies To

This document applies to Oracle E-Business Suite Releases 11.5.10.2 - 12.2.x (inclusive).

Abstract

The attached Best Practices for Gathering Optimizer Statistics for Oracle E-Business Suite white paper provides an extensive
overview of the Oracle database statistics gathering process, and describes several methods for collecting and setting statistics.
It focuses on the only supported methods with Oracle E-Business Suite: either the Gather Statistics concurrent program, or
directly using the FND_STATS package (which is called by the Gather Statistics concurrent program).

FND_STATS uses the standard the DBMS_STATS package, but enhances the functionality with several additional PL/SQL
procedures for gathering statistics at the table, schema, or database level. The FND_STATS package also supports histograms,
table exclusions and new features that were introduced with Oracle Database 11g such as extended statistics, incremental
statistics gathering for partitioned tables, and concurrent statistics gathering. More advanced features include an AUTO
Sampling Statistics Gathering, and extended statistics (both introduced with Oracle Database 11g).

Traditionally in Oracle E-Business Suite, most statistics were gathered at the default sample size of 10%. However, experience
showed that some of the products subject to data skew would benefit from gathering at a higher percentage. This led to a
trade-off. A larger sample size would deliver more accurate results, but would take longer to collect. On the other hand, while
a smaller sample size would collect more quickly, it might not collect statistics that reflect the true distribution of data, resulting
in sub-optimal runtime performance (especially in the case of data skew).

Oracle Database 11g introduced hash-based sampling, which not only has accuracy close to 100%, but executes more quickly
than when collecting at 10% using the old method. The new version of FND_STATS supports the 'AUTO' option for the
ESTIMATE_PERCENT parameter, which adapts to changes in data volumes, such as system growth or purging, and avoids the
requirement to continuously measure and test performance with different sample sizes.

To take advantage of the new functionality, Oracle E-Business Suite customers will need to apply the following standalone
patches:

Oracle E-Business Suite Version Patch

12.2.x (Not applicable)

12.1.x 16410424:R12.FND.B

12.0.x 16410424:R12.FND.A

11.5.10 14707975

Note: These and related topics (such as extended statistics, incremental statistics, and concurrent statistics gathering
features) are all discussed further in the white paper provided in the Attachments section below.

Change Log

Date Description

01-Jun-2015 Updated slightly.

24-Sep-2013
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=hapi6pbde_216&id=1586374.1 1/2
11/28/2017 Document 1586374.1
Initial publication.

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=hapi6pbde_216&id=1586374.1 2/2

You might also like