SQL Performance (MOSC)

MOSC Banner

System Stats using EXECUTE dbms_stats.gather_system_stats('Start');

edited Mar 10, 2017 8:54AM in SQL Performance (MOSC) 2 commentsAnswered ✓

Hi All,

I have a few questions regarding system stats I was wondering if anyone can help with.  We have a mixture of 11g and 12c instances running standard edition which we never gather system stats for

1)     How important is it to gather stats.  We have the odd performance issue using the default stats in sys.aux_stats$.  Would generating system stats have the potential to improve performance of queries in general?

2)     How long should we gather stats for.  For instance BAU is usually 8am-7pm.  Overnight backups/batch jobs are from 7pm-8am. For instance:

begin

sys.dbms_stats.gather_system_stats(

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