Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to check if a table's stats are stale in 9i ?

flying_penguinNov 7 2016 — edited Nov 9 2016

Oracle RDBMS version: 9.2.0.6

Operating System version : Solaris 5.9

In 10g and 11g , I can use the following query to check if a table's stats have become stale. But, in 9i DBs , there is no DBA_TAB_STATISTICS view. So, how can I check table's stats have become stale as a result of table's data changing x%  ?

select SAMPLE_SIZE, STALE_STATS, LAST_ANALYZED from DBA_TAB_STATISTICS where table_name= 'EMP' and owner = 'SCOTT';

  SAMPLE_SIZE STALE_STATS  LAST_ANALYZED

------------- ------------ ----------------

     12068631 NO          26-10-2016 23:25

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2016
Added on Nov 7 2016
10 comments
3,419 views