SQL Performance (MOSC)

MOSC Banner

different performance with the same sql

edited Mar 21, 2014 2:48PM in SQL Performance (MOSC) 5 commentsAnswered ✓

I have one sql run in production database, it took 1 second, but in pre database, it ran for 5 hours. Pre is the same as production database. I am check sql plan for this sqlIf I ran explain plan for <sql statement>, then @$ORACLE_HOME/rdbms/admin/utlxpls.sql to get the plan which is the same as prod ------------------------------------------------------------------------------------------------------- | Id  | Operation                      | Name                | Rows  | Bytes | Cost (%CPU)| Time    | ------------------------------------------------------------------------------------------------------- |  0 | SELECT STATEMENT              |                      |    1 |    70 |    7  (0)| 00:00:01 | |  1 |  SORT AGGREGATE                |                      |    1 |    70 |            |          | |  2 |  NESTED LOOPS                |                      |    1 |    70 |    7  (0)| 00:00:01 | |  3 |    NESTED LOOPS                |                      |    1 |    36 |    3  (0)| 00:00:01 | |  4 |    TABLE ACCESS BY INDEX ROWID| PRW_VALID_TRANS      |    1 |    10 |   

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