Re: Enforcing plan via SQL plan baseline

  • From: Antony Raj <ca_raj@xxxxxxxxx>
  • To: "Amir.Hameed@xxxxxxxxx" <Amir.Hameed@xxxxxxxxx>, "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 2 Feb 2012 13:13:33 -0800 (PST)

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@xxxxxxxxx>
To: oracle-l@xxxxxxxxxxxxx 
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






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


Other related posts: