Database Administration (MOSC)

MOSC Banner

Oracle EE 19c: best method to gather schema stats

Hi all,

our production database has a size of almost 4 TB and hosts the data of an external application. The provider of the external application recommends to gather the schema stats on a daily basis using the method "dbms_stats.gather_schema_stats(ownname => <schema name>, method_opt => 'FOR ALL COLUMNS SIZE AUTO', cascade => TRUE);". No need to explain that this method gathers the stats for all objects (tables and indexes) of the given schema, even if the statistics are still good enough or do not need to be newly gathered at all (because the data has not changed at all). This method -

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