Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

oracle 11g - force rule based optimizer for one SQL ID

4054fce3-5273-4897-aa9e-72c5888245a1Oct 1 2015 — edited Oct 1 2015

We have a vendor application and while cost based works fine for tens of thousands of queries there is one which does not.  It joins between two tables and uses a select max.   When the inner table has thousands of rows it no longer uses the index and runs for a very long time impacting performance.  It runs fine using the rule based optimizer.

While the vendor will fix this, in the mean time is it possible to force a single specific SQL ID to use a rule base optimizer?  This would need to be from the database sides as we cannot modify the query itself.

This post has been answered by Dom Brooks on Oct 1 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2015
Added on Oct 1 2015
4 comments
678 views