DBMS_STATS.GATHER_DICTIONARY_STATS not gathering stale statistics

  • From: Ls Cheng <exriscer@xxxxxxxxx>
  • To: Oracle Mailinglist <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 13 Jul 2021 14:37:00 +0200

Hi all

I am running 19.10 8 nodes RAC database with Multitenant. I noticed that
after running DBMS_STATS.GATHER_DICTIONARY_STATS in the PDB I still see
tables with stale statistics under SYS. For example:

exec DBMS_STATS.GATHER_DICTIONARY_STATS

SQL> select count(*)
  2  from dba_tab_statistics
  3  where  STALE_STATS = 'YES'
  4  and owner = 'SYS';

  COUNT(*)
----------
       305

Anyone seen this behaviour?

TIA

Other related posts: