SQL Performance (MOSC)

MOSC Banner

Update query hanging

edited Oct 8, 2016 5:00AM in SQL Performance (MOSC) 4 commentsAnswered

Hi,

Oracle version - Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

Platform - Linux x86 64-bit

RAC - NO

I have an update query as below which is hanging for 5 million records.It is going for

UPDATE DTL_INVOICE_LINES set

          viol_prev_invoiced =

              CASE

                  WHEN viol_sr_unmatched = 1 -- need data from enrichment or this rule will always fail

                  THEN null

                  WHEN id in

                    (select id from dtl_invoice_lines curr_inv

                     inner join (select cs_ref_id, resource_id

                     from dtl_invoice_lines

                     where inv_dtl_id = 43741

                     -- looking for hit on non-rejected prior invoices for the same country,

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