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.
- 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.
- 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
- the SQLID is the same for both SQLs but the PHV (Plan Hash Value) are different due to execution plan.
SQLID good / bad = 5r1ckpuj9p2sui
Tagged:
0