Database Tuning (MOSC)

MOSC Banner

Is it possible to check on the progress of dbms_stats.gather_table_stats?

edited Sep 1, 2020 4:20PM in Database Tuning (MOSC) 7 commentsAnswered

Our database is Oracle 11.2.0.3 with PSU #* (16902043) and one-off patch 16851193.  All partitioned tables are set to used incremental statistics (dbms_stats.set_table_prefs was used to set the INCREMENTAL and PUBLISH parameters to TRUE).  We are using dbms_stats.gather_table_stats to gather the stats on each table using degree=>10, granularity=>'AUTO',estimate_percent=>dbms_stats.AUTO_SAMPLE_SIZE, and cascade=>TRUE.  Even so, gathering the stats takes hours.  Is there any way to determine the progress of dbms_stats.gather_table_stats while it is still running?  I tried querying user_tab_statistics and user_index_statistics, but the information therein seems to be posted only after dbms_stats.gather_table_stats is done.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center