Update query hanging
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,