In EBS Ofin r12 running with Oracle database 11g r1
Hello Everyone,
Good day...
This past few days we were battling one query that really affect the performance of our database, every time it run all users hang-up.
Below is the query I am referring to;
SELECT /*+ PARALLEL (AEL) leading(aeh) use_nl(ael) */ 1
FROM xla_ae_headers aeh ,xla_ae_lines ael
WHERE ael.ae_header_id = aeh.ae_header_id AND ael.application_id = aeh.application_id AND aeh.accounting_entry_status_code = 'F' AND (ael.control_balance_flag ='P' OR ael.analytical_balance_flag ='P' ) AND aeh.accounting_batch_id = :1 AND ael.application_id = :2 FOR UPDATE OF ael.ae_header_id,ael.ae_line_num, ael.control_balance_flag,ael.analytical_balance_flag NOWAIT