Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Which one is good in terms of performance
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-lReceived on Thu Dec 23 2004 - 14:02:20 CST
![]() |
![]() |