Sunteți pe pagina 1din 97

TKPROF: Release 9.2.0.6.

0 - Production on Wed Sep 10 09:49:14 2008


Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Trace file: oaprep_ora_29825_APPS.trc
Sort options: default
********************************************************************************
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
********************************************************************************
alter session set events='10046 trace name context forever, level 8'

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
Misses in library cache during execute: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
begin FND_TRACE.START_TRACE; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.04 0 3 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.04 0 3 0 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 0.00 0.00
********************************************************************************
SELECT PROFILE_OPTION_ID, APPLICATION_ID, SITE_ENABLED_FLAG ,
APP_ENABLED_FLAG , RESP_ENABLED_FLAG , USER_ENABLED_FLAG, ORG_ENABLED_FLAG ,
SERVER_ENABLED_FLAG, SERVERRESP_ENABLED_FLAG, HIERARCHY_TYPE,
USER_CHANGEABLE_FLAG
FROM
FND_PROFILE_OPTIONS WHERE PROFILE_OPTION_NAME = UPPER(:B1 ) AND
START_DATE_ACTIVE <= SYSDATE AND NVL(END_DATE_ACTIVE, SYSDATE) >= SYSDATE

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 41 0.00 0.00 0 0 0 0
Fetch 41 0.00 0.00 0 116 0 34
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 83 0.00 0.00 0 116 0 34
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_PROFILE_OPTIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_PROFILE_OPTIONS_U2' (UNIQUE)
********************************************************************************
declare dummy boolean;begin fnd_profile.get_specific(:name, :userid, :respid,
:applid, :val, dummy, :org_id,:server_id);end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 0 0.00 0.00 0 0 0 0
Execute 18 0.00 0.00 0 93 0 18
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 18 0.00 0.00 0 93 0 18
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 14 0.00 0.00
SQL*Net message from client 14 0.00 0.00
********************************************************************************
SELECT PROFILE_OPTION_VALUE
FROM
FND_PROFILE_OPTION_VALUES WHERE PROFILE_OPTION_ID = :B4 AND APPLICATION_ID =
:B3 AND LEVEL_ID = :B2 AND LEVEL_VALUE = :B1 AND PROFILE_OPTION_VALUE IS
NOT NULL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 70 0.00 0.00 0 0 0 0
Fetch 70 0.00 0.00 0 156 0 16
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 141 0.00 0.00 0 156 0 16
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_PROFILE_OPTION_VALUES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PROFILE_OPTION_VALUES_U1' (UNIQUE)
********************************************************************************
SELECT PROFILE_OPTION_VALUE
FROM
FND_PROFILE_OPTION_VALUES WHERE PROFILE_OPTION_ID = :B4 AND APPLICATION_ID =
:B3 AND LEVEL_ID = 10003 AND LEVEL_VALUE = :B2 AND
LEVEL_VALUE_APPLICATION_ID = :B1 AND PROFILE_OPTION_VALUE IS NOT NULL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 28 0.00 0.00 0 0 0 0
Fetch 28 0.00 0.00 0 61 0 5
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 57 0.00 0.00 0 61 0 5
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_PROFILE_OPTION_VALUES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PROFILE_OPTION_VALUES_U1' (UNIQUE)
********************************************************************************
SELECT /*+ USE_NL (A B I) */ DISTINCT A.APPLICATION_ID, A.APPLICATION_NAME,
B.APPLICATION_SHORT_NAME, B.BASEPATH, I.PRODUCT_VERSION
FROM
FND_APPLICATION_TL A, FND_APPLICATION B, FND_PRODUCT_INSTALLATIONS I WHERE
A.APPLICATION_ID = I.APPLICATION_ID (+) AND A.APPLICATION_ID =
B.APPLICATION_ID AND A.LANGUAGE = USERENV ('LANG')

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 490 0 254
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 490 0 254
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
254 SORT UNIQUE
254 NESTED LOOPS OUTER
254 NESTED LOOPS
254 TABLE ACCESS FULL FND_APPLICATION_TL
254 TABLE ACCESS BY INDEX ROWID FND_APPLICATION
254 INDEX UNIQUE SCAN FND_APPLICATION_U1 (object id 33992)
212 TABLE ACCESS BY INDEX ROWID FND_PRODUCT_INSTALLATIONS
212 INDEX RANGE SCAN FND_PRODUCT_INSTALLATIONS_PK (object id 22583)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
254 SORT (UNIQUE)
254 NESTED LOOPS (OUTER)
254 NESTED LOOPS
254 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'FND_APPLICATION_TL'
254 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_APPLICATION'
254 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_APPLICATION_U1' (UNIQUE)
212 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_PRODUCT_INSTALLATIONS'
212 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INSTALLATIONS_PK' (UNIQUE)

Elapsed times include waiting on following events:


Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net more data to client 7 0.00 0.00
SQL*Net message from client 2 0.00 0.00
********************************************************************************
begin fnd_global.bless_next_init('FND_PERMIT_0000');
fnd_global.initialize(:session_id, :user_id, :resp_id, :resp_appl_id,
:security_group_id, :site_id, :login_id, :conc_login_id, :prog_appl_id,
:conc_program_id, :conc_request_id, :conc_priority_request, :form_id,
:form_application_id, :conc_process_id, :conc_queue_id, :queue_appl_id,
:server_id); fnd_profile.put('ORG_ID', :org_id);
fnd_profile.put('MFG_ORGANIZATION_ID', :mfg_org_id);
fnd_profile.put('MFG_CHART_OF_ACCOUNTS_ID', :coa);
fnd_profile.put('APPS_MAINTENANCE_MODE', :amm); end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.05 0.12 1 355 21 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.06 0.12 1 355 21 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 0.00 0.00
********************************************************************************
SELECT U.USER_NAME, NVL(U.EMPLOYEE_ID, -1), NVL(U.CUSTOMER_ID, -1),
NVL(U.SUPPLIER_ID, -1), NVL(U.PERSON_PARTY_ID, -1)
FROM
FND_USER U WHERE U.USER_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF 'FND_USER'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_USER_U1' (UNIQUE)

********************************************************************************
SELECT A.APPLICATION_SHORT_NAME
FROM
FND_APPLICATION A WHERE A.APPLICATION_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_APPLICATION'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_APPLICATION_U1'
(UNIQUE)
********************************************************************************
SELECT USERENV('SESSIONID')
FROM
SYS.DUAL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT NAME, VERSION
FROM
FND_CACHE_VERSIONS

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 1 0 7
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 1 0 7
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 INDEX GOAL: ANALYZED (FULL SCAN) OF 'FND_CACHE_VERSIONS_PK1'
(UNIQUE)
********************************************************************************
select text
from
view$ where rowid=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 21 0.00 0.00 0 0 0 0
Execute 21 0.00 0.00 0 0 0 0
Fetch 21 0.00 0.00 2 42 0 21
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 63 0.00 0.00 2 42 0 21
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY USER ROWID VIEW$

