Re: Horrendous Execution Plan from CBO

2002-06-08 Thread Stephane Faroult
Stahlke, Mark wrote: Greetings, One of our developers came to me with a fairly simple query that runs much faster when she uses the RBO. I looked at the execution plans generated by both the RBO and CBO and the CBO's plan is horrible. I was able to get a reasonable plan from the CBO

Re: Horrendous Execution Plan from CBO

2002-06-08 Thread Tim Gorman
tats. Thanks! -Tim - Original Message - From: "Stahlke, Mark" [EMAIL PROTECTED] To: "Multiple recipients of list ORACLE-L" [EMAIL PROTECTED] Sent: Friday, June 07, 2002 3:51 PM Subject: Horrendous Execution Plan from CBO Greetings, One of our developers came to me

Horrendous Execution Plan from CBO

2002-06-07 Thread Stahlke, Mark
Greetings, One of our developers came to me with a fairly simple query that runs much faster when she uses the RBO. I looked at the execution plans generated by both the RBO and CBO and the CBO's plan is horrible. I was able to get a reasonable plan from the CBO using a USE_NL hint. Do any of

Re: Horrendous Execution Plan from CBO

2002-06-07 Thread Jared . Still
:Horrendous Execution Plan from CBO Greetings, One of our developers came to me with a fairly simple query that runs much faster when she uses the RBO. I looked at the execution plans generated by both the RBO and CBO and the CBO's plan is horrible. I was able to get a reasonable plan from

RE: Horrendous Execution Plan from CBO

2002-06-07 Thread Stahlke, Mark
:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 3:29 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject:Re: Horrendous Execution Plan from CBO When were statistics last generated? Any significant DML since then? Jared

RE: Horrendous Execution Plan from CBO

2002-06-07 Thread John Kanagaraj
Mark, Do any of you SQL tuning gurus have any suggestions? I've listed all the gory details below. I am not a SQL tuning guru, but it looks like this is an ideal example where Hash joins would be of immense help. You could set a largish value for HASH_AREA_SIZE (defaults to twice

RE: Horrendous Execution Plan from CBO

2002-06-07 Thread Jared . Still
Please respond to ORACLE-L To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] cc: Subject:RE: Horrendous Execution Plan from CBO Thanks for the quick responses. I analyzed both tables immediately before I started testing. The USE_MERGE hint gives me

RE: Horrendous Execution Plan from CBO

2002-06-07 Thread Stahlke, Mark
ORACLE-L Subject:RE: Horrendous Execution Plan from CBO Mark, Do any of you SQL tuning gurus have any suggestions? I've listed all the gory details below. I am not a SQL tuning guru, but it looks like this is an ideal example where

Re: Horrendous Execution Plan from CBO

2002-06-07 Thread Nuno Souto
7.3.4? You're brave... Try to analyze with the following syntax: ANALYZE TABLE tname COMPUTE STATISTICS FOR ALL INDEXED COLUMNS; There was a funny with CBO that it ignored index stats completely even in some very simple joins. With 7.3.4. Usually this fixed the problem. Can't remember which