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
- Follow-Ups:
- Re: Which one is good in terms of performance
- From: Wolfgang Breitling
Other related posts:
- » Which one is good in terms of performance
- » RE: Which one is good in terms of performance
- » Re: Which one is good in terms of performance
- » RE: Which one is good in terms of performance
- » Re: Which one is good in terms of performance
- » Re: Which one is good in terms of performance
- » Re: Which one is good in terms of performance
- » RE: Which one is good in terms of performance
- » Re: Which one is good in terms of performance
- Re: Which one is good in terms of performance
- From: Wolfgang Breitling