Which one is good in terms of performance

  • From: "Seema Singh" <oracledbam@xxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Thu, 23 Dec 2004 15:05:36 -0500

Hi,

1)
exec dbms_stats.gather_schema_stats(ownname =>'''||username||
''',degree=>4,cascade =>TRUE,options=>''GATHER STALE'');
2)DBMS_UTILITY.ANALYZE_SCHEMA('USERNAME','COMPUTE');
3)ANALYZE TABLE <TABLENAME> COMPUTE STATTISTICS FOR ALL INDEXES COLUMNS;
Please suggest which is best in case of cost based optimizer in Oracle9i.
thanks


--
http://www.freelists.org/webpage/oracle-l

Other related posts: