Database Tuning (MOSC)

MOSC Banner

Database Query taking 3 days to finish in oracle18c while runs faster in 12C.

edited Jan 8, 2019 4:47PM in Database Tuning (MOSC) 4 commentsAnswered

Customer Problem Description

---------------------------------------------------

 

Problem Summary

---------------------------------------------------

Database Query taking 3 days to finish in oracle18c while runs faster in 12C.

 

Problem Description

---------------------------------------------------

Please find below the query structure that takes longer time in Oracle 18C environment –

 

It’s a simple query that tries to SELECT data from two editionable views based on certain conditions provided as WHERE clause. 

 

When we tried debugging in SQLDeveloper we came to know that one of the views contains huge number of rows and a SELECT COUNT(*) FROM VIEW (SAMPLE) doesn’t return a result for a long time.

This view (SAMPLE) is formed by four independent queries joining multiple views and tables and then subsequent UNION of the four queries. 

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