The RESET_GLOBAL_PREF_DEFAULTS procedure restores global Prefs to their default values.
This procedure is commonly used for a full restore after adjusting the global statistics collection strategy. Global preferences set using SET_GLOBAL_PREFS (such as CASCADE, METHOD_OPT, STALE_PERCENT, GRANULARITY, etc.) affect all tables within the tenant that have not individually set table-level preferences. By calling this procedure, you can restore these preferences to the database-recommended defaults in one go, without having to individually override them back to default using SET_GLOBAL_PREFS.
Syntax
DBMS_STATS.RESET_GLOBAL_PREF_DEFAULTS;
Considerations
- This procedure has no parameters. It only resets global Prefs and does not affect parameter-level defaults set using
SET_PARAM, nor does it affect table-level preferences set individually for tables usingSET_TABLE_PREFS. - Before executing this procedure, the system will implicitly commit the current transaction.
Examples
Reset all global Prefs to their default values.
obclient> CALL DBMS_STATS.RESET_GLOBAL_PREF_DEFAULTS();