SQL Performance (MOSC)

MOSC Banner

Change parameters for schemas in auto gather stats job

edited Feb 11, 2019 9:49PM in SQL Performance (MOSC) 11 commentsAnswered ✓

Hello All,

I want to set change the default parameters of statistics collection some specific schemas as per vendor recommendation.Instead of disabling auto stats job and creating a cronjob to collect stats.

i am just plannning to use SET_SCHEMA_PREFS(which i havent used before) and change following params for those schemas.

METHOD_OPT       => 'FOR ALL INDEXED COLUMNS SIZE AUTO',

GRANULARITY      => 'ALL',

CASCADE          => TRUE,

NO_INVALIDATE    => FALSE

version -  Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

As per ..How to Change Default Parameters for Gathering Statistics in Oracle 11g or Later (Doc ID 1493227.1)

Found a note :

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