Reputation: 31
I have a query using wrong indexes. I can see that with the usage of index there is no easy way for oracle fetch the data.The query is framed by a vendor software, and cannot be changed, Is there a way to force oracle to change the explain plan without hints. Any help would be much appreciated.
Upvotes: 3
Views: 3466
Reputation: 36872
There are at least 11 ways to control a plan without modifying the query. They are listed below roughly in the order of usefulness:
alter session set optimizer_features_enable='11.2.0.3';
. There aren't always helpful parameters. But one of the OPTIMIZER_* parameters may help, or you may be able to change the plan with an undocumented hint or disabling a feature like this: alter session set "_fix_control"='XYZ:OFF';
Upvotes: 8