SQL Performance (MOSC)

MOSC Banner

Same SQL query executing differently in two different enviornments

edited Jan 21, 2020 4:13PM in SQL Performance (MOSC) 3 commentsAnswered ✓

Hi All,

I am running below query to retrieve Item information by using "WITH" clause for faster execution of the query.

Below query ran well and generated output for 8 days with minimum execution time around 1 minute.

All of sudden it is running for more than 3 hours and giving Snap shot too old error.

Out Initial check on new changes and new data was not successful as there is no code fixes moved and the data got updated,

Can anybody kindly suggest how to identify if any specific newly introduced data causing this query to run very long?

The below query executed and gave results when we modified the query by replacing with clauses with INLINE views.  Appreciate if anybody can help to understand why WITH clause query taking time all of sudden and what is the difference that INLINE view query able to generate results.

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