Elapsed times include waiting on following events:


Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.00 0.00
********************************************************************************
select o.owner#,o.name,o.namespace,o.remoteowner,o.linkname,o.subname,
o.dataobj#,o.flags
from
obj$ o where o.obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 6 0.00 0.00 0 0 0 0
Execute 84 0.00 0.00 0 0 0 0
Fetch 84 0.00 0.00 0 252 0 84
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 174 0.00 0.01 0 252 0 84
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 3)
********************************************************************************
SELECT R.RESPONSIBILITY_NAME
FROM
FND_RESPONSIBILITY_VL R WHERE R.RESPONSIBILITY_ID = :B2 AND R.APPLICATION_ID
= :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 2 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 10 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 5 0.00 0.00 0 12 0 2
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_RESPONSIBILITY_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_RESPONSIBILITY_TL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_RESPONSIBILITY_TL_U1' (UNIQUE)
********************************************************************************
SELECT NODE_NAME
FROM
FND_NODES WHERE NODE_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_NODES'
********************************************************************************
select NAME
from
HR_OPERATING_UNITS where ORGANIZATION_ID = :zorg_id

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 2 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 6 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 8 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID HR_ORGANIZATION_INFORMATION
3 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS
1 TABLE ACCESS BY INDEX ROWID HR_ALL_ORGANIZATION_UNITS_TL
1 INDEX UNIQUE SCAN HR_ALL_ORGANIZATION_UNTS_TL_PK (object id 44020)
1 INDEX UNIQUE SCAN HR_ORGANIZATION_UNITS_PK (object id 43657)
1 INDEX RANGE SCAN HR_ORGANIZATION_INFORMATIO_FK2 (object id 330960)
1 INDEX RANGE SCAN HR_ORGANIZATION_INFORMATIO_FK2 (object id 330960)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ORGANIZATION_INFORMATION'
3 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ALL_ORGANIZATION_UNITS_TL'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ALL_ORGANIZATION_UNTS_TL_PK' (UNIQUE)
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ORGANIZATION_UNITS_PK' (UNIQUE)
1 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK2' (NON-UNIQUE)
1 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK2' (NON-UNIQUE)
********************************************************************************
select condition
from
cdef$ where rowid=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 17 0.00 0.00 0 0 0 0
Execute 17 0.00 0.00 0 0 0 0
Fetch 17 0.00 0.00 0 34 0 17
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 51 0.00 0.00 0 34 0 17
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY USER ROWID CDEF$
********************************************************************************
SELECT NVL(MULTI_ORG_FLAG, 'N'), NVL(MULTI_CURRENCY_FLAG, 'N')
FROM
FND_PRODUCT_GROUPS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_PRODUCT_GROUPS'
********************************************************************************
SELECT DISTINCT PRODUCT_DEPENDENCY, LEVEL
FROM
FND_PRODUCT_INIT_DEPENDENCY P1 WHERE LEVEL = (SELECT MAX(LEVEL) FROM
FND_PRODUCT_INIT_DEPENDENCY P2 WHERE P2.PRODUCT_DEPENDENCY =
P1.PRODUCT_DEPENDENCY CONNECT BY PRIOR P2.PRODUCT_DEPENDENCY =
P2.APPLICATION_SHORT_NAME START WITH P2.APPLICATION_SHORT_NAME = UPPER(:B1 )
) CONNECT BY PRIOR PRODUCT_DEPENDENCY = APPLICATION_SHORT_NAME START WITH
APPLICATION_SHORT_NAME = UPPER(:B1 ) ORDER BY LEVEL DESC

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 6 0.00 0.00 0 44 0 5
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 8 0.00 0.00 0 44 0 5
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (UNIQUE)
0 FILTER
0 CONNECT BY (WITH FILTERING)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_PRODUCT_INIT_DEPENDENCY'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INIT_DEPENDENCY_U1' (UNIQUE)
0 NESTED LOOPS
0 BUFFER (SORT)
0 CONNECT BY PUMP
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INIT_DEPENDENCY_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'FND_PRODUCT_INIT_DEPENDENCY'
0 SORT (AGGREGATE)
0 FILTER
0 CONNECT BY (WITH FILTERING)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_PRODUCT_INIT_DEPENDENCY'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INIT_DEPENDENCY_U1' (UNIQUE)
0 NESTED LOOPS
0 BUFFER (SORT)
0 CONNECT BY PUMP
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INIT_DEPENDENCY_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'FND_PRODUCT_INIT_DEPENDENCY'
********************************************************************************
SELECT INIT_FUNCTION_NAME
FROM
FND_PRODUCT_INITIALIZATION WHERE APPLICATION_SHORT_NAME = :B1 AND EXISTS
(SELECT 1 FROM FND_PRODUCT_INIT_CONDITION C WHERE C.APPLICATION_SHORT_NAME =
:B1 AND C.RE_INIT_CONDITION IN (:B6 , :B5 , :B4 , :B3 , :B2 ))

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 6 0.00 0.00 0 20 0 0
Fetch 6 0.00 0.00 0 4 0 4
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 13 0.00 0.00 0 24 0 4
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 FILTER
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INITIALIZATION_U1' (UNIQUE)
0 INLIST ITERATOR
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_PRODUCT_INIT_CONDITION_U1' (UNIQUE)
********************************************************************************
begin MO_GLOBAL.INIT; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 20 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 20 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
SELECT NVL(MULTI_ORG_FLAG, 'N')
FROM
FND_PRODUCT_GROUPS

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_PRODUCT_GROUPS'
********************************************************************************
DELETE FROM MO_GLOB_ORG_ACCESS_TMP

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 DELETE STATEMENT GOAL: CHOOSE
0 DELETE OF 'MO_GLOB_ORG_ACCESS_TMP'
0 TABLE ACCESS (FULL) OF 'MO_GLOB_ORG_ACCESS_TMP'
********************************************************************************
SELECT NVL(MOI.STATUS,'N')
FROM
FND_MO_PRODUCT_INIT MOI, FND_APPLICATION APP WHERE APP.APPLICATION_ID = :B1
AND APP.APPLICATION_SHORT_NAME = MOI.APPLICATION_SHORT_NAME

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 4 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_APPLICATION'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_APPLICATION_U1'
(UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_MO_PRODUCT_INIT'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_MO_PRODUCT_INIT_U1' (UNIQUE)
********************************************************************************
SELECT O.ORGANIZATION_ID ORGANIZATION_ID , OTL.NAME NAME ,
O3.ORG_INFORMATION2 LEGAL_ENTITY_ID , LE.NAME LEGAL_ENTITY_NAME
FROM
HR_ALL_ORGANIZATION_UNITS O, HR_ALL_ORGANIZATION_UNITS_TL OTL,
HR_ORGANIZATION_INFORMATION O2, HR_ORGANIZATION_INFORMATION O3,
HR_ALL_ORGANIZATION_UNITS_TL LE WHERE LE.ORGANIZATION_ID =
DECODE(LTRIM(O3.ORG_INFORMATION2,'0123456789'), NULL,
TO_NUMBER(O3.ORG_INFORMATION2), NULL) AND LE.LANGUAGE = USERENV('LANG') AND
O.ORGANIZATION_ID = O2.ORGANIZATION_ID AND O.ORGANIZATION_ID =
O3.ORGANIZATION_ID AND O2.ORG_INFORMATION_CONTEXT = 'CLASS' AND
O3.ORG_INFORMATION_CONTEXT = 'Operating Unit Information' AND
O2.ORG_INFORMATION1 ='OPERATING_UNIT' AND O2.ORG_INFORMATION2 = 'Y' AND
O.ORGANIZATION_ID = OTL.ORGANIZATION_ID AND OTL.LANGUAGE = USERENV('LANG')
AND O.ORGANIZATION_ID = TO_NUMBER(:B1 )

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 9 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 9 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ALL_ORGANIZATION_UNITS_TL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ALL_ORGANIZATION_UNTS_TL_PK' (UNIQUE)
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ORGANIZATION_UNITS_PK' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ORGANIZATION_INFORMATION'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK2' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ORGANIZATION_INFORMATION'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK2' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ALL_ORGANIZATION_UNITS_TL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ALL_ORGANIZATION_UNTS_TL_PK' (UNIQUE)
********************************************************************************
INSERT INTO MO_GLOB_ORG_ACCESS_TMP (ORGANIZATION_ID , ORGANIZATION_NAME ,
LEGAL_ENTITY_ID , LEGAL_ENTITY_NAME)
VALUES
(:B1 , :B2 , :B3 , :B4 )

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 1 20 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 1 20 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 INSERT STATEMENT GOAL: CHOOSE
********************************************************************************
COMMIT

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 3 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 2 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 0 2 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
********************************************************************************
begin HR_SIGNON.INITIALIZE_HR_SECURITY; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 25 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.01 0 25 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
SELECT *
FROM
PER_SECURITY_PROFILES WHERE SECURITY_PROFILE_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.02 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'PER_SECURITY_PROFILES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'PER_SECURITY_PROFILES_PK' (UNIQUE)
********************************************************************************
SELECT MESSAGE_TEXT, MESSAGE_NUMBER, TYPE, FND_LOG_SEVERITY, CATEGORY,
SEVERITY
FROM
FND_NEW_MESSAGES M, FND_APPLICATION A WHERE :B3 = M.MESSAGE_NAME AND :B2 =
M.LANGUAGE_CODE AND :B1 = A.APPLICATION_SHORT_NAME AND M.APPLICATION_ID =
A.APPLICATION_ID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 6 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 6 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_APPLICATION'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_APPLICATION_U3'
(UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_NEW_MESSAGES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_NEW_MESSAGES_PK' (UNIQUE)
********************************************************************************
SELECT LEGISLATION_CODE
FROM
PER_BUSINESS_GROUPS_PERF WHERE BUSINESS_GROUP_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 5 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 5 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ORGANIZATION_INFORMATION'
0 NESTED LOOPS
0 NESTED LOOPS
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ORGANIZATION_UNITS_PK' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ORGANIZATION_INFORMATION'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK2' (NON-UNIQUE)
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK2' (NON-UNIQUE)
********************************************************************************
begin IGI_SLS_CONTEXT_PKG.SET_SLS_CONTEXT; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 11 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 11 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
begin JG_CONTEXT.INITIALIZE; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 28 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 28 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
SELECT sys_context(:b2,:b1)
from
sys.dual

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 0 12 0 4
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 9 0.00 0.00 0 12 0 4
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
begin Fnd_Concurrent.Init_Request; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.03 0.05 0 68 3 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.03 0.05 0 68 3 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
********************************************************************************
SELECT P.PID, P.SPID, AUDSID, PROCESS, SUBSTR(USERENV('LANGUAGE'), INSTR(
USERENV('LANGUAGE'), '.') + 1)
FROM
V$SESSION S, V$PROCESS P WHERE P.ADDR = S.PADDR AND S.AUDSID =
USERENV('SESSIONID')

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.01 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.01 0 0 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-01039: insufficient privileges on underlying objects of the view
parse error offset: 193
********************************************************************************
UPDATE FND_CONCURRENT_REQUESTS SET ORACLE_SESSION_ID = :B4 ,
ORACLE_PROCESS_ID = :B3 , OS_PROCESS_ID = :B2 , NLS_CODESET = :B1
WHERE
REQUEST_ID = FND_GLOBAL.CONC_REQUEST_ID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 3 2 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 3 2 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 UPDATE STATEMENT GOAL: CHOOSE
0 UPDATE OF 'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
********************************************************************************
SELECT P.OPTIMIZER_MODE, P.CONCURRENT_PROGRAM_NAME, UPPER(P.ENABLE_TRACE),
UPPER(R.ENABLE_TRACE), DECODE(UPPER(P.ENABLE_TIME_STATISTICS),'Y','TRUE',
NULL), EXECUTION_METHOD_CODE
FROM
FND_CONCURRENT_PROGRAMS P, FND_CONCURRENT_REQUESTS R WHERE
P.CONCURRENT_PROGRAM_ID = R.CONCURRENT_PROGRAM_ID AND P.APPLICATION_ID =
R.PROGRAM_APPLICATION_ID AND R.REQUEST_ID = FND_GLOBAL.CONC_REQUEST_ID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 7 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 7 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
********************************************************************************
SELECT PLSQL_LOG, PLSQL_OUT, PLSQL_DIR
FROM
FND_CONCURRENT_PROCESSES P, FND_CONCURRENT_REQUESTS R WHERE
P.CONCURRENT_PROCESS_ID = R.CONTROLLING_MANAGER AND R.REQUEST_ID =
FND_GLOBAL.CONC_REQUEST_ID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 8 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 8 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROCESSES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROCESSES_U1' (UNIQUE)
********************************************************************************
ALTER SESSION SET SQL_TRACE = TRUE

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
SELECT SUBSTR(REPLACE(USER_CONCURRENT_PROGRAM_NAME,'''',' '),1,240),
SUBSTR(CONCURRENT_PROGRAM_NAME,1,30)
FROM
FND_CONCURRENT_PROGRAMS_VL WHERE CONCURRENT_PROGRAM_ID = :B1 AND
APPLICATION_ID = FND_GLOBAL.PROG_APPL_ID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 6 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 6 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS_TL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_TL_U1' (UNIQUE)
********************************************************************************
SELECT TO_CHAR(SYSDATE,'DD-MON-YY:HH24:MI:SS')
FROM
SYS.DUAL
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT 'TRACE_USER_DETAILS: TIMESTAMP=10-SEP-08:09:47:49: USER_NAME=
RICARDO.DELGADO: CONC_REQUEST_ID=714660: OLTP_OPT_MODE= : CONC_OPT_MODE= :
CONC_PROG_EXE=ARXAGSW: CONC_PROG_NAME=Aging - 7 Buckets Report:
RESPONSIBILITY=US_Receivables Manager: APPL_NAME=AR'
FROM
DUAL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 TABLE ACCESS FULL DUAL

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT Q.RESOURCE_CONSUMER_GROUP
FROM
FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROCESSES P, FND_CONCURRENT_QUEUES
Q WHERE R.REQUEST_ID = FND_GLOBAL.CONC_REQUEST_ID AND R.CONTROLLING_MANAGER
= P.CONCURRENT_PROCESS_ID AND Q.CONCURRENT_QUEUE_ID= P.CONCURRENT_QUEUE_ID
AND Q.APPLICATION_ID = P.QUEUE_APPLICATION_ID
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 12 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 12 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROCESSES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROCESSES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_QUEUES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_QUEUES_U1' (UNIQUE)
********************************************************************************
SELECT P.RESOURCE_CONSUMER_GROUP
FROM
FND_CONCURRENT_PROGRAMS P, FND_CONCURRENT_REQUESTS R WHERE R.REQUEST_ID =
FND_GLOBAL.CONC_REQUEST_ID AND R.PROGRAM_APPLICATION_ID = P.APPLICATION_ID
AND R.CONCURRENT_PROGRAM_ID = P.CONCURRENT_PROGRAM_ID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 7 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 7 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
********************************************************************************
SELECT DECODE(:B1 , 'P', 'REPORTS', 'I', 'PLSQL_CP', 'J', 'JAVA_STORED_CP',
'K', 'JAVA_CP', 'Q', 'SQLPLUS_CP', 'E', 'PERL_CP', 'S', 'SUBROUTINE_CP',
'A', 'HOST_CP', 'H', 'HOST_CP', 'L', 'LOADER_CP', 'NOT_SUPPORTED')
FROM
DUAL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT ENABLE_ROUTINE, DISABLE_ROUTINE, DRO.DEBUG_OPTION_NAME,
DRO.DEBUG_OPTION_VALUE, DR.DEBUG_RULE_ID, REPEATION_COUNTER, START_TIME,
END_TIME, USER_ID, RESPONSIBILITY_ID, RESP_APPL_ID, COMPONENT_TYPE,
COMPONENT_NAME, COMPONENT_ID, COMPONENT_APPL_ID, TRACE_FILE_ROUTINE,
TRACE_FILE_NODE, COMMENTS, NVL(REQUEST_ID,0) REQID
FROM
FND_DEBUG_OPTIONS DO, FND_DEBUG_RULES DR, FND_DEBUG_OPTION_VALUES DOV,
FND_DEBUG_RULE_OPTIONS DRO WHERE ( DR.USER_ID = :B8 OR
(DR.RESPONSIBILITY_ID = :B7 AND DR.RESP_APPL_ID = :B6 ) OR (DR.USER_ID IS
NULL AND DR.RESPONSIBILITY_ID IS NULL) ) AND (( SYSDATE >= DR.START_TIME
AND SYSDATE <= DR.END_TIME) OR DR.REPEATION_COUNTER > 0 ) AND (
DR.COMPONENT_NAME = :B5 OR (DR.COMPONENT_ID = :B4 AND DR.COMPONENT_APPL_ID =
:B3 ) ) AND DR.COMPONENT_TYPE = :B2 AND DRO.DEBUG_OPTION_NAME =
DOV.DEBUG_OPTION_NAME AND DRO.DEBUG_OPTION_VALUE = DOV.DEBUG_OPTION_VALUE
AND DRO.DEBUG_OPTION_NAME = DO.DEBUG_OPTION_NAME AND DO.TYPE = 'D' AND
DO.ENABLED_FLAG = 'Y' AND ((DR.REQUEST_ID IS NOT NULL AND :B1 =
DR.REQUEST_ID) OR (DR.REQUEST_ID IS NULL) ) AND DR.DEBUG_RULE_ID =
DRO.DEBUG_RULE_ID AND DR.DEBUG_RULE_ID=(SELECT MIN(DEBUG_RULE_ID) FROM
FND_DEBUG_RULES IDR WHERE (IDR.USER_ID = :B8 OR (IDR.RESPONSIBILITY_ID =
:B7 AND IDR.RESP_APPL_ID = :B6 ) OR (IDR.USER_ID IS NULL AND
IDR.RESPONSIBILITY_ID IS NULL) ) AND (( SYSDATE >= IDR.START_TIME AND
SYSDATE <= IDR.END_TIME) OR IDR.REPEATION_COUNTER > 0 ) AND (
IDR.COMPONENT_NAME = :B5 OR (IDR.COMPONENT_ID = :B4 AND
IDR.COMPONENT_APPL_ID = :B3 ) ) AND IDR.COMPONENT_TYPE = :B2 AND
((IDR.REQUEST_ID IS NOT NULL AND :B1 = IDR.REQUEST_ID) OR (IDR.REQUEST_ID
IS NULL) ) ) ORDER BY REQID DESC, DR.CREATION_DATE, DR.DEBUG_RULE_ID
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 1 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.01 0 1 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (ORDER BY)
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_DEBUG_RULES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_DEBUG_RULES_N1' (NON-UNIQUE)
0 SORT (AGGREGATE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_DEBUG_RULES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_DEBUG_RULES_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_DEBUG_RULE_OPTIONS'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_DEBUG_RULE_OPTIONS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_DEBUG_OPTIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_DEBUG_OPTIONS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_DEBUG_OPTION_VALUES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_DEBUG_OPTION_VALUES_U1' (UNIQUE)
********************************************************************************
DELETE FROM FND_DEBUG_RULE_OPTIONS
WHERE
DEBUG_RULE_ID IN (SELECT DEBUG_RULE_ID FROM FND_DEBUG_RULES WHERE
(START_TIME IS NOT NULL AND END_TIME < SYSDATE) OR (REPEATION_COUNTER = 0) )

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 1 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 1 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 DELETE STATEMENT GOAL: CHOOSE
0 DELETE OF 'FND_DEBUG_RULE_OPTIONS'
0 HASH JOIN (SEMI)
0 INDEX GOAL: ANALYZED (FULL SCAN) OF
'FND_DEBUG_RULE_OPTIONS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_DEBUG_RULES'
********************************************************************************
DELETE FROM FND_DEBUG_RULES
WHERE
(START_TIME IS NOT NULL AND END_TIME < SYSDATE) OR (REPEATION_COUNTER = 0)

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 3 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 3 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 DELETE STATEMENT GOAL: CHOOSE
0 DELETE OF 'FND_DEBUG_RULES'
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_DEBUG_RULES'
********************************************************************************
begin FND_CONCURRENT.SET_PREFERRED_RBS; end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 0 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
********************************************************************************
SELECT P.ROLLBACK_SEGMENT
FROM
FND_CONCURRENT_PROGRAMS P, FND_CONCURRENT_REQUESTS R WHERE R.REQUEST_ID =
FND_GLOBAL.CONC_REQUEST_ID AND R.CONCURRENT_PROGRAM_ID =
P.CONCURRENT_PROGRAM_ID AND R.PROGRAM_APPLICATION_ID = P.APPLICATION_ID
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 7 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 7 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
********************************************************************************
SELECT MRC_SOB_TYPE_CODE
FROM
GL_SETS_OF_BOOKS WHERE SET_OF_BOOKS_ID = :b1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_SETS_OF_BOOKS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'GL_SETS_OF_BOOKS_U2'
(UNIQUE)
********************************************************************************
SELECT SET_OF_BOOKS_ID,NVL(BILLS_RECEIVABLE_ENABLED_FLAG,'N')
FROM
AR_SYSTEM_PARAMETERS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 15 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 15 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_SYSTEM_PARAMETERS_ALL'
********************************************************************************
select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#,length,piece
from
idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 1 12 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 8 0.00 0.00 1 12 0 2
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID IDL_SB4$
1 INDEX RANGE SCAN I_IDL_SB41 (object id 113)
********************************************************************************
select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#,length,piece
from
idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 5 0.00 0.01 4 20 0 5
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 9 0.00 0.01 4 20 0 5
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
2 TABLE ACCESS BY INDEX ROWID IDL_UB1$
2 INDEX RANGE SCAN I_IDL_UB11 (object id 110)
********************************************************************************
select /*+ index(idl_char$ i_idl_char1) +*/ piece#,length,piece
from
idl_char$ where obj#=:1 and part=:2 and version=:3 order by piece#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 6 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 6 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 TABLE ACCESS BY INDEX ROWID IDL_CHAR$
0 INDEX RANGE SCAN I_IDL_CHAR1 (object id 111)
********************************************************************************
select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#,length,piece
from
idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 6 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 6 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 TABLE ACCESS BY INDEX ROWID IDL_UB2$
0 INDEX RANGE SCAN I_IDL_UB21 (object id 112)
********************************************************************************
select obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$, spare1,
spare2
from
obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null
and linkname is null and subname is null

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 3 0.00 0.00 0 0 0 0
Execute 9 0.00 0.00 0 0 0 0
Fetch 9 0.00 0.00 0 36 0 9
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 21 0.00 0.00 0 36 0 9
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select audit$,options
from
procedure$ where obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID PROCEDURE$
1 INDEX UNIQUE SCAN I_PROCEDURE1 (object id 107)
********************************************************************************
select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_obj#,
d_owner#, nvl(property,0),subname
from
dependency$,obj$ where d_obj#=:1 and p_obj#=obj#(+) order by order#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 20 0.00 0.03 4 46 0 19
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 22 0.00 0.03 4 46 0 19
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
19 SORT ORDER BY
19 NESTED LOOPS OUTER
19 TABLE ACCESS BY INDEX ROWID DEPENDENCY$
19 INDEX RANGE SCAN I_DEPENDENCY1 (object id 116)
19 TABLE ACCESS BY INDEX ROWID OBJ$
19 INDEX UNIQUE SCAN I_OBJ1 (object id 33)
********************************************************************************
select order#,columns,types
from
access$ where d_obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 14 0.00 0.01 2 29 0 13
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 16 0.00 0.01 2 29 0 13
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
13 TABLE ACCESS BY INDEX ROWID ACCESS$
13 INDEX RANGE SCAN I_ACCESS1 (object id 118)
********************************************************************************
SELECT NVL(MULTI_ORG_FLAG, 'N')
FROM
FND_PRODUCT_GROUPS WHERE PRODUCT_GROUP_ID = 1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_PRODUCT_GROUPS'
********************************************************************************
SELECT COUNT(*)
FROM
HR_ORGANIZATION_INFORMATION WHERE ORG_INFORMATION_CONTEXT = 'Operating Unit
Information' AND DECODE( :B2 , '1000' , TO_NUMBER(ORG_INFORMATION3) ,
'2000' , TO_NUMBER(ORG_INFORMATION2)) = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (AGGREGATE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ORGANIZATION_INFORMATION'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HR_ORGANIZATION_INFORMATIO_FK1' (NON-UNIQUE)
********************************************************************************
SELECT NAME
FROM
HR_ALL_ORGANIZATION_UNITS WHERE ORGANIZATION_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HR_ALL_ORGANIZATION_UNITS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HR_ORGANIZATION_UNITS_PK' (UNIQUE)
********************************************************************************
SELECT MEANING
FROM
FND_LOOKUPS WHERE LOOKUP_TYPE = 'XLA_MO_REPORTING_LEVEL' AND LOOKUP_CODE =
:B1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 4 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_LOOKUP_VALUES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'FND_LOOKUP_VALUES_U1'
(UNIQUE)
********************************************************************************
SELECT sequence, compiled_definition
FROM
fnd_compiled_id_flexs WHERE application_id = :fcf_appl AND
id_flex_code = :codename AND compiler_version_num = :fcf_version ORDER
BY sequence

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_COMPILED_ID_FLEXS'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_COMPILED_ID_FLEXS_U1' (UNIQUE)
********************************************************************************
select LANGUAGE_CODE, DESCRIPTION, INSTALLED_FLAG
from
FND_LANGUAGES_VL where INSTALLED_FLAG in ('I', 'B') order by
LANGUAGE_CODE

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 7 0 3
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 7 0 3
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
3 NESTED LOOPS
3 TABLE ACCESS BY INDEX ROWID FND_LANGUAGES
39 INDEX FULL SCAN FND_LANGUAGES_U1 (object id 34318)
3 TABLE ACCESS BY INDEX ROWID FND_LANGUAGES_TL
3 INDEX UNIQUE SCAN FND_LANGUAGES_TL_U1 (object id 34392)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
3 NESTED LOOPS
3 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_LANGUAGES'
39 INDEX GOAL: ANALYZED (FULL SCAN) OF 'FND_LANGUAGES_U1'
(UNIQUE)
3 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_LANGUAGES_TL'
3 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_LANGUAGES_TL_U1' (UNIQUE)
********************************************************************************
BEGIN
fnd_flex_server.raise_kff_structure_compiled(
:p_application_id,
:p_id_flex_code,
:p_id_flex_num);
END;
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.01 0 13 7 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.01 0.01 0 13 7 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
********************************************************************************
SELECT APPLICATION_SHORT_NAME
FROM
FND_APPLICATION WHERE APPLICATION_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_APPLICATION'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_APPLICATION_U1'
(UNIQUE)
********************************************************************************
SELECT ID_FLEX_STRUCTURE_CODE
FROM
FND_ID_FLEX_STRUCTURES WHERE APPLICATION_ID = :B3 AND ID_FLEX_CODE = :B2 AND
ID_FLEX_NUM = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_ID_FLEX_STRUCTURES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_ID_FLEX_STRUCTURES_U1' (UNIQUE)
********************************************************************************
SELECT TEXT
FROM
WF_RESOURCES WHERE TYPE = :B2 AND NAME = :B1 AND LANGUAGE = 'US'

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 7 0.00 0.00 0 0 0 0
Fetch 7 0.00 0.00 0 21 0 7
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 15 0.00 0.00 0 21 0 7
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'WF_RESOURCES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'WF_RESOURCES_PK'
(UNIQUE)
********************************************************************************
SELECT NAME
FROM
WF_SYSTEMS WHERE GUID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 4 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6 0.00 0.00 0 4 0 2
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'WF_SYSTEMS'
********************************************************************************
SELECT GUID, NAME, TYPE, STATUS, GENERATE_FUNCTION, JAVA_GENERATE_FUNC,
LICENSED_FLAG
FROM
WF_EVENTS WHERE NAME = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF 'WF_EVENTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'WF_EVENTS_U2' (UNIQUE)

********************************************************************************
select metadata
from
kopm$ where name='DB_FDO'

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID KOPM$
1 INDEX UNIQUE SCAN I_KOPM1 (object id 287)
********************************************************************************
SAVEPOINT WF_DISPATCH_SAVEPOINT

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
SELECT SUBSCRIPTION_GUID, SYSTEM_GUID, SUBSCRIPTION_SOURCE_TYPE,
SUBSCRIPTION_SOURCE_AGENT_GUID, SUBSCRIPTION_PHASE, SUBSCRIPTION_RULE_DATA,
SUBSCRIPTION_OUT_AGENT_GUID, SUBSCRIPTION_TO_AGENT_GUID,
SUBSCRIPTION_PRIORITY, SUBSCRIPTION_RULE_FUNCTION, WF_PROCESS_TYPE,
WF_PROCESS_NAME, SUBSCRIPTION_PARAMETERS, '', '', '', '', '',
SUBSCRIPTION_ON_ERROR_TYPE, ''
FROM
WF_ACTIVE_SUBSCRIPTIONS_V WHERE EVENT_NAME IN(:B5 , :B4 ) AND
SUBSCRIPTION_SOURCE_TYPE = :B3 AND ((SUBSCRIPTION_SOURCE_AGENT_GUID IS NOT
NULL AND SUBSCRIPTION_SOURCE_AGENT_GUID = NVL(:B2 ,
SUBSCRIPTION_SOURCE_AGENT_GUID)) OR SUBSCRIPTION_SOURCE_AGENT_GUID IS NULL)
AND SYSTEM_GUID = :B1 ORDER BY 5
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 2 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 26 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 5 0.00 0.01 0 28 0 2
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (ORDER BY)
0 VIEW OF 'WF_ACTIVE_SUBSCRIPTIONS_V'
0 SORT (ORDER BY)
0 UNION-ALL
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'WF_EVENT_SUBSCRIPTIONS'
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'WF_EVENTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'WF_EVENTS_U1' (UNIQUE)
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'WF_EVENT_SUBSCRIPTIONS'
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'WF_EVENTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'WF_EVENTS_U1' (UNIQUE)
0 INDEX GOAL: ANALYZED (FULL SCAN) OF
'WF_EVENT_GROUPS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'WF_EVENTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'WF_EVENTS_U1' (UNIQUE)
********************************************************************************
begin :v1 := fnd_bes_proc.process_event(:v2, :v3); end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 78 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 78 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
********************************************************************************
SELECT OUT_AGENT_GUID,TO_AGENT_GUID,WF_PROCESS_TYPE,WF_PROCESS_NAME,PRIORITY ,
PARAMETERS
FROM
WF_EVENT_SUBSCRIPTIONS WHERE GUID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 2)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'WF_EVENT_SUBSCRIPTIONS'
********************************************************************************
SELECT WFA.QUEUE_NAME
FROM
WF_AGENTS WFA, WF_SYSTEMS WFS WHERE WFA.NAME = :B2 AND WFS.NAME = :B1 AND
WFS.GUID = WFA.SYSTEM_GUID

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 4 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'WF_SYSTEMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'WF_SYSTEMS_U2'
(UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF 'WF_AGENTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'WF_AGENTS_U2'
(UNIQUE)
********************************************************************************
SELECT SYS_CONTEXT('USERENV', 'CURRENT_SCHEMA')
FROM
SYS.DUAL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
insert into APPLSYS.WF_JAVA_DEFERRED (q_name, msgid, corrid, priority, state,
delay, expiration, time_manager_info, local_order_no, chain_no, enq_time,
step_no, enq_uid, enq_tid, retry_count, exception_qschema,
exception_queue, recipient_key, dequeue_msgid, user_data, sender_name,
sender_address, sender_protocol)
values
(:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, 0, :15,
:16, :17, :18, :19, :20, :21, :22)

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 73 0 0
Execute 1 0.00 0.00 0 1 10 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 74 10 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select count(*)
from
SYS.DUAL where (1=1)

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 32 (APPLSYS) (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 SORT AGGREGATE
1 TABLE ACCESS FULL DUAL

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 SORT (AGGREGATE)
1 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT sequence, compiled_definition
FROM
fnd_compiled_id_flex_structs WHERE application_id = :fcf_appl AND
id_flex_code = :codename AND id_flex_num = :fcf_num AND
compiler_version_num = :fcf_version AND language = :lang ORDER BY
sequence

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 4 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_COMPILED_ID_FLEX_STRUCTS'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_COMPILED_ID_FLEX_STRUCT_U1' (UNIQUE)
********************************************************************************
SELECT /* $Header: fdffvs.lc 115.56 2006/02/14 02:38:45 swmukher ship $ */
flex_value_set_name, validation_type, maximum_size,
numeric_mode_enabled_flag, alphanumeric_allowed_flag,
uppercase_only_flag, nvl(parent_flex_value_set_id, 0),
security_enabled_flag, flex_value_set_id, longlist_flag, format_type,
minimum_value, maximum_value, nvl(number_precision, -1)
FROM
fnd_flex_value_sets WHERE flex_value_set_id = :vsid

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 19 0.00 0.00 0 0 0 0
Execute 19 0.00 0.00 0 0 0 0
Fetch 19 0.00 0.00 0 57 0 19
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 57 0.00 0.00 0 57 0 19
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID FND_FLEX_VALUE_SETS
1 INDEX UNIQUE SCAN FND_FLEX_VALUE_SETS_U1 (object id 34752)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_FLEX_VALUE_SETS'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_FLEX_VALUE_SETS_U1' (UNIQUE)
********************************************************************************
SELECT /* $Header: fdffvs.lc 115.56 2006/02/14 02:38:45 swmukher ship $ */
flex_value_set_id, id_flex_application_id, id_flex_code,
segment_attribute_type, value_attribute_type
FROM
fnd_flex_validation_qualifiers WHERE flex_value_set_id = :vsid ORDER BY
flex_value_set_id, assignment_date, value_attribute_type

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 19 0.00 0.00 0 0 0 0
Execute 19 0.00 0.00 0 0 0 0
Fetch 19 0.00 0.00 0 19 0 19
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 57 0.00 0.00 0 19 0 19
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
0 INDEX RANGE SCAN FND_FLEX_VALIDATION_QUALS_N1 (object id 34767)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'FND_FLEX_VALIDATION_QUALS_N1' (NON-UNIQUE)
********************************************************************************
SELECT /* $Header: fdffvs.lc 115.56 2006/02/14 02:38:45 swmukher ship $ */
flex_value_set_id, application_table_name, id_column_name,
id_column_type, nvl(id_column_size,0), value_column_name,
value_column_type, value_column_size, meaning_column_name,
meaning_column_type, nvl(meaning_column_size, 0),
summary_column_name, hierarchy_level_column_name,
summary_allowed_flag, compiled_attribute_column_name,
enabled_column_name, start_date_column_name, end_date_column_name,
additional_quickpick_columns, additional_where_clause
FROM
fnd_flex_validation_tables WHERE flex_value_set_id = :vsid

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 19 0.00 0.00 0 0 0 0
Execute 19 0.00 0.00 0 0 0 0
Fetch 19 0.00 0.00 0 89 0 19
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 57 0.00 0.00 0 89 0 19
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID FND_FLEX_VALIDATION_TABLES
1 INDEX UNIQUE SCAN FND_FLEX_VALIDATION_TABLES_U1 (object id 34635)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_FLEX_VALIDATION_TABLES'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_FLEX_VALIDATION_TABLES_U1' (UNIQUE)
********************************************************************************
BEGIN FND_FLEX_VAL_UTIL.GET_SERVER_GLOBAL( :p_char_in,
:x_char_out, :x_error, :x_message); END;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 6 0.00 0.00 0 0 0 0
Execute 6 0.00 0.00 0 0 0 6
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 12 0.00 0.00 0 0 0 6
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
********************************************************************************
SELECT *
FROM
AR_SYSTEM_PARAMETERS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 15 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 15 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_SYSTEM_PARAMETERS_ALL'
********************************************************************************
SELECT CHART_OF_ACCOUNTS_ID
FROM
GL_SETS_OF_BOOKS SOB WHERE SOB.SET_OF_BOOKS_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_SETS_OF_BOOKS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'GL_SETS_OF_BOOKS_U2'
(UNIQUE)
********************************************************************************
SELECT LANGUAGE_CODE
FROM
FND_LANGUAGES WHERE INSTALLED_FLAG = 'B'

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.01 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.01 0 2 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_LANGUAGES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'FND_LANGUAGES_N1'
(NON-UNIQUE)
********************************************************************************
SELECT *
FROM
AR_SYSTEM_PARAMETERS

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 30 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 5 0.00 0.00 0 30 0 2
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_SYSTEM_PARAMETERS_ALL'
********************************************************************************
SELECT SOB.SET_OF_BOOKS_ID, SOB.CHART_OF_ACCOUNTS_ID, SOB.CURRENCY_CODE,
SOB.PERIOD_SET_NAME, C.PRECISION, C.MINIMUM_ACCOUNTABLE_UNIT
FROM
AR_SYSTEM_PARAMETERS SP, GL_SETS_OF_BOOKS SOB, FND_CURRENCIES C WHERE
SOB.SET_OF_BOOKS_ID = SP.SET_OF_BOOKS_ID AND SOB.CURRENCY_CODE =
C.CURRENCY_CODE

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 38 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 5 0.00 0.00 0 38 0 2
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_SYSTEM_PARAMETERS_ALL'
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_SETS_OF_BOOKS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_SETS_OF_BOOKS_U2' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CURRENCIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_CURRENCIES_U1'
(UNIQUE)
********************************************************************************
SELECT CM_TRX_TYPE_ID , BILLBACK_TRX_TYPE_ID
FROM
OZF_SYS_PARAMETERS

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 6 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 5 0.00 0.00 0 6 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'OZF_SYS_PARAMETERS_ALL'
********************************************************************************
SELECT CM_TRX_TYPE_ID , BILLBACK_TRX_TYPE_ID , CLAIM_TYPE_ID , REASON_CODE_ID
, DEFAULT_OWNER_ID
FROM
OZF_SYS_PARAMETERS

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 6 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 5 0.00 0.00 0 6 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'OZF_SYS_PARAMETERS_ALL'
********************************************************************************
SELECT CONCURRENT_PROGRAM_NAME
FROM
FND_CONCURRENT_PROGRAMS_VL WHERE CONCURRENT_PROGRAM_ID =
FND_GLOBAL.CONC_PROGRAM_ID AND APPLICATION_ID = 222

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 5 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 5 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_TL_U1' (UNIQUE)
********************************************************************************
SELECT MESSAGE_NUMBER, MESSAGE_TEXT
FROM
FND_NEW_MESSAGES WHERE APPLICATION_ID = :B2 AND LANGUAGE_CODE =
USERENV('LANG') AND MESSAGE_NAME = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 2453 0.05 0.04 0 0 0 0
Fetch 2453 0.04 0.07 3 9812 0 2453
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4907 0.10 0.12 3 9812 0 2453
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_NEW_MESSAGES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_NEW_MESSAGES_PK'
(UNIQUE)
********************************************************************************
SELECT MEANING
FROM
AR_LOOKUPS WHERE LOOKUP_TYPE = :B2 AND LOOKUP_CODE = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 6 0.00 0.00 0 0 0 0
Fetch 6 0.00 0.04 5 24 0 6
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 13 0.00 0.05 5 24 0 6
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_LOOKUP_VALUES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_LOOKUP_VALUES_U1'
(UNIQUE)
********************************************************************************
SELECT sob . name Company_Name , sob . chart_of_accounts_id coaid , sob .
currency_code Functional_Currency , cur . precision
Functional_Currency_Precision , decode ( : p_in_currency , NULL , 'Y' ,
NULL ) convert_flag , param . set_of_books_id in_set_of_books_id
FROM
gl_sets_of_books sob , AR_SYSTEM_PARAMETERS param , fnd_currencies cur
WHERE sob . set_of_books_id = param . set_of_books_id AND sob .
currency_code = cur . currency_code

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.01 0 2 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 19 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.01 0 21 0 1
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_SYSTEM_PARAMETERS_ALL'
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_SETS_OF_BOOKS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_SETS_OF_BOOKS_U2' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CURRENCIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_CURRENCIES_U1'
(UNIQUE)
********************************************************************************
select decode(:p_credit_option,'DETAIL','Y','N') include_credit_high,
decode(:p_credit_option,'SUMMARY','Y','N') in_on_account_low,
meaning credit_option_meaning
from ar_lookups
where lookup_type = 'OPEN_CREDITS'
and lookup_code = :p_credit_option
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 4 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 4 0 1
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_LOOKUP_VALUES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_LOOKUP_VALUES_U1'
(UNIQUE)
********************************************************************************
select decode(upper(RTRIM(RPAD(:in_on_account_low, 1))),
'Y', 'Y',
NULL) print_on_acco
unt_flag,
upper(RTRIM(RPAD(nvl(:p_in_sortoption,'*'), 1)))
sort_opt
ion,
upper(RTRIM(RPAD(:p_in_summary_option_low, 1)))
summary_
option,
decode(upper(RTRIM(RPAD(:p_in_format_option_low, 1))),
'D', 'D',
NULL) format_detaile
d,
decode(:p_in_invoice_type_high, :p_in_invoice_type_low,
:p_in_invoice_type_low,
:p_in_invoice_type_low || ' to ' || :p_in_invoice_type_high) in
voice_type_print,
decode(:p_in_customer_name_low, :p_in_customer_name_high,
:p_in_customer_name_low,
:p_in_customer_name_low || ' to ' || :p_in_customer_name_high) c
ustomer_name_print,
decode(:p_in_amt_due_low, :p_in_amt_due_high,
:p_in_amt_due_low,
:p_in_amt_due_low || ' to ' || :p_in_amt_due_high) balance_due_p
rint
from dual
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.02 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.02 0 3 0 1
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
select default$
from
col$ where rowid=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 9 0.00 0.00 0 0 0 0
Execute 9 0.00 0.00 0 0 0 0
Fetch 9 0.00 0.00 0 18 0 9
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 27 0.00 0.00 0 18 0 9
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY USER ROWID COL$
********************************************************************************
select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags, i.property,
i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey, i.lblkkey,
i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,
nvl(i.degree,1),nvl(i.instances,1),i.rowcnt,mod(i.pctthres$,256),
i.indmethod#,i.trunccnt,nvl(c.unicols,0),nvl(c.deferrable#+c.valid#,0),
nvl(i.spare1,i.intcols),i.spare4,spare2,spare6, decode(i.pctthres$,null,
null, mod(trunc(i.pctthres$/256),256))
from
ind$ i, (select enabled, min(cols) unicols, min(to_number(bitand(defer,1)))
deferrable#, min(to_number(bitand(defer,4))) valid# from cdef$ where obj#=
:1 and enabled > 1 group by enabled) c where i.obj#=c.enabled(+) and i.bo#=
:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 7 0.00 0.00 0 0 0 0
Fetch 68 0.00 0.00 11 81 0 61
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 77 0.00 0.01 11 81 0 61
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select pos#,intcol#,col#,spare1,bo#,spare2
from
icol$ where obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 61 0.00 0.00 0 0 0 0
Fetch 146 0.00 0.00 0 292 0 85
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 209 0.00 0.00 0 292 0 85
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,
nvl(scale,-127/*MAXSB1MINAL*/),178,scale,179,scale,180,scale,181,scale,182,
scale,183,scale,231,scale,0),null$,fixedstorage,nvl(deflength,0),default$,
rowid,col#,property, nvl(charsetid,0),nvl(charsetform,0),spare1,spare2,
nvl(spare3,0)
from
col$ where obj#=:1 order by intcol#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 497 0.00 0.00 2 69 0 489
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 507 0.01 0.00 2 69 0 489
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select type#,blocks,extents,minexts,maxexts,extsize,extpct,user#,iniexts,
NVL(lists,65535),NVL(groups,65535),cachehint,hwmincr, NVL(spare1,0)
from
seg$ where ts#=:1 and file#=:2 and block#=:3

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 68 0.00 0.00 0 0 0 0
Execute 68 0.00 0.00 0 0 0 0
Fetch 68 0.00 0.00 10 272 0 68
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 204 0.00 0.00 10 272 0 68
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS CLUSTER SEG$
1 INDEX UNIQUE SCAN I_FILE#_BLOCK# (object id 9)
********************************************************************************
select node,owner,name
from
syn$ where obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 0 12 0 4
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 10 0.00 0.00 0 12 0 4
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
2 TABLE ACCESS BY INDEX ROWID OBJ#(58)
2 INDEX UNIQUE SCAN OBJ#(98) (object id 98)
********************************************************************************
select ts#,file#,block#,nvl(bobj#,0),nvl(tab#,0),intcols,nvl(clucols,0),
audit$,flags,pctfree$,pctused$,initrans,maxtrans,rowcnt,blkcnt,empcnt,
avgspc,chncnt,avgrln,analyzetime, samplesize,cols,property,nvl(degree,1),
nvl(instances,1),avgspc_flb,flbcnt,kernelcols,nvl(trigflag, 0),nvl(spare1,0)
,nvl(spare2,0),spare4,spare6
from
tab$ where obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 11 22 0 4
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 10 0.00 0.00 11 22 0 4
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select col#, grantee#, privilege#,max(mod(nvl(option$,0),2))
from
objauth$ where obj#=:1 and col# is not null group by privilege#, col#,
grantee# order by col#, grantee#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 4 0.00 0.00 0 12 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 10 0.00 0.00 0 12 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select grantee#,privilege#,nvl(col#,0),max(mod(nvl(option$,0),2))
from
objauth$ where obj#=:1 group by grantee#,privilege#,nvl(col#,0) order by
grantee#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 4 0.00 0.00 0 0 0 0
Fetch 36 0.00 0.00 0 20 0 32
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 42 0.00 0.00 0 20 0 32
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select con#,obj#,rcon#,enabled,nvl(defer,0)
from
cdef$ where robj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 16 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 18 0.00 0.00 0 16 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
rowid,cols,nvl(defer,0),mtime,nvl(spare1,0)
from
cdef$ where obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 90 0.00 0.00 0 108 0 82
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 100 0.00 0.00 0 108 0 82
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select intcol#,nvl(pos#,0),col#
from
ccol$ where con#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 82 0.00 0.00 0 0 0 0
Fetch 164 0.00 0.00 0 328 0 82
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 248 0.00 0.00 0 328 0 82
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select sumobj#, inline#, textspos, textlen, instance#
from
suminline$ where hashval=:1 order by inline#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 8 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 16 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 24 0.00 0.00 0 16 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 TABLE ACCESS BY INDEX ROWID SUMINLINE$
28 INDEX FULL SCAN I_SUMINLINE$_2 (object id 226237)
********************************************************************************
select distinct obj#,containerobj#,pflags,xpflags,mflags
from
sum$, suminline$ where sumobj#=obj# and inline#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 8 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 8 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 24 0.00 0.00 0 8 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 SORT UNIQUE
0 NESTED LOOPS
0 TABLE ACCESS BY INDEX ROWID SUMINLINE$
0 INDEX RANGE SCAN I_SUMINLINE$_2 (object id 226237)
0 TABLE ACCESS BY INDEX ROWID SUM$
0 INDEX UNIQUE SCAN I_SUM$_1 (object id 319)
********************************************************************************
select dimobj#, col#
from
dimattr$ where detailobj#=:1 union select dimobj#, col# from dimjoinkey$
where detailobj#=:1 union select dimobj#, col# from dimlevelkey$ where
detailobj#=:1 order by 2, 1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 8 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 24 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 24 0.00 0.00 0 24 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 SORT UNIQUE
0 UNION-ALL
0 TABLE ACCESS BY INDEX ROWID DIMATTR$
0 INDEX RANGE SCAN I_DIMATTR$_2 (object id 344)
0 TABLE ACCESS BY INDEX ROWID DIMJOINKEY$
0 INDEX RANGE SCAN I_DIMJOINKEY$_2 (object id 341)
0 TABLE ACCESS BY INDEX ROWID DIMLEVELKEY$
0 INDEX RANGE SCAN I_DIMLEVELKEY$_2 (object id 338)
********************************************************************************
select distinct obj#,containerobj#,pflags,xpflags,mflags
from
sum$, sumdetail$ where detailobj#=:1 and sumobj#=obj#

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 8 0.00 0.00 0 0 0 0
Execute 8 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.00 0 16 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 24 0.00 0.00 0 16 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
0 SORT UNIQUE
0 NESTED LOOPS
0 TABLE ACCESS BY INDEX ROWID SUMDETAIL$
0 INDEX RANGE SCAN I_SUMDETAIL$_2 (object id 322)
0 TABLE ACCESS BY INDEX ROWID SUM$
0 INDEX UNIQUE SCAN I_SUM$_1 (object id 319)
********************************************************************************
select rpad ( 'a' , 50 , '-' ) short_cust_name , 0 cust_id , rpad ( 'a' , 30 ,
'-' ) cust_no , rpad ( 'a' , 500 , '-' ) sort_field1 , rpad ( 'a' , 40 , '-' ) s
ort_field2 , 0 payment_sched_id , rpad ( 'a' , 32 , '-' ) class , sysdate due_da
te , 0 amt_due_remaining , 0 days_past_due , 0 amount_adjusted , 0 amount_applie
d , 0 amount_credited , sysdate gl_date , 'x' data_converted , 0 ps_exchange_rat
e , 0 b0 , 0 b1 , 0 b2 , 0 b3 , 0 b4 , 0 b5 , 0 b6 , rpad ( 'a' , 25 , '-' ) bal
_segment_value , rpad ( 'a' , 500 , '-' ) inv_tid , rpad ( 'a' , 32 , '-' ) invo
ice_type from dual where 1 = 2 UNION ALL select /*+ ORDERED */
substrb(party.party_name,1,50) short_cust_name,
cust_acct.cust_account_id cust_id,
cust_acct.account_number cust_no,decode(upper(:sort_option),'T',
arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id),
NULL) sort_field1,arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_
id,ps.org_id) sort_field2, ps.payment_schedule_id payment_sched_id,
ps.class class,
ps.due_date due_date,
ps.amt_due_remaining,
ceil(to_date(:as_of_date) - ps.due_date) days_past_due ,
ps.amount_adjusted amount_adjusted,
ps.amount_applied amount_applied,
ps.amount_credited amount_credited,
ps.gl_date gl_date,
decode(ps.invoice_currency_code, :functional_currency, NULL,
decode(ps.exchange_rate, NULL, '*', NULL)) data_converte
d,
nvl(ps.exchange_rate, 1) ps_exchange_rate, arpt_sql_func_util.bucket_fu
nction(:bucket_line_type_0,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_0,:bucket_days_to_0,
ps.due_date,:bucket_category,to_date(:as_of_date)) b0,
arpt_sql_func_util.bucket_function(:bucket_line_type_1,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_1,:bucket_days_to_1,
ps.due_date,:bucket_category,to_date(:as_of_date)) b1,
arpt_sql_func_util.bucket_function(:bucket_line_type_2,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_2,:bucket_days_to_2,
ps.due_date,:bucket_category,to_date(:as_of_date)) b2,
arpt_sql_func_util.bucket_function(:bucket_line_type_3,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_3,:bucket_days_to_3,
ps.due_date,:bucket_category,to_date(:as_of_date)) b3,
arpt_sql_func_util.bucket_function(:bucket_line_type_4,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_4,:bucket_days_to_4,
ps.due_date,:bucket_category,to_date(:as_of_date)) b4,
arpt_sql_func_util.bucket_function(:bucket_line_type_5,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_5,:bucket_days_to_5,
ps.due_date,:bucket_category,to_date(:as_of_date)) b5,
arpt_sql_func_util.bucket_function(:bucket_line_type_6,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_6,:bucket_days_to_6,
ps.due_date,:bucket_category,to_date(:as_of_date)) b6,c.SEGMENT
1 bal_segment_value,decode(upper(:sort_option),to_char(ps.cust_trx_type_id),NULL
) inv_tid, arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.or
g_id) invoice_type from (select a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
sum(a.primary_salesrep_id) primary_salesrep_id,
a.due_date ,
sum(a.amount_due_remaining) amt_due_remaining,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.cust_trx_type_id,
a.org_id,
a.invoice_currency_code,
a.exchange_rate
from
( select
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class ,
0 primary_salesrep_id,
ps.due_date ,
nvl(sum ( decode( :c_convert_flag, 'Y',
nvl(adj.acctd_amount, 0),
adj.amount )
),0) * (-1) amount_due_remaining,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate,1) exchange_rate
from ar_payment_schedules_all ps,
ar_adjustments_all adj
where ps.gl_date <= :as_of_date
and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and adj.payment_schedule_id = ps.payment_schedule_id
and adj.status = 'A'
and adj.gl_date > :as_of_date AND NVL(ps.ORG_ID, :p_reporting_entity_id )
= :p_reporting_entity_id AND NVL(adj.ORG_ID, :p_reporting_entity_id ) = :p
_reporting_entity_id group by
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.class ,
ps.due_date,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate,1),
ps.payment_schedule_id
UNION ALL
select ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class ,
0 primary_salesrep_id,
ps.due_date ,
nvl(sum ( decode
( :c_convert_flag, 'Y',
(decode(ps.class, 'CM',
decode ( app.application_type, 'CM',
app.acctd_amount_applied_from,
app.acctd_amount_applied_to
),
app.acctd_amount_applied_to)+
nvl(app.acctd_earned_discount_taken,0) +
nvl(app.acctd_unearned_discount_taken,0))
,
( app.amount_applied +
nvl(app.earned_discount_taken,0) +
nvl(app.unearned_discount_taken,0) )
) *
decode
( ps.class, 'CM',
decode(app.application_type, 'CM', -1, 1), 1 )
), 0) amount_due_remaining_inv, /* Bug Fix 3846352 */
ps.trx_number ,
ps.amount_adjusted,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date gl_date_inv,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1) exchange_rate
from ar_payment_schedules_all ps,
ar_receivable_applications_all app
where ps.gl_date <= :as_of_date
and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and (app.applied_payment_schedule_id = ps.payment_schedule_id
OR
app.payment_schedule_id = ps.payment_schedule_id)
and app.status = 'APP'
and nvl( app.confirmed_flag, 'Y' ) = 'Y'
and app.gl_date > :as_of_date AND NVL(ps.ORG_ID, :p_reporting_entity_id )
= :p_reporting_entity_id AND NVL(app.ORG_ID, :p_reporting_entity_id ) = :p
_reporting_entity_id group by
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.class ,
ps.due_date,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1),
ps.payment_schedule_id
UNION ALL
select ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class class_inv,
nvl(ct.primary_salesrep_id, -3) primary_salesrep_id,
ps.due_date due_date_inv,
decode( :c_convert_flag, 'Y',
ps.acctd_amount_due_remaining,
ps.amount_due_remaining) amt_due_remaining_inv,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1) exchange_rate
from ar_payment_schedules_all ps,
ra_customer_trx_all ct
where ps.gl_date <= :as_of_date
-- and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and ps.customer_trx_id = ct.customer_trx_id
AND NVL(ps.ORG_ID, :p_reporting_entity_id ) = :p_reporting_entity_id AND
NVL(ct.ORG_ID, :p_reporting_entity_id ) = :p_reporting_entity_id ) a
group by a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
a.due_date ,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.cust_trx_type_id,
a.org_id,
a.invoice_currency_code,
a.exchange_rate) ps, ar_dispute_history dh,ra_cust_trx_line_gl_dist_all g
ld
,gl_code_combinations c
,hz_cust_accounts cust_acct
,hz_parties party where /* Bug 3487101 :
ps.gl_date <= to_date(:as_of_date) and
ps.gl_date_closed > to_date(:as_of_date) and
decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code */
ps.payment_schedule_id = dh.payment_schedule_id(+)
and :as_of_date >= nvl(dh.start_date(+), to_date(:as_of_date))
and :as_of_date < nvl(dh.end_date(+), to_date(:as_of_date) + 1)
and gld.account_class = 'REC'
and gld.latest_rec_flag = 'Y'
and gld.code_combination_id = c.code_combination_id
and cust_acct.party_id = party.party_id and ps.customer_id = cust_acct.
cust_account_id and ps.customer_trx_id = gld.customer_trx_id AND NVL(gld.ORG_I
D, :p_reporting_entity_id ) = :p_reporting_entity_id UNION ALL select /*+ OR
DERED INDEX (app AR_RECEIVABLE_APPLICATIONS_N1) */
substrb(party.party_name,1,50) short_cust_name,
nvl(cust_acct.cust_account_id, -999) cust_id,
cust_acct.account_number cust_no,decode(upper(:sort_option),'T',initcap
(:lp_payment_meaning), NULL),initcap(:lp_payment_meaning), ps.payment_schedule
_id,
DECODE(app.applied_payment_schedule_id,-4,'CLAIM',ps.class),
ps.due_date,
decode
( :convert_flag, 'Y', nvl(-sum(app.acctd_amount_applied_from),0),
nvl(-sum(app.amount_applied),0)
),
ceil(to_date(:as_of_date) - ps.due_date),
ps.amount_adjusted,
ps.amount_applied,
ps.amount_credited,
ps.gl_date,
decode(ps.invoice_currency_code, :functional_currency, NULL,
decode(ps.exchange_rate, NULL, '*', NULL)),
nvl(ps.exchange_rate, 1), arpt_sql_func_util.bucket_function(:bucket_li
ne_type_0,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_0,:bucket_days_to_0,
ps.due_date,:bucket_category,to_date(:as_of_date)) b0,
arpt_sql_func_util.bucket_function(:bucket_line_type_1,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_1,:bucket_days_to_1,
ps.due_date,:bucket_category,to_date(:as_of_date)) b1,
arpt_sql_func_util.bucket_function(:bucket_line_type_2,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_2,:bucket_days_to_2,
ps.due_date,:bucket_category,to_date(:as_of_date)) b2,
arpt_sql_func_util.bucket_function(:bucket_line_type_3,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_3,:bucket_days_to_3,
ps.due_date,:bucket_category,to_date(:as_of_date)) b3,
arpt_sql_func_util.bucket_function(:bucket_line_type_4,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_4,:bucket_days_to_4,
ps.due_date,:bucket_category,to_date(:as_of_date)) b4,
arpt_sql_func_util.bucket_function(:bucket_line_type_5,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_5,:bucket_days_to_5,
ps.due_date,:bucket_category,to_date(:as_of_date)) b5,
arpt_sql_func_util.bucket_function(:bucket_line_type_6,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_6,:bucket_days_to_6,
ps.due_date,:bucket_category,to_date(:as_of_date)) b6,c.SEGMENT
1,decode(upper(:sort_option),'T','-1',NULL) inv_tid,initcap(:lp_payment_meaning)
from ar_payment_schedules_all ps,
ar_receivable_applications_all app,
hz_cust_accounts cust_acct,
hz_parties party,
gl_code_combinations c where app.gl_date <= to_date(:as_of_da
te)
and ps.customer_id = cust_acct.cust_account_id(+)
and cust_acct.party_id= party.party_id (+)
and ps.cash_receipt_id = app.cash_receipt_id
and app.code_combination_id = c.code_combination_id
and app.status in ( 'ACC', 'UNAPP', 'UNID','OTHER ACC')
and nvl(app.confirmed_flag, 'Y') = 'Y'
and ps.gl_date_closed > to_date(:as_of_date)
and ((app.reversal_gl_date is not null AND
ps.gl_date <= to_date(:as_of_date))
OR
app.reversal_gl_date is null )
and decode(upper(:p_in_currency), NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and nvl( ps.receipt_confirmed_flag, 'Y' ) = 'Y' AND NVL(ps.ORG_ID, :p_rep
orting_entity_id ) = :p_reporting_entity_id AND NVL(app.ORG_ID, :p_reporting
_entity_id ) = :p_reporting_entity_id GROUP BY party.party_name,
cust_acct.account_number,
cust_acct.cust_account_id,decode(upper(:sort_option),'T',initcap(:lp_pa
yment_meaning), NULL),initcap(:lp_payment_meaning), ps.payment_schedule_id,
ps.due_date,
ps.amount_adjusted,
ps.amount_applied,
ps.amount_credited,
ps.gl_date,
ps.amount_in_dispute,
ps.amount_adjusted_pending,
ps.invoice_currency_code,
ps.exchange_rate,
DECODE(app.applied_payment_schedule_id,-4,'CLAIM',ps.class),
c.code_combination_id,c.SEGMENT1, decode( app.status, 'UNID', 'UNID','O
THER ACC','OTHER ACC','UNAPP') ,decode(upper(:sort_option),'T','-1',NULL), initc
ap(:lp_payment_meaning)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.08 0.12 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.08 0.12 0 0 0 0
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 UNION-ALL
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 VIEW
0 UNION-ALL
0 SORT (GROUP BY)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_ADJUSTMENTS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_ADJUSTMENTS_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'AR_PAYMENT_SCHEDULES_U1' (UNIQUE)
0 SORT (GROUP BY)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_RECEIVABLE_APPLICATIONS_ALL'
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N6' (NON-UNIQUE)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'RA_CUSTOMER_TRX_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'RA_CUSTOMER_TRX_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_DISPUTE_HISTORY'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_DISPUTE_HISTORY_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'RA_CUST_TRX_LINE_GL_DIST_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'RA_CUST_TRX_LINE_GL_DIST_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'HZ_PARTIES_U1'
(UNIQUE)
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INLIST ITERATOR
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_RECEIVABLE_APPLICATIONS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_PARTIES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
********************************************************************************
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,
sample_size, minimum, maximum, distcnt, lowval, hival, density, col#,
spare1, spare2, avgcln
from
hist_head$ where obj#=:1 and intcol#=:2

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 9 0.00 0.00 0 0 0 0
Execute 479 0.00 0.00 0 0 0 0
Fetch 479 0.01 0.05 16 1929 0 476
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 967 0.02 0.06 16 1929 0 476
Misses in library cache during parse: 1
Optimizer goal: RULE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select *
from
dual

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 3 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
select /*+ ORDERED */ substrb ( party.party_name , 1 , 50 ) short_cust_name ,
cust_acct.cust_account_id cust_id , cust_acct.account_number cust_no ,
decode ( upper ( : sort_option ) , 'T' ,
arpt_sql_func_util.get_org_trx_type_details ( ps.cust_trx_type_id ,
ps.org_id ) , NULL ) sort_field1 ,
arpt_sql_func_util.get_org_trx_type_details ( ps.cust_trx_type_id ,
ps.org_id ) sort_field2 , ps.payment_schedule_id payment_sched_id ,
ps.class class , ps.due_date due_date , ps.amt_due_remaining , ceil (
to_date ( : as_of_date ) - ps.due_date ) days_past_due , ps.amount_adjusted
amount_adjusted , ps.amount_applied amount_applied , ps.amount_credited
amount_credited , ps.gl_date gl_date , decode ( ps.invoice_currency_code ,
: functional_currency , NULL , decode ( ps.exchange_rate , NULL , '*' ,
NULL ) ) data_converted , nvl ( ps.exchange_rate , 1 ) ps_exchange_rate ,
arpt_sql_func_util.bucket_function ( : bucket_line_type_0 ,
dh.amount_in_dispute , ps.amount_adjusted_pending , : bucket_days_from_0 ,
: bucket_days_to_0 , ps.due_date , : bucket_category , to_date ( :
as_of_date ) ) b0 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_1 , dh.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_1 , : bucket_days_to_1 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b1 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_2 , dh.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_2 , : bucket_days_to_2 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b2 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_3 , dh.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_3 , : bucket_days_to_3 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b3 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_4 , dh.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_4 , : bucket_days_to_4 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b4 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_5 , dh.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_5 , : bucket_days_to_5 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b5 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_6 , dh.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_6 , : bucket_days_to_6 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b6 , c.SEGMENT1 bal_segment_value , decode (
upper ( : sort_option ) , to_char ( ps.cust_trx_type_id ) , NULL ) inv_tid ,
arpt_sql_func_util.get_org_trx_type_details ( ps.cust_trx_type_id ,
ps.org_id ) invoice_type
from
( select a.customer_id , a.customer_site_use_id , a.customer_trx_id ,
a.payment_schedule_id , a.class , sum ( a.primary_salesrep_id )
primary_salesrep_id , a.due_date , sum ( a.amount_due_remaining )
amt_due_remaining , a.trx_number , a.amount_adjusted , a.amount_applied ,
a.amount_credited , a.amount_adjusted_pending , a.gl_date ,
a.cust_trx_type_id , a.org_id , a.invoice_currency_code , a.exchange_rate
from ( select ps.customer_id , ps.customer_site_use_id , ps.customer_trx_id
, ps.payment_schedule_id , ps.class , 0 primary_salesrep_id , ps.due_date ,
nvl ( sum ( decode ( : c_convert_flag , 'Y' , nvl ( adj.acctd_amount , 0 ) ,
adj.amount ) ) , 0 ) * ( - 1 ) amount_due_remaining , ps.trx_number ,
ps.amount_adjusted , ps.amount_applied , ps.amount_credited ,
ps.amount_adjusted_pending , ps.gl_date , ps.cust_trx_type_id , ps.org_id ,
ps.invoice_currency_code , nvl ( ps.exchange_rate , 1 ) exchange_rate from
ar_payment_schedules_all ps , ar_adjustments_all adj where ps.gl_date <= :
as_of_date and ps.customer_id > 0 and ps.gl_date_closed > : as_of_date and
decode ( upper ( : p_in_currency ) , NULL , ps.invoice_currency_code ,
upper ( : p_in_currency ) ) = ps.invoice_currency_code and
adj.payment_schedule_id = ps.payment_schedule_id and adj.status = 'A' and
adj.gl_date > : as_of_date AND NVL ( ps.ORG_ID , : p_reporting_entity_id ) =
: p_reporting_entity_id AND NVL ( adj.ORG_ID , : p_reporting_entity_id ) =
: p_reporting_entity_id group by ps.customer_id , ps.customer_site_use_id ,
ps.customer_trx_id , ps.class , ps.due_date , ps.trx_number ,
ps.amount_adjusted , ps.amount_applied , ps.amount_credited ,
ps.amount_adjusted_pending , ps.gl_date , ps.cust_trx_type_id , ps.org_id ,
ps.invoice_currency_code , nvl ( ps.exchange_rate , 1 ) ,
ps.payment_schedule_id UNION ALL select ps.customer_id ,
ps.customer_site_use_id , ps.customer_trx_id , ps.payment_schedule_id ,
ps.class , 0 primary_salesrep_id , ps.due_date , nvl ( sum ( decode ( :
c_convert_flag , 'Y' , ( decode ( ps.class , 'CM' , decode (
app.application_type , 'CM' , app.acctd_amount_applied_from ,
app.acctd_amount_applied_to ) , app.acctd_amount_applied_to ) + nvl (
app.acctd_earned_discount_taken , 0 ) + nvl (
app.acctd_unearned_discount_taken , 0 ) ) , ( app.amount_applied + nvl (
app.earned_discount_taken , 0 ) + nvl ( app.unearned_discount_taken , 0 ) )
) * decode ( ps.class , 'CM' , decode ( app.application_type , 'CM' , - 1 ,
1 ) , 1 ) ) , 0 ) amount_due_remaining_inv , ps.trx_number ,
ps.amount_adjusted , ps.amount_applied , ps.amount_credited ,
ps.amount_adjusted_pending , ps.gl_date gl_date_inv , ps.cust_trx_type_id ,
ps.org_id , ps.invoice_currency_code , nvl ( ps.exchange_rate , 1 )
exchange_rate from ar_payment_schedules_all ps ,
ar_receivable_applications_all app where ps.gl_date <= : as_of_date and
ps.customer_id > 0 and ps.gl_date_closed > : as_of_date and decode ( upper
( : p_in_currency ) , NULL , ps.invoice_currency_code , upper ( :
p_in_currency ) ) = ps.invoice_currency_code and (
app.applied_payment_schedule_id = ps.payment_schedule_id OR
app.payment_schedule_id = ps.payment_schedule_id ) and app.status = 'APP'
and nvl ( app.confirmed_flag , 'Y' ) = 'Y' and app.gl_date > : as_of_date
AND NVL ( ps.ORG_ID , : p_reporting_entity_id ) = : p_reporting_entity_id
AND NVL ( app.ORG_ID , : p_reporting_entity_id ) = : p_reporting_entity_id
group by ps.customer_id , ps.customer_site_use_id , ps.customer_trx_id ,
ps.class , ps.due_date , ps.trx_number , ps.amount_adjusted ,
ps.amount_applied , ps.amount_credited , ps.amount_adjusted_pending ,
ps.gl_date , ps.cust_trx_type_id , ps.org_id , ps.invoice_currency_code ,
nvl ( ps.exchange_rate , 1 ) , ps.payment_schedule_id UNION ALL select
ps.customer_id , ps.customer_site_use_id , ps.customer_trx_id ,
ps.payment_schedule_id , ps.class class_inv , nvl ( ct.primary_salesrep_id ,
- 3 ) primary_salesrep_id , ps.due_date due_date_inv , decode ( :
c_convert_flag , 'Y' , ps.acctd_amount_due_remaining ,
ps.amount_due_remaining ) amt_due_remaining_inv , ps.trx_number ,
ps.amount_adjusted , ps.amount_applied , ps.amount_credited ,
ps.amount_adjusted_pending , ps.gl_date , ps.cust_trx_type_id , ps.org_id ,
ps.invoice_currency_code , nvl ( ps.exchange_rate , 1 ) exchange_rate from
ar_payment_schedules_all ps , ra_customer_trx_all ct where ps.gl_date <= :
as_of_date and ps.gl_date_closed > : as_of_date and decode ( upper ( :
p_in_currency ) , NULL , ps.invoice_currency_code , upper ( : p_in_currency
) ) = ps.invoice_currency_code and ps.customer_trx_id = ct.customer_trx_id
AND NVL ( ps.ORG_ID , : p_reporting_entity_id ) = : p_reporting_entity_id
AND NVL ( ct.ORG_ID , : p_reporting_entity_id ) = : p_reporting_entity_id )
a group by a.customer_id , a.customer_site_use_id , a.customer_trx_id ,
a.payment_schedule_id , a.class , a.due_date , a.trx_number ,
a.amount_adjusted , a.amount_applied , a.amount_credited ,
a.amount_adjusted_pending , a.gl_date , a.cust_trx_type_id , a.org_id ,
a.invoice_currency_code , a.exchange_rate ) ps , ar_dispute_history dh ,
ra_cust_trx_line_gl_dist_all gld , gl_code_combinations c ,
hz_cust_accounts cust_acct , hz_parties party where ps.payment_schedule_id =
dh.payment_schedule_id (+) and : as_of_date >= nvl ( dh.start_date (+) ,
to_date ( : as_of_date ) ) and : as_of_date < nvl ( dh.end_date (+) ,
to_date ( : as_of_date ) + 1 ) and gld.account_class = 'REC' and
gld.latest_rec_flag = 'Y' and gld.code_combination_id =
c.code_combination_id and cust_acct.party_id = party.party_id and
ps.customer_id = cust_acct.cust_account_id and ps.customer_trx_id =
gld.customer_trx_id AND NVL ( gld.ORG_ID , : p_reporting_entity_id ) = :
p_reporting_entity_id UNION ALL select /*+ ORDERED INDEX (app
AR_RECEIVABLE_APPLICATIONS_N1) */ substrb ( party.party_name , 1 , 50 )
short_cust_name , nvl ( cust_acct.cust_account_id , - 999 ) cust_id ,
cust_acct.account_number cust_no , decode ( upper ( : sort_option ) , 'T' ,
initcap ( : lp_payment_meaning ) , NULL ) , initcap ( : lp_payment_meaning )
, ps.payment_schedule_id , DECODE ( app.applied_payment_schedule_id , - 4 ,
'CLAIM' , ps.class ) , ps.due_date , decode ( : convert_flag , 'Y' , nvl (
- sum ( app.acctd_amount_applied_from ) , 0 ) , nvl ( - sum (
app.amount_applied ) , 0 ) ) , ceil ( to_date ( : as_of_date ) -
ps.due_date ) , ps.amount_adjusted , ps.amount_applied , ps.amount_credited
, ps.gl_date , decode ( ps.invoice_currency_code , : functional_currency ,
NULL , decode ( ps.exchange_rate , NULL , '*' , NULL ) ) , nvl (
ps.exchange_rate , 1 ) , arpt_sql_func_util.bucket_function ( :
bucket_line_type_0 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_0 , : bucket_days_to_0 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b0 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_1 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_1 , : bucket_days_to_1 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b1 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_2 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_2 , : bucket_days_to_2 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b2 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_3 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_3 , : bucket_days_to_3 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b3 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_4 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_4 , : bucket_days_to_4 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b4 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_5 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_5 , : bucket_days_to_5 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b5 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_6 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_6 , : bucket_days_to_6 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b6 , c.SEGMENT1 , decode ( upper ( : sort_option
) , 'T' , '-1' , NULL ) inv_tid , initcap ( : lp_payment_meaning ) from
ar_payment_schedules_all ps , ar_receivable_applications_all app ,
hz_cust_accounts cust_acct , hz_parties party , gl_code_combinations c
where app.gl_date <= to_date ( : as_of_date ) and ps.customer_id =
cust_acct.cust_account_id (+) and cust_acct.party_id = party.party_id (+)
and ps.cash_receipt_id = app.cash_receipt_id and app.code_combination_id =
c.code_combination_id and app.status in ( 'ACC' , 'UNAPP' , 'UNID' , 'OTHER
ACC' ) and nvl ( app.confirmed_flag , 'Y' ) = 'Y' and ps.gl_date_closed >
to_date ( : as_of_date ) and ( ( app.reversal_gl_date is not null AND
ps.gl_date <= to_date ( : as_of_date ) ) OR app.reversal_gl_date is null )
and decode ( upper ( : p_in_currency ) , NULL , ps.invoice_currency_code ,
upper ( : p_in_currency ) ) = ps.invoice_currency_code and nvl (
ps.receipt_confirmed_flag , 'Y' ) = 'Y' AND NVL ( ps.ORG_ID , :
p_reporting_entity_id ) = : p_reporting_entity_id AND NVL ( app.ORG_ID , :
p_reporting_entity_id ) = : p_reporting_entity_id GROUP BY party.party_name
, cust_acct.account_number , cust_acct.cust_account_id , decode ( upper ( :
sort_option ) , 'T' , initcap ( : lp_payment_meaning ) , NULL ) , initcap (
: lp_payment_meaning ) , ps.payment_schedule_id , ps.due_date ,
ps.amount_adjusted , ps.amount_applied , ps.amount_credited , ps.gl_date ,
ps.amount_in_dispute , ps.amount_adjusted_pending ,
ps.invoice_currency_code , ps.exchange_rate , DECODE (
app.applied_payment_schedule_id , - 4 , 'CLAIM' , ps.class ) ,
c.code_combination_id , c.SEGMENT1 , decode ( app.status , 'UNID' , 'UNID' ,
'OTHER ACC' , 'OTHER ACC' , 'UNAPP' ) , decode ( upper ( : sort_option ) ,
'T' , '-1' , NULL ) , initcap ( : lp_payment_meaning )

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.01 0.02 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.01 0.02 0 0 0 0
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 UNION-ALL
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 VIEW
0 UNION-ALL
0 SORT (GROUP BY)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_ADJUSTMENTS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_ADJUSTMENTS_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'AR_PAYMENT_SCHEDULES_U1' (UNIQUE)
0 SORT (GROUP BY)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_RECEIVABLE_APPLICATIONS_ALL'
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N6' (NON-UNIQUE)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'RA_CUSTOMER_TRX_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'RA_CUSTOMER_TRX_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_DISPUTE_HISTORY'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_DISPUTE_HISTORY_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'RA_CUST_TRX_LINE_GL_DIST_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'RA_CUST_TRX_LINE_GL_DIST_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'HZ_PARTIES_U1'
(UNIQUE)
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INLIST ITERATOR
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_RECEIVABLE_APPLICATIONS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_PARTIES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
********************************************************************************
select * from (select a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
sum(a.primary_salesrep_id) primary_salesrep_id,
a.due_date ,
sum(a.amount_due_remaining) amt_due_remaining,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.cust_trx_type_id,
a.org_id,
a.invoice_currency_code,
a.exchange_rate
from
( select
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class ,
0 primary_salesrep_id,
ps.due_date ,
nvl(sum ( decode( :c_convert_flag, 'Y',
nvl(adj.acctd_amount, 0),
adj.amount )
),0) * (-1) amount_due_remaining,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate,1) exchange_rate
from ar_payment_schedules_all ps,
ar_adjustments_all adj
where ps.gl_date <= :as_of_date
and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and adj.payment_schedule_id = ps.payment_schedule_id
and adj.status = 'A'
and adj.gl_date > :as_of_date AND NVL(ps.ORG_ID, :p_reporting_entity_id )
= :p_reporting_entity_id AND NVL(adj.ORG_ID, :p_reporting_entity_id ) = :p
_reporting_entity_id group by
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.class ,
ps.due_date,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate,1),
ps.payment_schedule_id
UNION ALL
select ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class ,
0 primary_salesrep_id,
ps.due_date ,
nvl(sum ( decode
( :c_convert_flag, 'Y',
(decode(ps.class, 'CM',
decode ( app.application_type, 'CM',
app.acctd_amount_applied_from,
app.acctd_amount_applied_to
),
app.acctd_amount_applied_to)+
nvl(app.acctd_earned_discount_taken,0) +
nvl(app.acctd_unearned_discount_taken,0))
,
( app.amount_applied +
nvl(app.earned_discount_taken,0) +
nvl(app.unearned_discount_taken,0) )
) *
decode
( ps.class, 'CM',
decode(app.application_type, 'CM', -1, 1), 1 )
), 0) amount_due_remaining_inv, /* Bug Fix 3846352 */
ps.trx_number ,
ps.amount_adjusted,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date gl_date_inv,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1) exchange_rate
from ar_payment_schedules_all ps,
ar_receivable_applications_all app
where ps.gl_date <= :as_of_date
and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and (app.applied_payment_schedule_id = ps.payment_schedule_id
OR
app.payment_schedule_id = ps.payment_schedule_id)
and app.status = 'APP'
and nvl( app.confirmed_flag, 'Y' ) = 'Y'
and app.gl_date > :as_of_date AND NVL(ps.ORG_ID, :p_reporting_entity_id )
= :p_reporting_entity_id AND NVL(app.ORG_ID, :p_reporting_entity_id ) = :p
_reporting_entity_id group by
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.class ,
ps.due_date,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1),
ps.payment_schedule_id
UNION ALL
select ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class class_inv,
nvl(ct.primary_salesrep_id, -3) primary_salesrep_id,
ps.due_date due_date_inv,
decode( :c_convert_flag, 'Y',
ps.acctd_amount_due_remaining,
ps.amount_due_remaining) amt_due_remaining_inv,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1) exchange_rate
from ar_payment_schedules_all ps,
ra_customer_trx_all ct
where ps.gl_date <= :as_of_date
-- and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and ps.customer_trx_id = ct.customer_trx_id
AND NVL(ps.ORG_ID, :p_reporting_entity_id ) = :p_reporting_entity_id AND
NVL(ct.ORG_ID, :p_reporting_entity_id ) = :p_reporting_entity_id ) a
group by a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
a.due_date ,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.cust_trx_type_id,
a.org_id,
a.invoice_currency_code,
a.exchange_rate)
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (GROUP BY)
0 VIEW
0 UNION-ALL
0 SORT (GROUP BY)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_ADJUSTMENTS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_ADJUSTMENTS_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'AR_PAYMENT_SCHEDULES_U1' (UNIQUE)
0 SORT (GROUP BY)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_RECEIVABLE_APPLICATIONS_ALL'
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N6' (NON-UNIQUE)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'RA_CUSTOMER_TRX_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'RA_CUSTOMER_TRX_U1' (UNIQUE)
********************************************************************************
select *
from
ar_dispute_history

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'AR_DISPUTE_HISTORY'
********************************************************************************
select *
from
ra_cust_trx_line_gl_dist_all

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.01 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.01 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'RA_CUST_TRX_LINE_GL_DIST_ALL'
********************************************************************************
select *
from
gl_code_combinations

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.01 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.01 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'GL_CODE_COMBINATIONS'
********************************************************************************
select *
from
hz_cust_accounts

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.05 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.05 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'HZ_CUST_ACCOUNTS'
********************************************************************************
select *
from
hz_parties

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.06 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.06 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'HZ_PARTIES'
********************************************************************************
select /*+ ORDERED INDEX (app AR_RECEIVABLE_APPLICATIONS_N1) */ substrb (
party.party_name , 1 , 50 ) short_cust_name , nvl (
cust_acct.cust_account_id , - 999 ) cust_id , cust_acct.account_number
cust_no , decode ( upper ( : sort_option ) , 'T' , initcap ( :
lp_payment_meaning ) , NULL ) , initcap ( : lp_payment_meaning ) ,
ps.payment_schedule_id , DECODE ( app.applied_payment_schedule_id , - 4 ,
'CLAIM' , ps.class ) , ps.due_date , decode ( : convert_flag , 'Y' , nvl (
- sum ( app.acctd_amount_applied_from ) , 0 ) , nvl ( - sum (
app.amount_applied ) , 0 ) ) , ceil ( to_date ( : as_of_date ) -
ps.due_date ) , ps.amount_adjusted , ps.amount_applied , ps.amount_credited
, ps.gl_date , decode ( ps.invoice_currency_code , : functional_currency ,
NULL , decode ( ps.exchange_rate , NULL , '*' , NULL ) ) , nvl (
ps.exchange_rate , 1 ) , arpt_sql_func_util.bucket_function ( :
bucket_line_type_0 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_0 , : bucket_days_to_0 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b0 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_1 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_1 , : bucket_days_to_1 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b1 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_2 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_2 , : bucket_days_to_2 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b2 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_3 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_3 , : bucket_days_to_3 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b3 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_4 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_4 , : bucket_days_to_4 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b4 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_5 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_5 , : bucket_days_to_5 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b5 , arpt_sql_func_util.bucket_function ( :
bucket_line_type_6 , ps.amount_in_dispute , ps.amount_adjusted_pending , :
bucket_days_from_6 , : bucket_days_to_6 , ps.due_date , : bucket_category ,
to_date ( : as_of_date ) ) b6 , c.SEGMENT1 , decode ( upper ( : sort_option
) , 'T' , '-1' , NULL ) inv_tid , initcap ( : lp_payment_meaning )
from
ar_payment_schedules_all ps , ar_receivable_applications_all app ,
hz_cust_accounts cust_acct , hz_parties party , gl_code_combinations c
where app.gl_date <= to_date ( : as_of_date ) and ps.customer_id =
cust_acct.cust_account_id (+) and cust_acct.party_id = party.party_id (+)
and ps.cash_receipt_id = app.cash_receipt_id and app.code_combination_id =
c.code_combination_id and app.status in ( 'ACC' , 'UNAPP' , 'UNID' , 'OTHER
ACC' ) and nvl ( app.confirmed_flag , 'Y' ) = 'Y' and ps.gl_date_closed >
to_date ( : as_of_date ) and ( ( app.reversal_gl_date is not null AND
ps.gl_date <= to_date ( : as_of_date ) ) OR app.reversal_gl_date is null )
and decode ( upper ( : p_in_currency ) , NULL , ps.invoice_currency_code ,
upper ( : p_in_currency ) ) = ps.invoice_currency_code and nvl (
ps.receipt_confirmed_flag , 'Y' ) = 'Y' AND NVL ( ps.ORG_ID , :
p_reporting_entity_id ) = : p_reporting_entity_id AND NVL ( app.ORG_ID , :
p_reporting_entity_id ) = : p_reporting_entity_id GROUP BY party.party_name
, cust_acct.account_number , cust_acct.cust_account_id , decode ( upper ( :
sort_option ) , 'T' , initcap ( : lp_payment_meaning ) , NULL ) , initcap (
: lp_payment_meaning ) , ps.payment_schedule_id , ps.due_date ,
ps.amount_adjusted , ps.amount_applied , ps.amount_credited , ps.gl_date ,
ps.amount_in_dispute , ps.amount_adjusted_pending ,
ps.invoice_currency_code , ps.exchange_rate , DECODE (
app.applied_payment_schedule_id , - 4 , 'CLAIM' , ps.class ) ,
c.code_combination_id , c.SEGMENT1 , decode ( app.status , 'UNID' , 'UNID' ,
'OTHER ACC' , 'OTHER ACC' , 'UNAPP' ) , decode ( upper ( : sort_option ) ,
'T' , '-1' , NULL ) , initcap ( : lp_payment_meaning )

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INLIST ITERATOR
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_RECEIVABLE_APPLICATIONS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'HZ_PARTIES_U1'
(UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
********************************************************************************
select /*+ rule */ bucket, endpoint, col#, epvalue
from
histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 1 3 0 2
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 1 3 0 2
Misses in library cache during parse: 1
Optimizer goal: RULE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
select *
from
ar_payment_schedules_all

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.01 0.02 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.01 0.02 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_PAYMENT_SCHEDULES_ALL'
********************************************************************************
select *
from
ar_receivable_applications_all

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.01 0.05 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.01 0.05 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_RECEIVABLE_APPLICATIONS_ALL'
********************************************************************************
select rpad ( 'a' , 50 , '-' ) short_cust_name , 0 cust_id , rpad ( 'a' , 30 , '
-' ) cust_no , rpad ( 'a' , 500 , '-' ) sort_field1 , rpad ( 'a' , 40 , '-' ) so
rt_field2 , 0 payment_sched_id , rpad ( 'a' , 32 , '-' ) class , sysdate due_dat
e , 0 amt_due_remaining , 0 days_past_due , 0 amount_adjusted , 0 amount_applied
, 0 amount_credited , sysdate gl_date , 'x' data_converted , 0 ps_exchange_rate
, 0 b0 , 0 b1 , 0 b2 , 0 b3 , 0 b4 , 0 b5 , 0 b6 , rpad ( 'a' , 25 , '-' ) bal_
segment_value , rpad ( 'a' , 500 , '-' ) inv_tid , rpad ( 'a' , 32 , '-' ) invoi
ce_type from dual where 1 = 2 UNION ALL select /*+ ORDERED */
substrb(party.party_name,1,50) short_cust_name,
cust_acct.cust_account_id cust_id,
cust_acct.account_number cust_no,decode(upper(:sort_option),'T',
arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id),
NULL) sort_field1,arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_
id,ps.org_id) sort_field2, ps.payment_schedule_id payment_sched_id,
ps.class class,
ps.due_date due_date,
ps.amt_due_remaining,
ceil(to_date(:as_of_date) - ps.due_date) days_past_due ,
ps.amount_adjusted amount_adjusted,
ps.amount_applied amount_applied,
ps.amount_credited amount_credited,
ps.gl_date gl_date,
decode(ps.invoice_currency_code, :functional_currency, NULL,
decode(ps.exchange_rate, NULL, '*', NULL)) data_converte
d,
nvl(ps.exchange_rate, 1) ps_exchange_rate, arpt_sql_func_util.bucket_fu
nction(:bucket_line_type_0,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_0,:bucket_days_to_0,
ps.due_date,:bucket_category,to_date(:as_of_date)) b0,
arpt_sql_func_util.bucket_function(:bucket_line_type_1,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_1,:bucket_days_to_1,
ps.due_date,:bucket_category,to_date(:as_of_date)) b1,
arpt_sql_func_util.bucket_function(:bucket_line_type_2,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_2,:bucket_days_to_2,
ps.due_date,:bucket_category,to_date(:as_of_date)) b2,
arpt_sql_func_util.bucket_function(:bucket_line_type_3,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_3,:bucket_days_to_3,
ps.due_date,:bucket_category,to_date(:as_of_date)) b3,
arpt_sql_func_util.bucket_function(:bucket_line_type_4,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_4,:bucket_days_to_4,
ps.due_date,:bucket_category,to_date(:as_of_date)) b4,
arpt_sql_func_util.bucket_function(:bucket_line_type_5,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_5,:bucket_days_to_5,
ps.due_date,:bucket_category,to_date(:as_of_date)) b5,
arpt_sql_func_util.bucket_function(:bucket_line_type_6,
dh.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_6,:bucket_days_to_6,
ps.due_date,:bucket_category,to_date(:as_of_date)) b6,c.SEGMENT
1 bal_segment_value,decode(upper(:sort_option),to_char(ps.cust_trx_type_id),NULL
) inv_tid, arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.or
g_id) invoice_type from (select a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
sum(a.primary_salesrep_id) primary_salesrep_id,
a.due_date ,
sum(a.amount_due_remaining) amt_due_remaining,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.cust_trx_type_id,
a.org_id,
a.invoice_currency_code,
a.exchange_rate
from
( select
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class ,
0 primary_salesrep_id,
ps.due_date ,
nvl(sum ( decode( :c_convert_flag, 'Y',
nvl(adj.acctd_amount, 0),
adj.amount )
),0) * (-1) amount_due_remaining,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate,1) exchange_rate
from ar_payment_schedules_all ps,
ar_adjustments_all adj
where ps.gl_date <= :as_of_date
and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and adj.payment_schedule_id = ps.payment_schedule_id
and adj.status = 'A'
and adj.gl_date > :as_of_date AND NVL(ps.ORG_ID, :p_reporting_entity_id )
= :p_reporting_entity_id AND NVL(adj.ORG_ID, :p_reporting_entity_id ) = :p
_reporting_entity_id group by
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.class ,
ps.due_date,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate,1),
ps.payment_schedule_id
UNION ALL
select ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class ,
0 primary_salesrep_id,
ps.due_date ,
nvl(sum ( decode
( :c_convert_flag, 'Y',
(decode(ps.class, 'CM',
decode ( app.application_type, 'CM',
app.acctd_amount_applied_from,
app.acctd_amount_applied_to
),
app.acctd_amount_applied_to)+
nvl(app.acctd_earned_discount_taken,0) +
nvl(app.acctd_unearned_discount_taken,0))
,
( app.amount_applied +
nvl(app.earned_discount_taken,0) +
nvl(app.unearned_discount_taken,0) )
) *
decode
( ps.class, 'CM',
decode(app.application_type, 'CM', -1, 1), 1 )
), 0) amount_due_remaining_inv, /* Bug Fix 3846352 */
ps.trx_number ,
ps.amount_adjusted,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date gl_date_inv,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1) exchange_rate
from ar_payment_schedules_all ps,
ar_receivable_applications_all app
where ps.gl_date <= :as_of_date
and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and (app.applied_payment_schedule_id = ps.payment_schedule_id
OR
app.payment_schedule_id = ps.payment_schedule_id)
and app.status = 'APP'
and nvl( app.confirmed_flag, 'Y' ) = 'Y'
and app.gl_date > :as_of_date AND NVL(ps.ORG_ID, :p_reporting_entity_id )
= :p_reporting_entity_id AND NVL(app.ORG_ID, :p_reporting_entity_id ) = :p
_reporting_entity_id group by
ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.class ,
ps.due_date,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1),
ps.payment_schedule_id
UNION ALL
select ps.customer_id,
ps.customer_site_use_id ,
ps.customer_trx_id,
ps.payment_schedule_id,
ps.class class_inv,
nvl(ct.primary_salesrep_id, -3) primary_salesrep_id,
ps.due_date due_date_inv,
decode( :c_convert_flag, 'Y',
ps.acctd_amount_due_remaining,
ps.amount_due_remaining) amt_due_remaining_inv,
ps.trx_number,
ps.amount_adjusted ,
ps.amount_applied ,
ps.amount_credited ,
ps.amount_adjusted_pending,
ps.gl_date ,
ps.cust_trx_type_id,
ps.org_id,
ps.invoice_currency_code,
nvl(ps.exchange_rate, 1) exchange_rate
from ar_payment_schedules_all ps,
ra_customer_trx_all ct
where ps.gl_date <= :as_of_date
-- and ps.customer_id > 0
and ps.gl_date_closed > :as_of_date
and decode(upper(:p_in_currency),NULL, ps.invoice_currency_code,
upper(:p_in_currency)) = ps.invoice_currency_code
and ps.customer_trx_id = ct.customer_trx_id
AND NVL(ps.ORG_ID, :p_reporting_entity_id ) = :p_reporting_entity_id AND
NVL(ct.ORG_ID, :p_reporting_entity_id ) = :p_reporting_entity_id ) a
group by a.customer_id,
a.customer_site_use_id ,
a.customer_trx_id,
a.payment_schedule_id,
a.class ,
a.due_date ,
a.trx_number,
a.amount_adjusted,
a.amount_applied ,
a.amount_credited ,
a.amount_adjusted_pending,
a.gl_date ,
a.cust_trx_type_id,
a.org_id,
a.invoice_currency_code,
a.exchange_rate) ps, ar_dispute_history dh,ra_cust_trx_line_gl_dist_all g
ld
,gl_code_combinations c
,hz_cust_accounts cust_acct
,hz_parties party where ps.payment_schedule_id = dh.payment_sc
hedule_id (+) and : as_of_date >= nvl ( dh.start_date (+) , to_date ( : as_of_da
te ) ) and : as_of_date < nvl ( dh.end_date (+) , to_date ( : as_of_date ) + 1 )
and gld.account_class = 'REC' and gld.latest_rec_flag = 'Y' and gld.code_combin
ation_id = c.code_combination_id and cust_acct.party_id = party.party_id and ps.
customer_id = cust_acct.cust_account_id and ps.customer_trx_id = gld.customer_tr
x_id AND NVL ( gld.ORG_ID , : p_reporting_entity_id ) = : p_reporting_entity_id
UNION ALL select /*+ ORDERED INDEX (app AR_RECEIVABLE_APPLICATIONS_N1) */
substrb(party.party_name,1,50) short_cust_name,
nvl(cust_acct.cust_account_id, -999) cust_id,
cust_acct.account_number cust_no,decode(upper(:sort_option),'T',initcap
(:lp_payment_meaning), NULL),initcap(:lp_payment_meaning), ps.payment_schedule
_id,
DECODE(app.applied_payment_schedule_id,-4,'CLAIM',ps.class),
ps.due_date,
decode
( :convert_flag, 'Y', nvl(-sum(app.acctd_amount_applied_from),0),
nvl(-sum(app.amount_applied),0)
),
ceil(to_date(:as_of_date) - ps.due_date),
ps.amount_adjusted,
ps.amount_applied,
ps.amount_credited,
ps.gl_date,
decode(ps.invoice_currency_code, :functional_currency, NULL,
decode(ps.exchange_rate, NULL, '*', NULL)),
nvl(ps.exchange_rate, 1), arpt_sql_func_util.bucket_function(:bucket_li
ne_type_0,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_0,:bucket_days_to_0,
ps.due_date,:bucket_category,to_date(:as_of_date)) b0,
arpt_sql_func_util.bucket_function(:bucket_line_type_1,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_1,:bucket_days_to_1,
ps.due_date,:bucket_category,to_date(:as_of_date)) b1,
arpt_sql_func_util.bucket_function(:bucket_line_type_2,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_2,:bucket_days_to_2,
ps.due_date,:bucket_category,to_date(:as_of_date)) b2,
arpt_sql_func_util.bucket_function(:bucket_line_type_3,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_3,:bucket_days_to_3,
ps.due_date,:bucket_category,to_date(:as_of_date)) b3,
arpt_sql_func_util.bucket_function(:bucket_line_type_4,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_4,:bucket_days_to_4,
ps.due_date,:bucket_category,to_date(:as_of_date)) b4,
arpt_sql_func_util.bucket_function(:bucket_line_type_5,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_5,:bucket_days_to_5,
ps.due_date,:bucket_category,to_date(:as_of_date)) b5,
arpt_sql_func_util.bucket_function(:bucket_line_type_6,
ps.amount_in_dispute,ps.amount_adjusted_pending,
:bucket_days_from_6,:bucket_days_to_6,
ps.due_date,:bucket_category,to_date(:as_of_date)) b6,c.SEGMENT
1,decode(upper(:sort_option),'T','-1',NULL) inv_tid,initcap(:lp_payment_meaning)
from ar_payment_schedules_all ps,
ar_receivable_applications_all app,
hz_cust_accounts cust_acct,
hz_parties party,
gl_code_combinations c where app.gl_date <= to_date ( : as_o
f_date ) and ps.customer_id = cust_acct.cust_account_id (+) and cust_acct.party_
id = party.party_id (+) and ps.cash_receipt_id = app.cash_receipt_id and app.cod
e_combination_id = c.code_combination_id and app.status in ( 'ACC' , 'UNAPP' , '
UNID' , 'OTHER ACC' ) and nvl ( app.confirmed_flag , 'Y' ) = 'Y' and ps.gl_date_
closed > to_date ( : as_of_date ) and ( ( app.reversal_gl_date is not null AND p
s.gl_date <= to_date ( : as_of_date ) ) OR app.reversal_gl_date is null ) and de
code ( upper ( : p_in_currency ) , NULL , ps.invoice_currency_code , upper ( : p
_in_currency ) ) = ps.invoice_currency_code and nvl ( ps.receipt_confirmed_flag
, 'Y' ) = 'Y' AND NVL ( ps.ORG_ID , : p_reporting_entity_id ) = : p_reporting_en
tity_id AND NVL ( app.ORG_ID , : p_reporting_entity_id ) = : p_reporting_entity_
id GROUP BY party.party_name , cust_acct.account_number , cust_acct.cust_account
_id , decode ( upper ( : sort_option ) , 'T' , initcap ( : lp_payment_meaning )
, NULL ) , initcap ( : lp_payment_meaning ) , ps.payment_schedule_id , ps.due_da
te , ps.amount_adjusted , ps.amount_applied , ps.amount_credited , ps.gl_date ,
ps.amount_in_dispute , ps.amount_adjusted_pending , ps.invoice_currency_code , p
s.exchange_rate , DECODE ( app.applied_payment_schedule_id , - 4 , 'CLAIM' , ps.
class ) , c.code_combination_id , c.SEGMENT1 , decode ( app.status , 'UNID' , 'U
NID' , 'OTHER ACC' , 'OTHER ACC' , 'UNAPP' ) , decode ( upper ( : sort_option )
, 'T' , '-1' , NULL ) , initcap ( : lp_payment_meaning ) ORDER BY 24 ASC,4 ASC,2
5 ASC,1 ASC,2 ASC,3 ASC
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.01 0.01 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1223 1.46 4.29 762 26477 0 2446
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1226 1.47 4.31 762 26477 0 2446
Misses in library cache during parse: 1
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (ORDER BY)
0 UNION-ALL
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 VIEW
0 UNION-ALL
0 SORT (GROUP BY)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_ADJUSTMENTS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_ADJUSTMENTS_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN)
OF 'AR_PAYMENT_SCHEDULES_U1' (UNIQUE)
0 SORT (GROUP BY)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_RECEIVABLE_APPLICATIONS_ALL'
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY
INDEX ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN)
OF 'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N6' (NON-UNIQUE)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX
ROWID) OF 'RA_CUSTOMER_TRX_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'RA_CUSTOMER_TRX_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID)
OF 'AR_DISPUTE_HISTORY'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_DISPUTE_HISTORY_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'RA_CUST_TRX_LINE_GL_DIST_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'RA_CUST_TRX_LINE_GL_DIST_N6' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_PARTIES_U1' (UNIQUE)
0 SORT (GROUP BY)
0 NESTED LOOPS
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_PAYMENT_SCHEDULES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_PAYMENT_SCHEDULES_N9' (NON-UNIQUE)
0 INLIST ITERATOR
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID)
OF 'AR_RECEIVABLE_APPLICATIONS_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_RECEIVABLE_APPLICATIONS_N1' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_PARTIES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'GL_CODE_COMBINATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'GL_CODE_COMBINATIONS_U1' (UNIQUE)
********************************************************************************
select rpad ( 'a' , 50 , '-' ) cust_name_inv , rpad ( 'a' , 30 , '-' ) cust_no_
inv , rpad ( 'a' , 4000 , '-' ) sort_field1_inv , rpad ( 'a' , 4000 , '-' ) sort
_field2_inv , 0 inv_tid_inv , 0 contact_site_id_inv , rpad ( 'a' , 60 , '-' ) cu
st_state_inv , rpad ( 'a' , 60 , '-' ) cust_city_inv , 0 addr_id_inv , 0 cust_id
_inv , 0 payment_sched_id_inv , rpad ( 'a' , 20 , '-' ) class_inv , sysdate due_
date_inv , 0 amt_due_remaining_inv , rpad ( 'a' , 30 , '-' ) invnum , 0 days_pas
t_due , 0 amount_adjusted_inv , 0 amount_applied_inv , 0 amount_credited_inv , s
ysdate gl_date_inv , 'x' data_converted_inv , 0 ps_exchange_rate_inv , 0 b0_inv
, 0 b1_inv , 0 b2_inv , 0 b3_inv , 0 b4_inv , 0 b5_inv , 0 b6_inv , rpad ( 'a' ,
25 , '-' ) company_inv , rpad ( 'a' , 30 , '-' ) cons_billing_number , rpad ( '
a' , 32 , '-' ) invoice_type_inv from dual where 1 = 2 UNION ALL select rpa
d('a',50,'-') cust_name_inv,
rpad('a',30,'-') cust_no_inv,
rpad('a',4000,'-') sort_field1_inv,
rpad('a',4000,'-') sort_field2_inv,
0 inv_tid_inv,
0 contact_site_id_inv,
rpad('a',60,'-') cust_state_inv,
rpad('a',60,'-') cust_city_inv,
0 addr_id_inv,
0 cust_id_inv,
0 payment_sched_id_inv,
rpad('a',20,'-') class_inv,
sysdate due_date_inv,
0 amt_due_remaining_inv,
rpad('a',30,'-') invnum,
0 days_past_due,
0 amount_adjusted_inv,
0 amount_applied_inv,
0 amount_credited_inv,
sysdate gl_date_inv,
'x' data_converted_inv,
0 ps_exchange_rate_inv,
0 b0_inv,
0 b1_inv,
0 b2_inv,
0 b3_inv,
0 b4_inv,
0 b5_inv,
0 b6_inv,
rpad('a',25,'-') company_inv,
rpad('a',30,'-') cons_billing_number,
rpad('a',32,'-') invoice_type_inv
from dual where 1=2
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 UNION-ALL
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
select rpad ( 'a' , 50 , '-' ) cust_name_inv , rpad ( 'a' , 30 , '-' )
cust_no_inv , rpad ( 'a' , 4000 , '-' ) sort_field1_inv , rpad ( 'a' , 4000
, '-' ) sort_field2_inv , 0 inv_tid_inv , 0 contact_site_id_inv , rpad (
'a' , 60 , '-' ) cust_state_inv , rpad ( 'a' , 60 , '-' ) cust_city_inv , 0
addr_id_inv , 0 cust_id_inv , 0 payment_sched_id_inv , rpad ( 'a' , 20 ,
'-' ) class_inv , sysdate due_date_inv , 0 amt_due_remaining_inv , rpad (
'a' , 30 , '-' ) invnum , 0 days_past_due , 0 amount_adjusted_inv , 0
amount_applied_inv , 0 amount_credited_inv , sysdate gl_date_inv , 'x'
data_converted_inv , 0 ps_exchange_rate_inv , 0 b0_inv , 0 b1_inv , 0
b2_inv , 0 b3_inv , 0 b4_inv , 0 b5_inv , 0 b6_inv , rpad ( 'a' , 25 , '-' )
company_inv , rpad ( 'a' , 30 , '-' ) cons_billing_number , rpad ( 'a' ,
32 , '-' ) invoice_type_inv
from
dual where 1 = 2

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
select rpad ( 'a' , 50 , '-' ) cust_name_inv , rpad ( 'a' , 30 , '-' ) cust_no_i
nv , rpad ( 'a' , 4000 , '-' ) sort_field1_inv , rpad ( 'a' , 4000 , '-' ) sort_
field2_inv , 0 inv_tid_inv , 0 contact_site_id_inv , rpad ( 'a' , 60 , '-' ) cus
t_state_inv , rpad ( 'a' , 60 , '-' ) cust_city_inv , 0 addr_id_inv , 0 cust_id_
inv , 0 payment_sched_id_inv , rpad ( 'a' , 20 , '-' ) class_inv , sysdate due_d
ate_inv , 0 amt_due_remaining_inv , rpad ( 'a' , 30 , '-' ) invnum , 0 days_past
_due , 0 amount_adjusted_inv , 0 amount_applied_inv , 0 amount_credited_inv , sy
sdate gl_date_inv , 'x' data_converted_inv , 0 ps_exchange_rate_inv , 0 b0_inv ,
0 b1_inv , 0 b2_inv , 0 b3_inv , 0 b4_inv , 0 b5_inv , 0 b6_inv , rpad ( 'a' ,
25 , '-' ) company_inv , rpad ( 'a' , 30 , '-' ) cons_billing_number , rpad ( 'a
' , 32 , '-' ) invoice_type_inv from dual where 1 = 2 UNION ALL select rpad('
a',50,'-') cust_name_inv,
rpad('a',30,'-') cust_no_inv,
rpad('a',4000,'-') sort_field1_inv,
rpad('a',4000,'-') sort_field2_inv,
0 inv_tid_inv,
0 contact_site_id_inv,
rpad('a',60,'-') cust_state_inv,
rpad('a',60,'-') cust_city_inv,
0 addr_id_inv,
0 cust_id_inv,
0 payment_sched_id_inv,
rpad('a',20,'-') class_inv,
sysdate due_date_inv,
0 amt_due_remaining_inv,
rpad('a',30,'-') invnum,
0 days_past_due,
0 amount_adjusted_inv,
0 amount_applied_inv,
0 amount_credited_inv,
sysdate gl_date_inv,
'x' data_converted_inv,
0 ps_exchange_rate_inv,
0 b0_inv,
0 b1_inv,
0 b2_inv,
0 b3_inv,
0 b4_inv,
0 b5_inv,
0 b6_inv,
rpad('a',25,'-') company_inv,
rpad('a',30,'-') cons_billing_number,
rpad('a',32,'-') invoice_type_inv
from dual where 1 = 2 ORDER BY 30 ASC,3 ASC,5 ASC,1 ASC,2 ASC,10 ASC,9
ASC,15 ASC
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 2 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (ORDER BY)
0 UNION-ALL
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
0 FILTER
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS')
FROM
DUAL WHERE ROWNUM=1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
1 COUNT STOPKEY
1 TABLE ACCESS FULL DUAL

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 COUNT (STOPKEY)
1 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
SELECT DAYS_START,DAYS_TO,REPORT_HEADING1,REPORT_HEADING2,TYPE
FROM
AR_AGING_BUCKET_LINES LINES,AR_AGING_BUCKETS BUCKETS WHERE
LINES.AGING_BUCKET_ID = BUCKETS.AGING_BUCKET_ID AND
UPPER(BUCKETS.BUCKET_NAME) = UPPER(:b1) AND NVL(BUCKETS.STATUS,'A') = 'A'
ORDER BY LINES.BUCKET_SEQUENCE_NUM

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.01 0.01 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 8 0.00 0.04 4 26 0 7
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 10 0.01 0.06 4 26 0 7
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SORT (ORDER BY)
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF
'AR_AGING_BUCKETS'
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_AGING_BUCKET_LINES_B'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'AR_AGING_BUCKET_LINES_B_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'AR_AGING_BUCKET_LINES_TL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'AR_AGING_BUCKET_LINES_TL_U1' (UNIQUE)
********************************************************************************
SELECT AR_ADJUSTMENTS_S.NEXTVAL
FROM
DUAL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 1 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 1 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 SEQUENCE OF 'AR_ADJUSTMENTS_S'
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
select increment$,minvalue,maxvalue,cycle#,order$,cache,highwater,audit$,
flags
from
seq$ where obj#=:1
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
********************************************************************************
update seq$ set increment$=:2,minvalue=:3,maxvalue=:4,cycle#=:5,order$=:6,
cache=:7,highwater=:8,audit$=:9,flags=:10
where
obj#=:1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 2 3 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 2 3 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------
1 UPDATE
1 INDEX UNIQUE SCAN I_SEQ1 (object id 99)
********************************************************************************
SELECT CP.USER_CONCURRENT_PROGRAM_NAME
FROM
FND_CONCURRENT_PROGRAMS_VL CP,FND_CONCURRENT_REQUESTS CR WHERE
CR.REQUEST_ID = :b1 AND CP.APPLICATION_ID = CR.PROGRAM_APPLICATION_ID AND
CP.CONCURRENT_PROGRAM_ID = CR.CONCURRENT_PROGRAM_ID AND
CP.CONCURRENT_PROGRAM_NAME = :b2

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 7 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 7 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 NESTED LOOPS
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS_TL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_TL_U1' (UNIQUE)
********************************************************************************
SELECT NAME
FROM
RA_CUST_TRX_TYPES_ALL WHERE CUST_TRX_TYPE_ID = :B2 AND ORG_ID = :B1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 6 0 3
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 7 0.00 0.00 0 6 0 3
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'RA_CUST_TRX_TYPES_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'RA_CUST_TRX_TYPES_U1'
(UNIQUE)
********************************************************************************
SELECT DECODE(:B8 , 'DISPUTE_ONLY',DECODE(NVL(:B3 ,0),0,0,1), 'PENDADJ_ONLY',
DECODE(NVL(:B2 ,0),0,0,1), 'DISPUTE_PENDADJ',DECODE(NVL(:B3 ,0), 0,
DECODE(NVL(:B2 ,0),0,0,1), 1), DECODE( GREATEST(:B7 , CEIL(:B5 -:B4 )),
LEAST(:B6 , CEIL(:B5 -:B4 )),1, 0) * DECODE(NVL(:B3 ,0), 0, 1, DECODE(:B1 ,
'DISPUTE_ONLY', 0, 'DISPUTE_PENDADJ', 0, 1)) * DECODE(NVL(:B2 ,0), 0, 1,
DECODE(:B1 , 'PENDADJ_ONLY', 0, 'DISPUTE_PENDADJ', 0, 1)))
FROM
DUAL

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 17122 0.34 0.27 0 0 0 0
Fetch 17122 0.41 0.28 0 51366 0 17122
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 34245 0.76 0.55 0 51366 0 17122
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'DUAL'
********************************************************************************
select CURRENCY_CODE, CURRENCY_FLAG, nvl(PRECISION,-1), SYMBOL,
nvl(EXTENDED_PRECISION,-1), TO_CHAR(MINIMUM_ACCOUNTABLE_UNIT)
FROM
FND_CURRENCIES

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 15 0 234
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 15 0 234
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
234 TABLE ACCESS FULL FND_CURRENCIES

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
234 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'FND_CURRENCIES'
********************************************************************************
SELECT SITE_USES.SITE_USE_ID,RTRIM(RPAD(LOC.STATE,2)),RTRIM(RPAD(LOC.CITY,15))
,RTRIM(RPAD(LOC.CITY,12)) || DECODE(LOC.CITY, NULL , NULL ,DECODE(LOC.STATE,
NULL , NULL ,', ')) || RTRIM(RPAD(LOC.STATE,2))
FROM
HZ_CUST_ACCT_SITES_ALL ACCT_SITE,HZ_PARTY_SITES PARTY_SITE,HZ_LOCATIONS LOC,
HZ_CUST_SITE_USES_ALL SITE_USES,HZ_CUST_ACCOUNTS CUST_ACCT WHERE
SITE_USES.SITE_USE_CODE = 'BILL_TO' AND CUST_ACCT.CUST_ACCOUNT_ID = :b1
AND SITE_USES.CUST_ACCT_SITE_ID = ACCT_SITE.CUST_ACCT_SITE_ID AND
ACCT_SITE.PARTY_SITE_ID = PARTY_SITE.PARTY_SITE_ID AND LOC.LOCATION_ID =
PARTY_SITE.LOCATION_ID AND NVL(SITE_USES.STATUS,'A') = 'A' AND
CUST_ACCT.CUST_ACCOUNT_ID = ACCT_SITE.CUST_ACCOUNT_ID AND ACCT_SITE.ORG_ID
= :b2

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.01 0 0 0 0
Execute 616 0.02 0.02 0 0 0 0
Fetch 616 0.05 0.20 25 8661 0 615
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1233 0.07 0.23 25 8661 0 615
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_SITE_USES_ALL'
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 NESTED LOOPS
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNTS_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCT_SITES_ALL'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HZ_CUST_ACCT_SITES_N2' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTY_SITES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_PARTY_SITES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_LOCATIONS'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_LOCATIONS_U1' (UNIQUE)
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HZ_CUST_SITE_USES_N1' (NON-UNIQUE)
********************************************************************************
SELECT RTRIM(RPAD(SUBSTRB(PARTY.PERSON_FIRST_NAME,1,40),1)) ||
DECODE(SUBSTRB(PARTY.PERSON_FIRST_NAME,1,40), NULL , NULL ,
DECODE(SUBSTRB(PARTY.PERSON_LAST_NAME,1,50), NULL , NULL ,'. ')) ||
RTRIM(RPAD(SUBSTRB(PARTY.PERSON_LAST_NAME,1,50),17)) ,
CONT_POINT.PHONE_AREA_CODE || ' ' ||
RTRIM(RPAD(DECODE(CONT_POINT.CONTACT_POINT_TYPE,'TLX',
CONT_POINT.TELEX_NUMBER,CONT_POINT.PHONE_NUMBER),15)) ,
DECODE(SUBSTRB(PARTY.PERSON_FIRST_NAME,1,40), NULL ,
DECODE(SUBSTRB(PERSON_LAST_NAME,1,50), NULL ,
DECODE(CONT_POINT.PHONE_AREA_CODE, NULL , NULL ,'Y'),
DECODE(DECODE(CONT_POINT.CONTACT_POINT_TYPE,'TLX',CONT_POINT.TELEX_NUMBER,
CONT_POINT.PHONE_NUMBER), NULL , NULL ,'Y'),'Y'),'Y')
FROM
HZ_CUST_ACCOUNT_ROLES ACCT_ROLE,HZ_PARTIES PARTY,HZ_RELATIONSHIPS REL,
HZ_CONTACT_POINTS CONT_POINT,HZ_CUST_ACCOUNT_ROLES CAR,
HZ_CUST_SITE_USES_ALL SITE_USES WHERE SITE_USES.SITE_USE_ID = :b1 AND
SITE_USES.CUST_ACCT_SITE_ID = ACCT_ROLE.CUST_ACCT_SITE_ID (+) AND
ACCT_ROLE.PARTY_ID = REL.PARTY_ID (+) AND REL.SUBJECT_TABLE_NAME (+) =
'HZ_PARTIES' AND REL.OBJECT_TABLE_NAME (+) = 'HZ_PARTIES' AND
REL.DIRECTIONAL_FLAG (+) = 'F' AND ACCT_ROLE.ROLE_TYPE = 'CONTACT' AND
REL.SUBJECT_ID = PARTY.PARTY_ID (+) AND ACCT_ROLE.CUST_ACCOUNT_ROLE_ID =
CAR.CUST_ACCOUNT_ROLE_ID (+) AND CAR.PARTY_ID =
CONT_POINT.OWNER_TABLE_ID (+) AND CONT_POINT.OWNER_TABLE_NAME (+) =
'HZ_PARTIES' AND NVL(CONT_POINT.CONTACT_POINT_TYPE (+) ,'N') NOT IN (
'EDI','EMAIL','WEB' ) AND NVL(NVL(CONT_POINT.PHONE_LINE_TYPE (+) ,
CONT_POINT.CONTACT_POINT_TYPE (+) ),'GEN') = 'GEN' AND
NVL(ACCT_ROLE.STATUS,'A') = 'A' AND NVL(CONT_POINT.STATUS (+) ,'A') = 'A'
AND ROWNUM = 1

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.03 0 0 0 0
Execute 616 0.02 0.02 0 0 0 0
Fetch 616 0.07 0.72 239 6575 0 273
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1233 0.10 0.77 239 6575 0 273
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
0 COUNT (STOPKEY)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS (OUTER)
0 NESTED LOOPS
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_SITE_USES_ALL'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_SITE_USES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNT_ROLES'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HZ_CUST_ACCOUNT_ROLES_N3' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CUST_ACCOUNT_ROLES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'HZ_CUST_ACCOUNT_ROLES_U1' (UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_RELATIONSHIPS'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HZ_RELATIONSHIPS_N3' (NON-UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_PARTIES'
0 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'HZ_PARTIES_U1'
(UNIQUE)
0 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'HZ_CONTACT_POINTS'
0 INDEX GOAL: ANALYZED (RANGE SCAN) OF
'HZ_CONTACT_POINTS_N6' (NON-UNIQUE)
********************************************************************************
select request_id
from
fnd_concurrent_requests where request_id=:r
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 3 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 3 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
1 INDEX UNIQUE SCAN FND_CONCURRENT_REQUESTS_U1 (object id 34571)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
********************************************************************************
SELECT R.Hold_Flag, R.Single_Thread_Flag, R.Priority_Request_ID,
R.Parent_Request_ID, R.Language_ID, R.Req_Information, R.Conc_Login_Id,
R.Responsibility_ID, R.Responsibility_Application_ID,
R.Program_Application_ID, R.Concurrent_Program_ID, R.Requested_By,
R.Number_Of_Copies, R.Save_Output_Flag, R.Printer, P.Print_Flag,
A.Application_Short_Name, R.Enable_Trace, P.Concurrent_Program_Name,
E.Application_ID, U.User_Name, TO_CHAR(R.Requested_Start_Date, 'DD-MON-YYYY
HH24:MI:SS'), R.Security_Group_Id
FROM
Fnd_Concurrent_Requests R, Fnd_Concurrent_Programs P, Fnd_User U,
Fnd_Executables E, Fnd_Application A WHERE ( E.Application_ID =
P.EXECUTABLE_APPLICATION_ID and E.EXECUTABLE_ID =
P.EXECUTABLE_ID ) And ( P.Concurrent_Program_ID = R.Concurrent_Program_Id
and P.Application_ID = R.Program_application_ID ) And A.Application_ID =
R.Program_Application_ID And U.User_ID = R.Requested_BY And R.Request_Id
= :req_id

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 13 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 13 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
Rows Row Source Operation
------- ---------------------------------------------------
1 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS
1 TABLE ACCESS BY INDEX ROWID FND_CONCURRENT_REQUESTS
1 INDEX UNIQUE SCAN FND_CONCURRENT_REQUESTS_U1 (object id 34571)
1 TABLE ACCESS BY INDEX ROWID FND_APPLICATION
1 INDEX UNIQUE SCAN FND_APPLICATION_U1 (object id 33992)
1 TABLE ACCESS BY INDEX ROWID FND_USER
1 INDEX UNIQUE SCAN FND_USER_U1 (object id 34712)
1 TABLE ACCESS BY INDEX ROWID FND_CONCURRENT_PROGRAMS
1 INDEX UNIQUE SCAN FND_CONCURRENT_PROGRAMS_U1 (object id 34377)
1 INDEX UNIQUE SCAN FND_EXECUTABLES_U1 (object id 34458)

Rows Execution Plan


------- ---------------------------------------------------
0 SELECT STATEMENT GOAL: CHOOSE
1 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_REQUESTS'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_REQUESTS_U1' (UNIQUE)
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_APPLICATION'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_APPLICATION_U1' (UNIQUE)
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_USER'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_USER_U1'
(UNIQUE)
1 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'FND_CONCURRENT_PROGRAMS'
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF
'FND_CONCURRENT_PROGRAMS_U1' (UNIQUE)
1 INDEX GOAL: ANALYZED (UNIQUE SCAN) OF 'FND_EXECUTABLES_U1'
(UNIQUE)
********************************************************************************
declare dummy boolean;begin fnd_profile.get_specific(:name, :userid, :respid,
:applid, :val, dummy);end;

call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 2 0.00 0.00 0 0 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS)
********************************************************************************
ALTER SESSION SET TRACEFILE_IDENTIFIER='RICARDODELGA_CR714660'
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 1 0.00 0.00 0 0 0 0
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 173 (APPS) (recursive depth: 1)

********************************************************************************
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 113 0.22 0.53 0 2 0 0
Execute 1337 0.18 0.29 1 532 31 30
Fetch 2537 1.59 5.27 1030 42495 1 3900
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3987 2.00 6.10 1031 43029 32 3930
Misses in library cache during parse: 44
Misses in library cache during execute: 1
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 19 0.00 0.00
SQL*Net message from client 19 0.00 0.00
SQL*Net more data to client 7 0.00 0.00

OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 275 0.08 0.17 0 79 0 0
Execute 20734 0.47 0.44 0 193 37 9
Fetch 21590 0.51 0.58 72 65638 0 21278
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 42599 1.07 1.20 72 65910 37 21287
Misses in library cache during parse: 104
Misses in library cache during execute: 1
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.00 0.00
193 user SQL statements in session.
201 internal SQL statements in session.
394 SQL statements in session.
98 statements EXPLAINed in this session.
********************************************************************************
Trace file: oaprep_ora_29825_APPS.trc
Trace file compatibility: 9.02.00
Sort options: default
1 session in tracefile.
193 user SQL statements in trace file.
201 internal SQL statements in trace file.
394 SQL statements in trace file.
150 unique SQL statements in trace file.
98 SQL statements EXPLAINed using schema:
APPS.prof$plan_table
Default table was used.
Table was created.
Table was dropped.
54897 lines in trace file.

S-ar putea să vă placă și