Return-Path: <root@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h45Kt1n28062
 for <oracle-l@orafaq.net>; Mon, 5 May 2003 15:55:01 -0500
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h45Kt0A28054
 for <oracle-l@orafaq.net>; Mon, 5 May 2003 15:55:00 -0500
Received: from fatcity.com (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id LAA82676;
 Mon, 5 May 2003 11:30:03 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0058FF3E; Mon, 05 May 2003 11:08:21 -0800
Message-ID: <F001.0058FF3E.20030505110821@fatcity.com>
Date: Mon, 05 May 2003 11:08:21 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Paula_Stankus@doh.state.fl.us
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Paula_Stankus@doh.state.fl.us
Subject: RE: Re: which should be faster
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----_=_NextPart_001_01C31331.B7601B00"
------_=_NextPart_001_01C31331.B7601B00
Content-Type: text/plain;
 charset="iso-8859-1"

If the CBO now considers CPU costing couldn't it change the execution plan
of tuned 8i queries to decrease throughput and possibly also degrade
response time for a particular query?  For example, I have a batch program I
am running in parallel and since I know I will run it without other
concurrent sessions (in a purely batch window) I am happy to use 80% of my
CPU.  Now in 9i CPU cost is taken into account, the CBO uses a different
execution plan and the batch process is taking slower although throughput is
increased?



Oracle OCP DBA


-----Original Message-----
Sent: Monday, May 05, 2003 2:50 PM
To: Multiple recipients of list ORACLE-L



What I tried to say over the weekend was:

Predicate order should not matter in 9i
because you should be using CPU costing,
and Oracle 9i will re-arrange predicate ordering
to minimise CPU load, and report this fact
in the explain plan.

Predicate order CAN have an impact on
8.1.7 because Oracle 8i (and earlier) does
not consider CPU cost when working out
an execution plan.



Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr


One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

____Denmark__May 21-23rd
____Sweden___June
____Finland__September
____Norway___September

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html
____UK_(Manchester)_May x 2
____Estonia___June (provisional)
____Australia_June (provisional)
____USA_(CA, TX)_August

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html


----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L@fatcity.com>
Sent: 05 May 2003 18:01


> jonathan lewis posted over the weekend that it does. He said it does
in 9i unless you have a certain parameter set. Cant remember what that
was off-hand.
>
> >
> > From: "AK" <oramagic@hotmail.com>
> > Date: 2003/05/05 Mon AM 11:46:41 EDT
> > To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
> > Subject: Re: which should be faster
> >
> > does predicate order makes diff in cob also ?
> > oracle 8.1.7
> >



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jonathan Lewis
  INET: jonathan@jlcomp.demon.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

------_=_NextPart_001_01C31331.B7601B00
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>RE: Re: which should be faster</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If the CBO now considers CPU costing couldn't it =
change the execution plan of tuned 8i queries to decrease throughput =
and possibly also degrade response time for a particular query?&nbsp; =
For example, I have a batch program I am running in parallel and since =
I know I will run it without other concurrent sessions (in a purely =
batch window) I am happy to use 80% of my CPU.&nbsp; Now in 9i CPU cost =
is taken into account, the CBO uses a different execution plan and the =
batch process is taking slower although throughput is =
increased?</FONT></P>
<BR>
<BR>

<P><FONT SIZE=3D2>Oracle OCP DBA</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Jonathan Lewis [<A =
HREF=3D"mailto:jonathan@jlcomp.demon.co.uk">mailto:jonathan@jlcomp.demon=
.co.uk</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Monday, May 05, 2003 2:50 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: Re: Re: which should be faster</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>What I tried to say over the weekend was:</FONT>
</P>

<P><FONT SIZE=3D2>Predicate order should not matter in 9i</FONT>
<BR><FONT SIZE=3D2>because you should be using CPU costing,</FONT>
<BR><FONT SIZE=3D2>and Oracle 9i will re-arrange predicate =
ordering</FONT>
<BR><FONT SIZE=3D2>to minimise CPU load, and report this fact</FONT>
<BR><FONT SIZE=3D2>in the explain plan.</FONT>
</P>

<P><FONT SIZE=3D2>Predicate order CAN have an impact on</FONT>
<BR><FONT SIZE=3D2>8.1.7 because Oracle 8i (and earlier) does</FONT>
<BR><FONT SIZE=3D2>not consider CPU cost when working out</FONT>
<BR><FONT SIZE=3D2>an execution plan.</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>Regards</FONT>
</P>

<P><FONT SIZE=3D2>Jonathan Lewis</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.jlcomp.demon.co.uk" =
TARGET=3D"_blank">http://www.jlcomp.demon.co.uk</A></FONT>
</P>

<P><FONT SIZE=3D2>&nbsp; The educated person is not the person</FONT>
<BR><FONT SIZE=3D2>&nbsp; who can answer the questions, but the</FONT>
<BR><FONT SIZE=3D2>&nbsp; person who can question the answers -- T. =
Schick Jr</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>One-day tutorials:</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.jlcomp.demon.co.uk/tutorial.html" =
TARGET=3D"_blank">http://www.jlcomp.demon.co.uk/tutorial.html</A></FONT>=

</P>

<P><FONT SIZE=3D2>____Denmark__May 21-23rd</FONT>
<BR><FONT SIZE=3D2>____Sweden___June</FONT>
<BR><FONT SIZE=3D2>____Finland__September</FONT>
<BR><FONT SIZE=3D2>____Norway___September</FONT>
</P>

<P><FONT SIZE=3D2>Three-day seminar:</FONT>
<BR><FONT SIZE=3D2>see <A =
HREF=3D"http://www.jlcomp.demon.co.uk/seminar.html" =
TARGET=3D"_blank">http://www.jlcomp.demon.co.uk/seminar.html</A></FONT>
<BR><FONT SIZE=3D2>____UK_(Manchester)_May x 2</FONT>
<BR><FONT SIZE=3D2>____Estonia___June (provisional)</FONT>
<BR><FONT SIZE=3D2>____Australia_June (provisional)</FONT>
<BR><FONT SIZE=3D2>____USA_(CA, TX)_August</FONT>
</P>

<P><FONT SIZE=3D2>The Co-operative Oracle Users' FAQ</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.jlcomp.demon.co.uk/faq/ind_faq.html" =
TARGET=3D"_blank">http://www.jlcomp.demon.co.uk/faq/ind_faq.html</A></FO=
NT>
</P>
<BR>

<P><FONT SIZE=3D2>----- Original Message -----</FONT>
<BR><FONT SIZE=3D2>To: &quot;Multiple recipients of list ORACLE-L&quot; =
&lt;ORACLE-L@fatcity.com&gt;</FONT>
<BR><FONT SIZE=3D2>Sent: 05 May 2003 18:01</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt; jonathan lewis posted over the weekend that it =
does. He said it does</FONT>
<BR><FONT SIZE=3D2>in 9i unless you have a certain parameter set. Cant =
remember what that</FONT>
<BR><FONT SIZE=3D2>was off-hand.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; From: &quot;AK&quot; =
&lt;oramagic@hotmail.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Date: 2003/05/05 Mon AM 11:46:41 =
EDT</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; To: Multiple recipients of list ORACLE-L =
&lt;ORACLE-L@fatcity.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Subject: Re: which should be faster</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; does predicate order makes diff in cob =
also ?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; oracle 8.1.7</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.net" =
TARGET=3D"_blank">http://www.orafaq.net</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Jonathan Lewis</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: jonathan@jlcomp.demon.co.uk</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
858-538-5051 <A HREF=3D"http://www.fatcity.com" =
TARGET=3D"_blank">http://www.fatcity.com</A></FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list =
and web hosting services</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
------</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru@fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>also send the HELP command for other information =
(like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C31331.B7601B00--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: Paula_Stankus@doh.state.fl.us

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

