SQL Performance (MOSC)

MOSC Banner

Plan changed following reboot

edited May 2, 2014 12:00PM in SQL Performance (MOSC) 1 commentAnswered

We have a query that runs nightly and joins four external tables and typical runs in less than 10 minutes.  The source data gets loaded every night and never changes significantly either quantitatively or qualitativly.  Last Saturday the system was rebooted and statistics were run on the entire db following reboot.  The query in question degraded significantly and upon investigation we noticed it was using a different explain which grabs the data using a sort-merge join instead of a hash join.  We reran stats on that schema and voila the plan changed back to a hash join which ran in

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