Balance Feed's: Performance Issue Encountered When Pay_Balance_Feeds Triggers for Update, Delete or Insert are Fired

(Doc ID 1388475.1)

Last updated on MARCH 01, 2017

Applies to:

Oracle Payroll - Version 11.5.10.2 and later
Information in this document applies to any platform.

This note provides a brief overview of


Symptoms

Problem Statement:

When the pay_balance_feeds triggers which are for update, delete or insert are fired a performance issue is encountered.
 
Then the following query in pay_balance_pkg.invalidate_run_balances is executed when these triggers are called and takes several hours.

SELECT '1'
  FROM DUAL
 WHERE EXISTS
      (SELECT /*+ ORDERED INDEX(RRV PAY_RUN_RESULT_VALUES_PK)
              INDEX(PRR PAY_RUN_RESULTS_PK) */ 1
         FROM PAY_RUN_RESULT_VALUES RRV,
              PAY_RUN_RESULTS PRR,
              PAY_ASSIGNMENT_ACTIONS ASSACT,
              PAY_PAYROLL_ACTIONS PACT
        WHERE RRV.INPUT_VALUE_ID = :B2
          AND PRR.RUN_RESULT_ID = RRV.RUN_RESULT_ID
          AND PRR.STATUS IN ('P', 'PA')
          AND NVL(RRV.RESULT_VALUE, '0') <> '0'
          AND ASSACT.ASSIGNMENT_ACTION_ID = PRR.ASSIGNMENT_ACTION_ID
          AND PACT.PAYROLL_ACTION_ID =  ASSACT.PAYROLL_ACTION_ID
          AND PACT.EFFECTIVE_DATE > :B1 )

Changes

Application of:

  • Patch:10015566 - HR_PF.K.DELTA.6
  • Patch:9301208 - R12.PAY.A.DELTA.8
  • R12.1.3.\

This issue occurs on the following version:

Release

File (including directory)

Version
11.5.10.2 + $PAY_TOP/patch/115/sql/pybaluex.pkb 115.140
12.0.6 + $PAY_TOP/patch/115/sql/pybaluex.pkb 120.28.12000000.14
12.1.3 + $PAY_TOP/patch/115/sql/pybaluex.pkb 120.38.12010000.7

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