Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help with query...
Comments in-line
Andrew Metcalfe wrote:
>>Are statistics current?
Next time read the documentation. Use statistical sampling.
> The table has 7 million records. Whats a reasonable amount of time to
> wait?
>
>>Were they created with DBMS_STATS?
Oracle no longer recommends using analyze table. Go to http://tahiti.oracle.com. Learn how to use DBMS_STATS with statistical sampling.
>>On tables only or on tables and indexes? >>What is the setting for optimizer_index_cost_adj?
Try changing it to 50 and tune from there.
>>What is the stting for optimizer_index_caching?
Try changing it to 50 and tune from there.
>>What percentage of the rows in the table will this retrieve?
Then an index seems to be appropriate. My guess is lack of statistics and improper settings of the init parameters.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Mon May 03 2004 - 14:33:48 CDT