Database Query taking 3 days to finish in oracle18c while runs faster in 12C.
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.