Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: why people delete statistics bore running statistics
Hello,
At metalink, I found a script to gather statistics on 11i ebusiness suite :
Subject: *coe_stats.sql - Automates CBO Stats Gathering using
FND_STATS and Table sizes*
Doc ID </help/usaeng/Search/search.html#file>: *Note:156968.1*
foreach tables, the script does :
EXEC DBMS_STATS.DELETE_TABLE_STATS(ownname => 'x', tabname => 'TABLE'); ANALYZE TABLE x.TABLE ESTIMATE STATISTICS SAMPLE 1 ROWS; EXEC FND_STATS.GATHER_TABLE_STATS(ownname=>'x',tabname=>'TABLE', ...);
I think there would be a valid raison to do that. Why the analyze statement before the gather_table_stats ?
Thank you Received on Mon Oct 23 2006 - 13:51:22 CDT