dbms_stats.gather_schema_stats VS dbms_utility.analyze_schema
668860Apr 2 2009 — edited Apr 2 2009hi folks,
I am trying to gather stats on Oracle 10.2.0.4 RAC on linux.
When I use - execute dbms_utility.analyze_schema('SYSADM','ESTIMATE',0,10); - stats are gathered in 3.5 hours
and whn I use - exec DBMS_STATS.gather_schema_stats(ownname=>'SYSADM',estimate_percent=>10, cascade=>TRUE, method_opt=>'FOR ALL COLUMNS SIZE AUTO',degree=>5);
this is taking 7-8 hours.
Oracle documentation says dbms_stats with PARALLEL option runs faster than the dbms_utility. please advise if I am missing anything here.
my goal is to gather stats as quickly as possible.
thanks!