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 A10C51960FBD
 for <oracle-l@orafaq.com>; Thu,  6 Jun 2013 17:27:40 +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:27:40 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DF4C9225C3;
 Thu,  6 Jun 2013 11:14:30 -0400 (EDT)
Authentication-Results: turing.freelists.org; dkim=fail
 (verification failed; insecure key) header.i=@gmail.com;
 dkim-adsp=none (insecure policy)
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 79McMb+qHcUc; Thu,  6 Jun 2013 11:14:30 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 97482222E5;
 Thu,  6 Jun 2013 11:13:49 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 06 Jun 2013 11:13:08 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 290FB22221
 for <oracle-l@freelists.org>; Thu,  6 Jun 2013 11:13:08 -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 POo++Nwdeau2 for <oracle-l@freelists.org>;
 Thu,  6 Jun 2013 11:13:08 -0400 (EDT)
Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 03E4A210CC
 for <oracle-l@freelists.org>; Thu,  6 Jun 2013 11:13:07 -0400 (EDT)
Received: by mail-oa0-f51.google.com with SMTP id f4so2303243oah.24
        for <oracle-l@freelists.org>; Thu, 06 Jun 2013 08:26:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=aInqicfSkt1oHVsXZEUiHvQK+cD+mVboDcvrKXaQmLA=;
        b=Jhd0Tg2RoSfFsGs+sJHG0I8QbVcvp+EPMsMX9SLDyEy7rr7ghBD68mqiJGDGzPB7Bw
         PiaaVUNS4EvGfnAufze2peVe1uNiy9lgumM0I8j9RCLabCKWm21mnVCUYQmk4HjjFjMz
         GYwrQFqSLaO9ciHksfR9JvLfQzdW3JFovUr0brfBZG6UJgh74LH4WPvySm1klRcN0jUf
         FJaowVUiEX/ySbdtgxdUKOg2nsiqbpfg/cQgUchJjmjCBkSmaaI1OZpmSCLxM5w4eQXt
         vr9eLLCx2RccobhmCuG1+wVPzOsqR7LuWufKW4c5j0Fa4punHZ2sQ6y2cB3G7lbPjNSv
         uJCA==
MIME-Version: 1.0
X-Received: by 10.60.50.202 with SMTP id e10mr18138859oeo.42.1370532375881;
 Thu, 06 Jun 2013 08:26:15 -0700 (PDT)
Received: by 10.182.51.39 with HTTP; Thu, 6 Jun 2013 08:26:15 -0700 (PDT)
In-Reply-To: <F05D8DF1FB25F44085DB74CB916678E887A05B427D@NADCWPMSGCMS10.hca.corpad.net>
References: <F05D8DF1FB25F44085DB74CB916678E887A05B427D@NADCWPMSGCMS10.hca.corpad.net>
Date: Thu, 6 Jun 2013 17:26:15 +0200
Message-ID: <CAJu8R6gUD5D54EjUNM8SdAoiFzgL+OzKzJWA4GD_U9ED=Ag5uw@mail.gmail.com>
Subject: Re: Partitioned Explain Plan - Pstart/Pstop = KEY after execution
From: Mohamed Houri <mohamed.houri@gmail.com>
To: Christopher.Taylor2@parallon.net
Cc: ORACLE-L <oracle-l@freelists.org>
Content-type: text/plain
Content-Transfer-Encoding: 8bit
X-archive-position: 49203
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mohamed.houri@gmail.com
Precedence: normal
Reply-To: mohamed.houri@gmail.com
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

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


2013/6/6 <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


