SQL Performance (MOSC)

MOSC Banner

Oracle 11.2 auto optimizer stats collection

edited Dec 19, 2013 5:05AM in SQL Performance (MOSC) 6 commentsAnswered
After upgrading from oracle 10 to oracle 11.2, we noticed performance drop on a select statement. An oracle process was using 100% of the CPU time. It was tracked to the following statement.
SELECT C1, C2, C3, C4 from table1 WHERE C3 = 'READY' AND C4 = 1;

Please note: C3 has only 20 different values and C4 has only 4.

Execution of explain when the performace is bad:
SQL> explain plan for SELECT C1, C2, C3, C4 from table1 WHERE C3 = 'READY' AND C4 = 1;
SQL>  select plan_table_output from table(dbms_xplan.display('plan_table',null,'TYPICAL'));
Plan hash value: 310948982
| Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |

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