R12 AP: Performance Problem With Create Accounting Which Run for 12 Hours Without Finishing

(Doc ID 944256.1)

Last updated on AUGUST 25, 2017

Applies to:

Oracle Payables - Version 12.1.1 and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

Performance problem with the Create Accounting program.
It run for 12 hours and it had to be terminated.

 

This SQL statement that is taking most of the time is the following :

SELECT (:B4 / :B3 * ( :B2 - :B1 ) + NVL ( (SELECT SUM(AMOUNT)
FROM AP_INVOICE_DISTRIBUTIONS_ALL AID WHERE AID.INVOICE_ID=:B7
AND AID.AWT_INVOICE_PAYMENT_ID=:B6 AND AID.AWT_RELATED_ID=:B5 ) , 0 ) +
NVL ( (SELECT SUM(AMOUNT) / :B3 * (:B2 - :B1 )
FROM AP_INVOICE_DISTRIBUTIONS_ALL AID WHERE INVOICE_ID=AID.INVOICE_ID
AND AWT_INVOICE_PAYMENT_ID IS NULL AND AWT_RELATED_ID=:B5 ) , 0 ) ) FROM SYS.DUAL

Changes

 Upgraded from 11.5.10 to 12.1.1.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms