Setting DBMS_STATS.ALTER_STATS_HISTORY_RETENTION In Primary Does not reflect in Standby Side (Doc ID 1614876.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Changing  the retention time of  STATS_RETENTION, which contains older versions of optimizer statistic according Doc ID 329984.1 does not reflect on standby side.

SQL> select dbms_stats.get_stats_history_retention from dual; -> result: 31


SQL> exec DBMS_STATS.ALTER_STATS_HISTORY_RETENTION(30);

Primary side value is changed :


SQL> select dbms_stats.get_stats_history_retention from dual; -> result: 30

 

Performed multiple log switch But on Standby side 'STATS_RETENTION'  is still 31.


SQL> select dbms_stats.get_stats_history_retention from dual; -> result: 31

 

Changes

 No Change

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms