Why is a particular query slower on one machine (or Instance) than another? (Doc ID 604256.1)

There could be many reasons why good running sql starts running slow.

  1. Underlying objects/views may have maodified and oracle cannot use previous plan.
  2. For every sql execution, if the sql is not parsed and plan is not availabale in memory. (The sql is parsed again and new execution plans are generated around 100s of them and if may chooses different plan (if plan is not in baseline or sql profile is not created for the sqlid)
  3. The other reason sql may run slow even it uses same plan, there may be load on that time for cpu or i/o and sql may slow.

Leave a comment