Received: (qmail 14801 invoked from network); 2 Feb 2012 15:23:21 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.ip-pool.com with SMTP; 2 Feb 2012 15:23:02 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id ACB28E8CEDA;
 Thu,  2 Feb 2012 16:23:01 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1328217781; bh=Zj1qWhrIYT7jVI1yHnr1sFPmCjBNqugti0mCWzm0
 qCo=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:
	 From:To:Cc:Content-type:Content-Transfer-Encoding:Sender:Reply-To:
	 List-help:List-unsubscribe:List-Id:List-subscribe:List-owner:
	 List-post:List-archive; b=F2o6v4cewY09gSlgJY46pTdParfsZ84CC0bCqPOU
 dvVV8hRkSAPJfwHRlbHsAZhCCAIeI3d70AaA1GaUAeAv4eIjrw+UrqUc6nO39yUvRdv
 pK+4PQUR94b1fJI7thygfM1yZqBRIpwFQ3qP+mIXKYHAvJMQwKYzv0GghNsnqKZs=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
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 CQHaDdTM0tog; Thu,  2 Feb 2012 16:23:01 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4D841E8CD73;
 Thu,  2 Feb 2012 16:22:18 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 02 Feb 2012 16:21:36 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 20D1FE8CD0D
 for <oracle-l@freelists.org>; Thu,  2 Feb 2012 16:21:36 -0500 (EST)
Authentication-Results: turing.freelists.org; dkim=pass (1024-bit key) header.i=@gmail.com
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 TnfkdiN8bmyO for <oracle-l@freelists.org>;
 Thu,  2 Feb 2012 16:21:36 -0500 (EST)
Received: from mail-iy0-f179.google.com (mail-iy0-f179.google.com [209.85.210.179])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4C3DBE8CCFE
 for <oracle-l@freelists.org>; Thu,  2 Feb 2012 16:21:34 -0500 (EST)
Received: by iabz21 with SMTP id z21so4201470iab.10
        for <oracle-l@freelists.org>; Thu, 02 Feb 2012 13:21:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=bF2wz+Xfgb347wu8TLpkweVaKevYcWqXdpR3l2++Ins=;
        b=YqJIqp0ww8JJOJ7Den0Q4y7t49NP15aHNYvvrfEycZr20iCwHT9Ie3o8iZBmXED89O
         x6Lg/HfIAQZCs8cUjSxMWaf6vQtOwGlKALUEMOGsz3p+Hxy1MZbgXYreLdCIEjUsxGbm
         FQxczcojsxylMRoUL/z0s1j3ZWg19q2LceLAk=
MIME-Version: 1.0
Received: by 10.50.203.98 with SMTP id kp2mr5274789igc.5.1328217694014; Thu,
 02 Feb 2012 13:21:34 -0800 (PST)
Received: by 10.231.37.5 with HTTP; Thu, 2 Feb 2012 13:21:33 -0800 (PST)
In-Reply-To: <304F58144267C5439E733532ABC9A3A11403936A@USA0300MS02.na.xerox.net>
References: <304F58144267C5439E733532ABC9A3A11403936A@USA0300MS02.na.xerox.net>
Date: Thu, 2 Feb 2012 15:21:33 -0600
Message-ID: <CAGWRspY8qREL3ay2x+NfwSumz2ixzpGm-MXiB8PVBrXNcJiTkA@mail.gmail.com>
Subject: Re: Enforcing plan via SQL plan baseline
From: Mihajlo Tekic <mihajlo.tekic@gmail.com>
To: Amir.Hameed@xerox.com
Cc: oracle-l@freelists.org
Content-type: text/plain
Content-Transfer-Encoding: 8bit
X-archive-position: 41255
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mihajlo.tekic@gmail.com
Precedence: normal
Reply-To: mihajlo.tekic@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

Have you tried to fix the plan that you want to be used. (Fixed Plan
Baseline)
http://docs.oracle.com/cd/B28359_01/server.111/b28274/optplanmgmt.htm#BABICJBG


~Mihajlo

On Thu, Feb 2, 2012 at 2:56 PM, Hameed, Amir <Amir.Hameed@xerox.com> wrote:

> Folks,
> When using SQL plan baseline, is it possible to instruct the optimizer
> to use a baseline that has sub-optimal plan than the one it is currently
> using. For example, a SQL statement, which cannot be altered because it
> is coming out of a COTS application, is currently using an index scan
> and I would like to force it to use FTS. I have tried forcing the
> optimizer to use the SQL plan baseline but it keeps using the index path
> and hence ignoring the plan baseline. Any feedback will be appreciated.
>
>
>
> Thanks
>
> Amir
>
>
>
>
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>


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


