RAXGLA: Sales Journal By Customer Program - Performance Issue

(Doc ID 2235704.1)

Last updated on FEBRUARY 21, 2017

Applies to:

Oracle Receivables - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

When users run Sales Journal By Customer report, this keeps running for extremely long period

Following SQL statement  is taking long to complete:

SELECT /*+ leading(c,trx,gl_dist) PUSH_PRED(gl_dist.ctlgd) NO_EXPAND */
gl_dist . code_combination_id code_combination_id , gl_dist . account_class
gl_acc_type , gl.SEGMENT1||' '||gl.SEGMENT2||' '||gl.SEGMENT3||'
'||gl.SEGMENT4||' '||gl.SEGMENT5||' '||gl.SEGMENT6||' '||gl.SEGMENT7 segment
, trx . trx_number trx_number , gl.SEGMENT1 balancing_seg_rev ,
arpt_sql_func_util . get_lookup_meaning ( 'TRANSACTION TYPE' , trx_typ . type
) trx_type , gl.SEGMENT4 account_seg_rev , substrb ( decode ( UPPER ( party
. party_type ) , 'ORGANIZATION' , org . organization_name , 'PERSON' , per .
person_name , party . party_name ) , 1 , 50 ) customer_name , c .
account_number customer_number , trx . trx_date , gl_dist . gl_date gl_date ,
sum ( nvl ( decode ( gl_dist . account_class , 'REC' , decode ( sign (
gl_dist . amount ) , 1 , 0 , - 1 * gl_dist . amount ) , decode ( sign (
gl_dist . amount ) , 1 , gl_dist . amount , 0 ) ) , 0 ) ) curr_credit_amount
, sum ( nvl ( decode ( gl_dist . account_class ,

 

Steps to Reproduce:

Responsibility: Receivables Manager
Navigation: Requests > Run

Run Sales Journal By Customer

Changes

 Code is modified to change the leading hint to use party as starting point
for the start of plan when party range is passed as parameter.This alters the plan of sql for better plan and improves performance.

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