Forcing a SQL statement to use execution plan (from different SQL)
Hi
We have a 11.2.0.4 database STANDARD EDITION
There is this query that is taking a long time to run
Upon analysis, we discovered that it is using an index that it should not
So we tried to re-run that query with hints forcing it to use the index we think it should and it ran a lot faster
(for the sake of clarity / simplicity let us assume that we have explored all other options to make this query to run faster and nothing worked besides the HINTS)
Our question is that is it possible to force the SQL (the one that does not use HINTS) to use the execution plan of the