Gathering Statistics Against a Table with Function-Based Index May Cost Much More Time Then Without Function-Based Index
Last updated on DECEMBER 20, 2017
Applies to:Oracle Database - Standard Edition - Version 18.104.22.168 and later
Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Information in this document applies to any platform.
- When gathering statistics information using DBMS_STATS.GATHER_TABLE_STATS against a table, it can finish in short time
- But after adding a function-based index, DBMS_STATS.GATHER_TABLE_STATS will cost much more time than before even CASCADE=> FALSE is specified:
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>'TCB', TABNAME=>'TEST', CASCADE=> FALSE);
Creating a function-based index on the table.
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