Database Administration (MOSC)

MOSC Banner

Data load SQL runs nightly with same sql-id but execution plan changes

Oracle 4 nodes RAC database - 19.24 version

We run a data load every night at 1 a.m. Please see the partial sql below.

  1. When it runs good, It usually completes in 30 minutes and it performs a full table scan and runs 12 parallel processes because of parallel hint.
  2. When it hangs and not complete in 7+ hours, it was using a unique index and running in single process(no parallelism) and saw db file sequential read waits
  3. the SQLID is the same for both SQLs but the PHV (Plan Hash Value) are different due to execution plan.

SQLID good / bad = 5r1ckpuj9p2sui

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