Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Why doesn't GATHER STALE (DBMS_STATS) reANALYZE this table?
(I posted (something similar to) this before, I wonder if it got lost
during the flood of cancels and reposts.)
8.1.6.1.0 on Linux (Redhat)
SELECT NUM_ROWS, MONITORING FROM User_Tables WHERE Table_Name =
'TABLE';
NUM_ROWS MONITORING
---------- ----------
10244 YES SELECT INSERTS, DELETES, UPDATES, (INSERTS + DELETES + UPDATES) Total FROM User_Tab_Modifications WHERE Table_Name = 'CAMPAIGN';
INSERTS DELETES UPDATES TOTAL ---------- ---------- ---------- ----------
33 0 6204 6237
SELECT ROUND((6237 / 10244) * 100, 2) || '%' Percent FROM Dual;
PERCENT
I ran DBMS_STATS.GATHER_SCHEMA_STATS('SCHEMA', CASCADE => TRUE, OPTIONS => 'GATHER STALE'); and this table did not get reanalyzed. Why is that?
Brian Received on Wed Jan 30 2002 - 10:24:50 CST