Why Does DBMS_STATS.AUTO_SAMPLE_SIZE Sample all Rows Unexpectedly (Doc ID 343849.1)

Last updated on SEPTEMBER 15, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 10.2.0.5 [Release 9.2 to 10.2]
Information in this document applies to any platform.

Goal

Based upon the DBMS_STATS.AUTO_SAMPLE_SIZE information for your version (see: Document 1226841.1 ), after running:

 to be less than the number of rows - but in some cases they are equal, indicating we have sampled all rows.

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