How to force sql_id to use certain plan hash value
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