How I Create SQL Baseline to fix query with an Execution Plan I am sharing on creating SQL baseline and force query to use better execution plan (plan hash value). I was doing today so thought to share this scenario where the query which was running fine till yesterday now suddenly running long in my EBS instance. So very important I check the plan for a particular sqlid. Note my DB version in 11.2.0.4 Query to check the multiple hash plans for sql id. select SQL_ID , PLAN_HASH_VALUE , sum(EXECUTIONS_DELTA) EXECUTIONS , sum(ROWS_PROCESSED_DELTA) CROWS , trunc(sum(CPU_TIME_DELTA)/1000000/60) CPU_MINS , trunc(sum(ELAPSED_TIME_DELTA)/1000000/60) ELA_MINS from DBA_HIST_SQLSTAT where SQL_ID in ( '6hxw283cyw0ub') --repalce sqlid with your sqlid group by SQL_ID , PLAN_HASH_VALUE order by SQL_ID, CPU_MINS I find out the best execution plan (Plan_hash_value) and force the query to use that plan. Below are the steps I did to ...