SQL Performance (MOSC)

MOSC Banner

Forcing a SQL statement to use execution plan (from different SQL)

edited Mar 25, 2016 5:05AM in SQL Performance (MOSC) 11 commentsAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center