SQL Performance (MOSC)

MOSC Banner

How to force sql_id to use certain plan hash value

edited Aug 31, 2020 4:52PM in SQL Performance (MOSC) 6 commentsAnswered ✓

I have some SQLs like on screenshot bellow witch runs with different plans. Some times SQL runs with good SQL Plan which executes 0.1 ms but some times it takes 1 hour.

How can i force SQL_id to use certain plan hash value. and why it occurs ?  This problem occurs each time after restart of oracle and continues 3-4 day.

My environment is : Oracle 12c RAC on OEL 6.7

Tagged:

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