Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Cost explosion

Re: Cost explosion

From: <coneal_at_kill_spammers.exis.net>
Date: 1998/03/08
Message-ID: <35086e29.101674511@news.exis.net>#1/1

On Sat, 07 Mar 1998 13:26:26 GMT, boulkenospam_at_globalnet.co.uk (Keith Boulton) wrote:

>On Wed, 04 Mar 1998 10:19:57 +0100, Stephan Schaefer
><stephan.schaefer_at_camline.com> wrote:
>
>>I have got a select statement that takes 2 seconds to compute
>>the result.
>>But I wait hours for:
>>select count(*) from ( "select_2_seconds" ) ;
>>The same happens for
>>select max(rownum) from ( "select_2_seconds" ) ;
>>and
>>create myview as select * from ( "select_2_seconds" ) ;
>
>Try issuing alter session set optimizer_goal = first_rows.
>
>This can also be specified as the optimizer_mode parameter in
>init.ora.

Some may consider this cheating, but find a method that works (RULE,CHOOSE....) in an acceptable time frame, get the explain plan for it and use hints to drive the query to that access path. Received on Sun Mar 08 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US