Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id 47E361960FBD
 for <oracle-l@orafaq.com>; Thu,  6 Jun 2013 17:33:32 +0200 (CEST)
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTP
 for <oracle-l@orafaq.com>; Thu,  6 Jun 2013 17:33:32 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AD84522AED;
 Thu,  6 Jun 2013 11:20:21 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id EtpS0WFzEaVI; Thu,  6 Jun 2013 11:20:21 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7BB312279E;
 Thu,  6 Jun 2013 11:19:40 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 06 Jun 2013 11:18:59 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6A0F82222F
 for <oracle-l@freelists.org>; Thu,  6 Jun 2013 11:18:59 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 05ST13at5wLB for <oracle-l@freelists.org>;
 Thu,  6 Jun 2013 11:18:59 -0400 (EDT)
Received: from pps.mail.medcity.net (hcacorpqol.net [199.91.33.184])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A64C022165
 for <oracle-l@freelists.org>; Thu,  6 Jun 2013 11:18:58 -0400 (EDT)
Received: from pps.filterd (NADCLZMSGPMG01A [127.0.0.1])
 by NADCLZMSGPMG01A.medcity.net (8.14.4/8.14.4) with SMTP id r56FRoT4020889;
 Thu, 6 Jun 2013 10:32:06 -0500
Received: from pps.mail.medcity.net ([10.26.43.101])
 by NADCLZMSGPMG01A.medcity.net with ESMTP id 1ctvrx0s3j-1
 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
 Thu, 06 Jun 2013 10:32:06 -0500
Received: from pps.filterd (NADCLPMSGPMG02B [127.0.0.1])
 by NADCLPMSGPMG02B.hca.corpad.net (8.14.4/8.14.4) with SMTP id r56FRrdN027022;
 Thu, 6 Jun 2013 10:31:13 -0500
Received: from nadcwpmsght03.hca.corpad.net (nrdc-f5-frontside.mgmt.medcity.net [10.26.109.5])
 by NADCLPMSGPMG02B.hca.corpad.net with ESMTP id 1cttsqr5ap-1
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT);
 Thu, 06 Jun 2013 10:31:13 -0500
Received: from NADCWPMSGCMS10.hca.corpad.net ([10.26.103.29]) by
 NADCWPMSGHT03.hca.corpad.net ([10.26.103.53]) with mapi; Thu, 6 Jun 2013
 10:31:12 -0500
From: <Christopher.Taylor2@parallon.net>
To: <mohamed.houri@gmail.com>
CC: <oracle-l@freelists.org>
Date: Thu, 6 Jun 2013 10:31:11 -0500
Subject: RE: Partitioned Explain Plan - Pstart/Pstop = KEY after execution
Thread-Topic: Partitioned Explain Plan - Pstart/Pstop = KEY after execution
Message-ID: <F05D8DF1FB25F44085DB74CB916678E887A05B42F4@NADCWPMSGCMS10.hca.corpad.net>
References: <F05D8DF1FB25F44085DB74CB916678E887A05B427D@NADCWPMSGCMS10.hca.corpad.net>
 <CAJu8R6gUD5D54EjUNM8SdAoiFzgL+OzKzJWA4GD_U9ED=Ag5uw@mail.gmail.com>
In-Reply-To: <CAJu8R6gUD5D54EjUNM8SdAoiFzgL+OzKzJWA4GD_U9ED=Ag5uw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-type: text/plain
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-archive-position: 49204
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: Christopher.Taylor2@parallon.net
Precedence: normal
Reply-To: Christopher.Taylor2@parallon.net
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

Well, complete partition pruning definitely did not occur.  (See my email about running the trace file through orasrp - multiple partitions were touched/checked/scanned for the partitioned table in question.
It threw me off that after execution it still said KEY for the execution plan.

(Unless you're telling me that every partition will be touched in a partition pruning scenario anyway which I don't *think* would happen but perhaps it might)

Chris

From: Mohamed Houri [mailto:mohamed.houri@gmail.com]
Sent: Thursday, June 06, 2013 10:26 AM
To: Taylor Christopher - Nashville
Cc: ORACLE-L
Subject: Re: Partitioned Explain Plan - Pstart/Pstop = KEY after execution

The partition pruning did occur in this case. This is just an indication that during the parse time the optimizer couldn't know what is the exact partition to prune. This happens when you are using partition keys as bind variable

Best regards

Mohamed Houri
www.hourim.wordpress.com<http://www.hourim.wordpress.com>

2013/6/6 <Christopher.Taylor2@parallon.net<mailto:Christopher.Taylor2@parallon.net>>
Env: 10.2.0.4 RAC Linux 64-bit
I've got an explain plan with Pstart/Pstop with "KEY" instead of partition numbers.  I've been reading http://www.oracle.com/technetwork/database/bi-datawarehousing/twp-explain-the-explain-plan-052011-393674.pdf (The Oracle Optimizer Explain the Explain Plan) and it explains that KEY is used when Oracle believes the execution will dynamically partition prune.

So I executed my statement and traced it (of course) and still the explain plan shows KEY KEY and running it through orasrp shows that many partitions were scanned (perhaps not all of them however - I haven't checked).

So, is it safe to say that *after* execution if the plan has KEY KEY then partition pruning did not occur?

Thanks!!

Chris Taylor
Oracle DBA
Parallon IT&S


--
http://www.freelists.org/webpage/oracle-l




--
Bien Respectueusement
Mohamed Houri

--
http://www.freelists.org/webpage/oracle-l


