Received: (qmail 14685 invoked from network); 2 Feb 2012 15:20:29 -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:20:11 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 155DFE8CEA9;
 Thu,  2 Feb 2012 16:20:09 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1328217609; bh=CXm5CNBncBcHP4cVIRVi+deD2dr1XTC/a79wvXnh
 5F8=; h=MIME-Version:Content-type:Subject:Date:Message-ID:
	 In-Reply-To:References:From:To:Content-Transfer-Encoding:Sender:
	 Reply-To:List-help:List-unsubscribe:List-Id:List-subscribe:
	 List-owner:List-post:List-archive; b=kr56u6cCR8LzuvBIOXxkoEUcTwicu
 llTGWmJ9xoOKAU7LEmylT10Jd9C+wfM5u5PKXrh2IlinEaRzBLOtYeyb2NJhXZqcEFu
 tt0K/udlFYBNc88i6JAV3EJh/pEPLtAxFRAQR5lO3n7m5M1Jxm2NeJFON5AuhjxHbY9
 lTbq4+3M=
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 V7zA53A4Dk+D; Thu,  2 Feb 2012 16:20:08 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 13BFDE8CD01;
 Thu,  2 Feb 2012 16:19:25 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 02 Feb 2012 16:18:43 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 23C82E8CCC3
 for <oracle-l@freelists.org>; Thu,  2 Feb 2012 16:18:43 -0500 (EST)
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 xbWlMted81xZ for <oracle-l@freelists.org>;
 Thu,  2 Feb 2012 16:18:43 -0500 (EST)
Received: from USA7109MR001.ACS-INC.COM (usa7109mr001.acs-inc.com [63.101.151.9])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 59408E8CCB2
 for <oracle-l@freelists.org>; Thu,  2 Feb 2012 16:18:41 -0500 (EST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhoDAB/9Kk8Nh9IPmWdsb2JhbAA4CoJRm3qQSyIBAQEBAQgLCwcUJYFyAQEBBAEBAQwBDBEDLyoCAQgOAwQBAQsGDAsBBgFEAQkIAQEDAQESCAGHfKdyAYsEh3hJgzopD4M2AR0XCwUOAgQCDh4NAgyCWmMEiEKFBpJjh2s
Received: from usa0300gw002.na.xerox.net ([13.135.210.15])
  by USA7109MR001.ACS-INC.COM with ESMTP; 02 Feb 2012 15:18:40 -0600
Received: from usa0300ms02.na.xerox.net ([13.135.234.15]) by USA0300GW002.na.xerox.net with Microsoft SMTPSVC(6.0.3790.4675);
	 Thu, 2 Feb 2012 16:18:19 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-type: text/plain
Subject: RE: Enforcing plan via SQL plan baseline
Date: Thu, 2 Feb 2012 16:17:39 -0500
Message-ID: <304F58144267C5439E733532ABC9A3A1140393A8@USA0300MS02.na.xerox.net>
In-Reply-To: <1328217213.81844.YahooMailNeo@web36808.mail.mud.yahoo.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Enforcing plan via SQL plan baseline
References: <304F58144267C5439E733532ABC9A3A11403936A@USA0300MS02.na.xerox.net> <1328217213.81844.YahooMailNeo@web36808.mail.mud.yahoo.com>
From: "Hameed, Amir" <Amir.Hameed@xerox.com>
To: "Antony Raj" <ca_raj@yahoo.com>,
 <oracle-l@freelists.org>
X-OriginalArrivalTime: 02 Feb 2012 21:18:19.0270 (UTC) FILETIME=[2F875260:01CCE1F0]
Content-Transfer-Encoding: 8bit
X-archive-position: 41254
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: Amir.Hameed@xerox.com
Precedence: normal
Reply-To: Amir.Hameed@xerox.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

Thanks Raj.
I have tried it several times and the optimizer keeps ignoring the
manually loaded plan and overwriting it with the one that it is
generating, which is an optimal plan. So, the question is, can SQL
profiles be used to force a bad plan over a good plan?

 

Thanks

 

From: Antony Raj [mailto:ca_raj@yahoo.com] 
Sent: Thursday, February 02, 2012 4:14 PM
To: Hameed, Amir; oracle-l@freelists.org
Subject: Re: Enforcing plan via SQL plan baseline

 

Hi Amir,

 

You need to load the plan manually using DBMS_SPM package.Identify the
SQLID of the plan that you need.

Manually loaded plans are automatically marked as accepted, so manual
loading forces the evolving process.

 

Thanks

 

 

From: "Hameed, Amir" <Amir.Hameed@xerox.com>
To: oracle-l@freelists.org 
Sent: Thursday, February 2, 2012 3:56 PM
Subject: Enforcing plan via SQL plan baseline


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


