This discussion is archived
5 Replies Latest reply: Jul 22, 2013 4:36 AM by Purvesh K RSS

MERGE Statement Taking Different Execution Path At Client Site vs Local

sridhar_ Newbie
Currently Being Moderated

As part of a Extract, Transform and Load, a table get updated/inserted during load step using MERGE statement. This MERGE statement goes thru various fiscal years and for each fiscal year, processes individual accounting periods. So the Java code issues series of MERGE statements (one after another, for each FY and accounting period combination). The load method for this table is tried and tested for many years now and have performed reasonably well, given the volume of records it has to handle.

In the local mock install (and dev) environment, this step took around 13 hours to complete, whereas the same step against the same volume data is running for more than 7 days at client site.

 

Files that are attached.

 

Client init ora

 

Local init.ora

 

Client AWR report

 

Local AWR report

 

Client Explain Plan Output

 

Local Explain Plan Output

 

Sample MERGE SQLs

 

Here are few things:

1. On comparing the execution path, in the local environment it was using Hash Join and at client site it is using Nested Loop.

2. Both the environments have temp table space set as auto increment.

3. Though this MERGE statement has taken 99% of the memory both local and at client site, the execution time was much higher at client site.

4. SGA and PGA memory allocation seems ok.

5. Though the SQL is running much longer, the CPU is 96% idle. So client thinks this a problem area. But I do not think so.

6. Client's memory allocations:

Total Memory allocated = 64GB

Memory allocated to the data warehouse instance = 8GB

SGA (db_cache_size) = 5268045824 = 4.9GB

PGA (pga_aggregate_target) = 2147483648 = 2GB

CPUs -  16,  Cores – 8, Sockets - 2

 

7.Mock Install environment (local) memory allocations:

Total Memory – 126GB

Memory allocated to DW instance (Memory Target) = 5GB

CPUs -  32,  Cores – 16, Sockets - 2

Total time taken to run the load step for this table = 13 hours


8. Just in case if the 126GB in the mock install environment stands out, we have another environment - Dev Environment memory allocations where the total memory is at 8GB. Even here the total run time was 13 hours. So nothing to do with total memory on the box.

Total Memory - 8GB

Memory allocated to DW instance (Memory Target) = 4GB

CPUs – 4; Cores – 4,  Sockets –2

Total time taken to run the load step for this table = 13 hours

 

 

---Client Init ORA------

$ view initxxxinfo.ora

xxxinfo.__db_cache_size=5268045824

xxxinfo.__java_pool_size=16777216

xxxinfo.__large_pool_size=16777216

xxxinfo.__oracle_base='/u01/apps/oracle'#ORACLE_BASE set from environment

xxxinfo.__pga_aggregate_target=2147483648

xxxinfo.__sga_target=6442450944

xxxinfo.__shared_io_pool_size=0

xxxinfo.__shared_pool_size=1073741824

xxxinfo.__strexxx_pool_size=16777216

*.audit_file_dest='/u01/apps/oracle/admin/xxxinfo/adump'

*.audit_trail='db'

*.compatible='11.2.0.0.0'

*.control_files='/u02/oradata/xxxinfo/control01.ctl','/u02/oradata/xxxinfo/control02.ctl'

*.cursor_sharing=exact

*.db_block_size=8192

*.db_domain=''

*.db_name='xxxinfo'

*.diagnostic_dest='/u01/apps/oracle'

*.dispatchers='(PROTOCOL=TCP) (SERVICE=xxxinfoXDB)'

*.open_cursors=2000

*.pga_aggregate_target=2147483648

*.processes=500

*.sessions=555

*.sga_target=6442450944

*.undo_tablespace='UNDOTBS1'

*._b_tree_bitmap_plans=FALSE

 

 

~

 

 

--- Local Init ORA ------

idallmck.__db_cache_size=1291845632

idallmck.__java_pool_size=16777216

idallmck.__large_pool_size=16777216

idallmck.__oracle_base='/db/oracle/112030'#ORACLE_BASE set from environment

idallmck.__pga_aggregate_target=2801795072

idallmck.__sga_target=2566914048

idallmck.__shared_io_pool_size=0

idallmck.__shared_pool_size=1157627904

idallmck.__streams_pool_size=16777216

*.audit_file_dest='/db/oracle/112030/admin/idallmck/adump'

*.audit_trail='db'

*.compatible='11.2.0.0.0'

*.control_files='/infxxx/oradata/idallmck/idallmck/control01.ctl','/infxxx/oradata/idallmck/idallmck/control02.ctl'

*.db_block_size=8192

*.db_domain=''

*.db_name='idallmck'

*.diagnostic_dest='/db/oracle/112030'

*.dispatchers='(PROTOCOL=TCP) (SERVICE=idallmckXDB)'

*.memory_target=5368709120

*.open_cursors=4000

*.processes=500

*.sessions=555

*.undo_tablespace='UNDOTBS1'

 

Client Explain Plan Output

 

-----------------------------------------------------------------------------------------------------------

| Id  | Operation                      | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |

-----------------------------------------------------------------------------------------------------------

|   0 | MERGE STATEMENT                |                  | 61033 |    34M|       | 45031   (1)| 00:09:01 |

|   1 |  MERGE                         | SMRY_BALANCE     |       |       |       |            |          |

|   2 |   VIEW                         |                  |       |       |       |            |          |

|*  3 |    HASH JOIN OUTER             |                  | 61033 |    21M|    11M| 45031   (1)| 00:09:01 |

|*  4 |     TABLE ACCESS FULL          | SMRY_LDGRC       | 61033 |    10M|       | 33983   (1)| 00:06:48 |

|   5 |     TABLE ACCESS BY INDEX ROWID| SMRY_BALANCE     |   221K|    40M|       |  8350   (1)| 00:01:41 |

|*  6 |      INDEX RANGE SCAN          | SMRY_BALANCE_NU1 |   224K|       |       |  1221   (1)| 00:00:15 |

 

 

---Following where collected before gathering the stats for this table. So I believe COST is 0.----

Plan hash value: 2238653897

 

---------------------------------------------------------------------------------------------------

| Id  | Operation                      | Name             | Rows  | Bytes | Cost (%CPU)| Time     |

---------------------------------------------------------------------------------------------------

|   0 | MERGE STATEMENT                |                  |     1 |   819 |     0   (0)| 00:00:01 |

|   1 |  MERGE                         | SMRY_BALANCE     |       |       |            |          |

|   2 |   VIEW                         |                  |       |       |            |          |

|   3 |    NESTED LOOPS OUTER          |                  |     1 |   766 |     0   (0)| 00:00:01 |

|*  4 |     TABLE ACCESS BY INDEX ROWID| SMRY_LDGRC       |     1 |   338 |     0   (0)| 00:00:01 |

|*  5 |      INDEX RANGE SCAN          | SMRY_LDGRC_NU1   |     1 |       |     0   (0)| 00:00:01 |

|*  6 |     TABLE ACCESS BY INDEX ROWID| SMRY_BALANCE     |     1 |   428 |     0   (0)| 00:00:01 |

|*  7 |      INDEX RANGE SCAN          | SMRY_BALANCE_NU1 |     1 |       |     0   (0)| 00:00:01 |

---------------------------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

 

   4 - filter("APD_ID"=(-64166401950034362))

   5 - access("DW_RUN_ID">0)

   6 - filter("BANK_ID"="SMRY_BALANCE"."BANK_ID"(+) AND

              "TASKO_ID"="SMRY_BALANCE"."TASKO_ID"(+) AND "TASK_ID"="SMRY_BALANCE"."TASK_ID"(+) AND

              "STAGE_ID"="SMRY_BALANCE"."STAGE_ID"(+) AND "RSRC_ID"="SMRY_BALANCE"."RSRC_ID"(+) AND

              "REPT_ID"="SMRY_BALANCE"."REPT_ID"(+) AND "PSCD_ID"="SMRY_BALANCE"."PSCD_ID"(+) AND

              "PROG_ID"="SMRY_BALANCE"."PROG_ID"(+) AND "ORG_ID"="SMRY_BALANCE"."ORG_ID"(+) AND

              "OBJ_ID"="SMRY_BALANCE"."OBJ_ID"(+) AND "FNDG_ID"="SMRY_BALANCE"."FNDG_ID"(+) AND

              "FUND_ID"="SMRY_BALANCE"."FUND_ID"(+) AND "FUNC_ID"="SMRY_BALANCE"."FUNC_ID"(+) AND

              "FY_ID"="SMRY_BALANCE"."FY_ID"(+) AND "FAPPR_ID"="SMRY_BALANCE"."FAPPR_ID"(+) AND

              "DRSRC_ID"="SMRY_BALANCE"."DRSRC_ID"(+) AND "DOBJ_ID"="SMRY_BALANCE"."DOBJ_ID"(+) AND

              "BFY_ID"="SMRY_BALANCE"."BFY_ID"(+) AND "BSA_ID"="SMRY_BALANCE"."BSA_ID"(+) AND

              "APPR_ID"="SMRY_BALANCE"."APPR_ID"(+) AND "ACTV_ID"="SMRY_BALANCE"."ACTV_ID"(+))

   7 - access("SMRY_BALANCE"."APD_ID"(+)=(-64166401950034362))

 

 

Plan hash value: 2238653897

 

---------------------------------------------------------------------------------------------------

| Id  | Operation                      | Name             | Rows  | Bytes | Cost (%CPU)| Time     |

---------------------------------------------------------------------------------------------------

|   0 | MERGE STATEMENT                |                  |     1 |   819 |     0   (0)| 00:00:01 |

|   1 |  MERGE                         | SMRY_BALANCE     |       |       |            |          |

|   2 |   VIEW                         |                  |       |       |            |          |

|   3 |    NESTED LOOPS OUTER          |                  |     1 |   766 |     0   (0)| 00:00:01 |

|*  4 |     TABLE ACCESS BY INDEX ROWID| SMRY_LDGRC       |     1 |   338 |     0   (0)| 00:00:01 |

|*  5 |      INDEX RANGE SCAN          | SMRY_LDGRC_NU1   |     1 |       |     0   (0)| 00:00:01 |

|*  6 |     TABLE ACCESS BY INDEX ROWID| SMRY_BALANCE     |     1 |   428 |     0   (0)| 00:00:01 |

|*  7 |      INDEX RANGE SCAN          | SMRY_BALANCE_NU1 |     1 |       |     0   (0)| 00:00:01 |

---------------------------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

 

   4 - filter("APD_ID"=8878772754558419192)

   5 - access("DW_RUN_ID">0)

   6 - filter("BANK_ID"="SMRY_BALANCE"."BANK_ID"(+) AND

              "TASKO_ID"="SMRY_BALANCE"."TASKO_ID"(+) AND "TASK_ID"="SMRY_BALANCE"."TASK_ID"(+) AND

              "STAGE_ID"="SMRY_BALANCE"."STAGE_ID"(+) AND "RSRC_ID"="SMRY_BALANCE"."RSRC_ID"(+) AND

              "REPT_ID"="SMRY_BALANCE"."REPT_ID"(+) AND "PSCD_ID"="SMRY_BALANCE"."PSCD_ID"(+) AND

              "PROG_ID"="SMRY_BALANCE"."PROG_ID"(+) AND "ORG_ID"="SMRY_BALANCE"."ORG_ID"(+) AND

              "OBJ_ID"="SMRY_BALANCE"."OBJ_ID"(+) AND "FNDG_ID"="SMRY_BALANCE"."FNDG_ID"(+) AND

              "FUND_ID"="SMRY_BALANCE"."FUND_ID"(+) AND "FUNC_ID"="SMRY_BALANCE"."FUNC_ID"(+) AND

              "FY_ID"="SMRY_BALANCE"."FY_ID"(+) AND "FAPPR_ID"="SMRY_BALANCE"."FAPPR_ID"(+) AND

              "DRSRC_ID"="SMRY_BALANCE"."DRSRC_ID"(+) AND "DOBJ_ID"="SMRY_BALANCE"."DOBJ_ID"(+) AND

              "BFY_ID"="SMRY_BALANCE"."BFY_ID"(+) AND "BSA_ID"="SMRY_BALANCE"."BSA_ID"(+) AND

              "APPR_ID"="SMRY_BALANCE"."APPR_ID"(+) AND "ACTV_ID"="SMRY_BALANCE"."ACTV_ID"(+))

   7 - access("SMRY_BALANCE"."APD_ID"(+)=8878772754558419192)

 

 

 

Local Explain Plan Output

Plan hash value: 2251192936

 

-----------------------------------------------------------------------------------------------------------

| Id  | Operation                      | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |

-----------------------------------------------------------------------------------------------------------

|   0 | MERGE STATEMENT                |                  | 61077 |    34M|       | 42765   (1)| 00:08:34 |

|   1 |  MERGE                         | SMRY_BALANCE     |       |       |       |            |          |

|   2 |   VIEW                         |                  |       |       |       |            |          |

|*  3 |    HASH JOIN OUTER             |                  | 61077 |    21M|    11M| 42765   (1)| 00:08:34 |

|*  4 |     TABLE ACCESS FULL          | SMRY_LDGRC       | 61077 |    10M|       | 33845   (1)| 00:06:47 |

|   5 |     TABLE ACCESS BY INDEX ROWID| SMRY_BALANCE     |   175K|    32M|       |  6665   (1)| 00:01:20 |

|*  6 |      INDEX RANGE SCAN          | SMRY_BALANCE_NU1 |   179K|       |       |   972   (1)| 00:00:12 |

-----------------------------------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

 

   3 - access("BANK_ID"="SMRY_BALANCE"."BANK_ID"(+) AND "TASKO_ID"="SMRY_BALANCE"."TASKO_ID"(+)

              AND "TASK_ID"="SMRY_BALANCE"."TASK_ID"(+) AND "STAGE_ID"="SMRY_BALANCE"."STAGE_ID"(+) AND

              "RSRC_ID"="SMRY_BALANCE"."RSRC_ID"(+) AND "REPT_ID"="SMRY_BALANCE"."REPT_ID"(+) AND

              "PSCD_ID"="SMRY_BALANCE"."PSCD_ID"(+) AND "PROG_ID"="SMRY_BALANCE"."PROG_ID"(+) AND

              "ORG_ID"="SMRY_BALANCE"."ORG_ID"(+) AND "OBJ_ID"="SMRY_BALANCE"."OBJ_ID"(+) AND

              "FNDG_ID"="SMRY_BALANCE"."FNDG_ID"(+) AND "FUND_ID"="SMRY_BALANCE"."FUND_ID"(+) AND

              "FUNC_ID"="SMRY_BALANCE"."FUNC_ID"(+) AND "FY_ID"="SMRY_BALANCE"."FY_ID"(+) AND

              "FAPPR_ID"="SMRY_BALANCE"."FAPPR_ID"(+) AND "DRSRC_ID"="SMRY_BALANCE"."DRSRC_ID"(+) AND

              "DOBJ_ID"="SMRY_BALANCE"."DOBJ_ID"(+) AND "BFY_ID"="SMRY_BALANCE"."BFY_ID"(+) AND

              "BSA_ID"="SMRY_BALANCE"."BSA_ID"(+) AND "APPR_ID"="SMRY_BALANCE"."APPR_ID"(+) AND

              "ACTV_ID"="SMRY_BALANCE"."ACTV_ID"(+))

   4 - filter("APD_ID"=(-4978278884472157979) AND "DW_RUN_ID">0)

   6 - access("SMRY_BALANCE"."APD_ID"(+)=(-4978278884472157979))

 

Sample MERGE SQL:

merge into SMRY_BALANCE smry_balance using (select APD_ID, ACTV_ID, APPR_ID, BSA_ID, BFY_ID, DOBJ_ID, DRSRC_ID, FAPPR_ID, FY_ID, FUNC_ID, FUND_ID, FNDG_ID, OBJ_ID, ORG_ID, PROG_ID, PSCD_ID, REPT_ID, RSRC_ID, STAGE_ID, TASK_ID, TASKO_ID, BANK_ID, DEBIT_AM, CREDIT_AM, PSTNG_AM, DW_RUN_ID from SMRY_LDGRC where apd_id = -4978278884472157979 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -4978278884472157979 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT, CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT, DEBIT_ACT_AMT = source_fact.DEBIT_AM, CREDIT_ACT_AMT = source_fact.CREDIT_AM, END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT, NET_ACT_AMT = source_fact.PSTNG_AM, DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID, ACTV_ID, APPR_ID, BSA_ID, BFY_ID, DOBJ_ID, DRSRC_ID, FAPPR_ID, FY_ID, FUNC_ID, FUND_ID, FNDG_ID, OBJ_ID, ORG_ID, PROG_ID, PSCD_ID, REPT_ID, RSRC_ID, STAGE_ID, TASK_ID, TASKO_ID, BANK_ID, DEBIT_BAL_AMT, CREDIT_BAL_AMT, DEBIT_ACT_AMT, CREDIT_ACT_AMT, NET_ACT_AMT, BEG_BAL_AMT, END_BAL_AMT, DW_RUN_ID) VALUES ( source_fact.APD_ID, source_fact.ACTV_ID, source_fact.APPR_ID, source_fact.BSA_ID, source_fact.BFY_ID, source_fact.DOBJ_ID, source_fact.DRSRC_ID, source_fact.FAPPR_ID, source_fact.FY_ID, source_fact.FUNC_ID, source_fact.FUND_ID, source_fact.FNDG_ID, source_fact.OBJ_ID, source_fact.ORG_ID, source_fact.PROG_ID, source_fact.PSCD_ID, source_fact.REPT_ID, source_fact.RSRC_ID, source_fact.STAGE_ID, source_fact.TASK_ID, source_fact.TASKO_ID, source_fact.BANK_ID, source_fact.DEBIT_AM /* DEBIT_ACT_AMT */, source_fact.CREDIT_AM /* CREDIT_ACT_AMT */, source_fact.DEBIT_AM /* DEBIT_BAL_AMT */, source_fact.CREDIT_AM /* CREDIT_BAL_AMT */, source_fact.PSTNG_AM /* NET_ACT_AMT */, 0 /* BEG_BAL_AMT */, source_fact.PSTNG_AM /* END_BAL_AMT */, 1 /* DW_RUN_ID */ )

 

WORKLOAD REPOSITORY report for

 

DB NameDB IdInstanceInst numStartup TimeReleaseRAC
XXXINFO89537570xxxinfo110-Jul-13 00:0711.2.0.3.0NO

 

 

Host NamePlatformCPUsCoresSocketsMemory (GB)
orxxx01.city.xxxtx.codLinux x86 64-bit  16   8   2   62.91

 

Snap IdSnap TimeSessionsCursors/Session
Begin Snap:22012-Jul-13 13:00:1259      2.8
End Snap:36018-Jul-13 08:31:0440     13.3
Elapsed:            8,370.86 (mins)  
DB Time:            8,388.77 (mins)  

 

Report Summary

 

Cache Sizes

 

BeginEnd
Buffer Cache:     4,944M     4,944MStd Block Size:         8K
Shared Pool Size:     1,088M     1,088MLog Buffer:    18,868K

 

Load Profile

 

Per SecondPer TransactionPer ExecPer Call
DB Time(s):               1.0               9.7      0.21      0.35
DB CPU(s):               1.0               9.7      0.21      0.35
Redo size:          32,030.9         311,087.3  
Logical reads:         100,355.4         974,661.7  
Block changes:              51.6             500.9  
Physical reads:               1.9              18.6  
Physical writes:               9.4              91.7  
User calls:               2.9              27.9  
Parses:               1.1              10.2  
Hard parses:               0.1               0.6  
W/A MB processed:               0.0               0.2  
Logons:               0.1               0.6  
Executes:               4.8              46.5  
Rollbacks:               0.0               0.0  
Transactions:               0.1   

 

Instance Efficiency Percentages (Target 100%)

 

Buffer Nowait %:           100.00Redo NoWait %:            99.97
Buffer  Hit   %:           100.00In-memory Sort %:           100.00
Library Hit   %:            98.26Soft Parse %:            94.22
Execute to Parse %:            78.14Latch Hit %:           100.00
Parse CPU to Parse Elapsd %:            91.09% Non-Parse CPU:            99.97

 

Shared Pool Statistics

 

BeginEnd
Memory Usage %:            81.20            82.41
% SQL with executions>1:            93.61            98.93
% Memory for SQL w/exec>1:            92.12            95.91

 

 

Top 5 Timed Foreground Events

 

    EventWaitsTime(s)Avg wait (ms)% DB timeWait Class
    DB CPU 502,896 99.91 
    db file sequential read277,11022510.04User I/O
    log file switch (checkpoint incomplete)4222175150.04Configuration
    enq: TS - contention236180060.01Other
    db file scattered read4,1823690.01User I/O

     

    Host CPU (CPUs:   16 Cores:    8 Sockets:    2)

     

    Load Average BeginLoad Average End%User%System%WIO%Idle
       1.48   1.01   6.3   0.1   0.1  93.6
    Instance CPU

     

    %Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
           6.3      97.8       0.0
    Memory Statistics

     

    BeginEnd
    Host Mem (MB):    64,422.4    64,422.4
    SGA use (MB):     6,144.0     6,144.0
    PGA use (MB):       349.8       124.9
    % Host Mem used for SGA+PGA:   10.08    9.73

    Main Report


    Back to Top

     

    Wait Events Statistics

    Back to Top

     

    Time Model Statistics

    • Total time in database user-calls (DB Time): 503326.4s
    • Statistics including the word "background" measure background process    time, and so do not contribute to the DB time statistic
    • Ordered by % or DB time desc, Statistic name
    Statistic NameTime (s)% of DB Time
    sql execute elapsed time502,982.0899.93
    DB CPU502,896.4199.91
    parse time elapsed154.450.03
    hard parse elapsed time103.500.02
    PL/SQL execution elapsed time72.510.01
    sequence load elapsed time32.230.01
    connection management call elapsed time1.190.00
    PL/SQL compilation elapsed time0.850.00
    hard parse (sharing criteria) elapsed time0.490.00
    repeated bind elapsed time0.410.00
    hard parse (bind mismatch) elapsed time0.130.00
    failed parse elapsed time0.060.00
    DB time503,326.37 
    background elapsed time5,501.95 
    background cpu time871.44 

     

    Back to Wait Events Statistics
    Back to Top

     

    Operating System Statistics

    • *TIME statistic values are diffed.      All others display actual values.  End Value is displayed if different
    • ordered by statistic type (CPU Use, Virtual Memory, Hardware Config), Name
    StatisticValueEnd Value
    BUSY_TIME51,492,757 
    IDLE_TIME752,034,615 
    IOWAIT_TIME806,232 
    NICE_TIME46,197 
    SYS_TIME463,429 
    USER_TIME50,952,088 
    LOAD11
    RSRC_MGR_CPU_WAIT_TIME1,987 
    VM_IN_BYTES352,415,744 
    VM_OUT_BYTES3,597,312 
    PHYSICAL_MEMORY_BYTES67,551,752,192 
    NUM_CPUS16 
    NUM_CPU_CORES8 
    NUM_CPU_SOCKETS2 
    GLOBAL_RECEIVE_SIZE_MAX4,194,304 
    GLOBAL_SEND_SIZE_MAX1,048,586 
    TCP_RECEIVE_SIZE_DEFAULT4,194,304 
    TCP_RECEIVE_SIZE_MAX419,430 
    TCP_RECEIVE_SIZE_MIN4,194,304 
    TCP_SEND_SIZE_DEFAULT262,144 
    TCP_SEND_SIZE_MAX262,144 
    TCP_SEND_SIZE_MIN262,144 

     

    Back to Wait Events Statistics
    Back to Top

     

    Operating System Statistics - Detail

      Snap TimeLoad%busy%user%sys%idle%iowait
      12-Jul 13:00:121.48     
      12-Jul 14:00:161.296.095.840.2193.911.40
      12-Jul 15:00:181.196.426.350.0693.580.09
      12-Jul 16:00:201.036.396.340.0593.610.08
      12-Jul 17:00:221.066.416.340.0593.590.08
      12-Jul 18:00:241.196.406.340.0593.600.08
      12-Jul 19:00:261.166.416.340.0693.590.08
      12-Jul 20:00:281.416.426.350.0593.580.11
      12-Jul 21:00:301.056.406.340.0593.600.08
      12-Jul 22:00:322.286.456.380.0693.550.16
      12-Jul 23:00:341.006.526.450.0693.480.17
      13-Jul 00:00:361.126.406.340.0593.600.08
      13-Jul 01:00:391.076.406.340.0593.600.08
      13-Jul 02:00:411.096.416.340.0693.590.08
      13-Jul 03:00:431.226.416.340.0693.590.09
      13-Jul 04:00:451.146.406.340.0593.600.09
      13-Jul 05:00:471.116.416.340.0693.590.15
      13-Jul 06:00:491.506.446.380.0593.560.11
      13-Jul 07:00:511.096.416.350.0693.590.09
      13-Jul 08:00:531.166.406.340.0693.600.09
      13-Jul 09:00:561.166.416.340.0693.590.09
      13-Jul 10:00:581.126.416.340.0693.590.09
      13-Jul 11:01:001.036.426.360.0693.580.10
      13-Jul 12:00:021.006.406.330.0593.600.08
      13-Jul 13:00:041.166.416.350.0693.590.08
      13-Jul 14:00:061.026.396.330.0593.610.08
      13-Jul 15:00:091.006.416.350.0593.590.08
      13-Jul 16:00:111.016.406.340.0593.600.09
      13-Jul 17:00:131.016.406.340.0593.600.08
      13-Jul 18:00:151.016.406.330.0593.600.08
      13-Jul 19:00:171.136.436.370.0693.570.09
      13-Jul 20:00:191.006.426.350.0693.580.10
      13-Jul 21:00:211.146.406.340.0593.600.08
      13-Jul 22:00:231.186.406.340.0593.600.10
      13-Jul 23:00:251.626.426.360.0593.580.09
      14-Jul 00:00:271.046.416.340.0693.590.09
      14-Jul 01:00:301.256.416.340.0593.590.08
      14-Jul 02:00:321.056.426.350.0693.580.09
      14-Jul 03:00:341.016.416.340.0693.590.08
      14-Jul 04:00:371.126.406.340.0693.600.09
      14-Jul 05:00:391.256.666.480.1793.340.12
      14-Jul 06:00:411.246.436.360.0693.570.10
      14-Jul 07:00:431.106.416.350.0693.590.09
      14-Jul 08:00:451.086.416.340.0693.590.09
      14-Jul 09:00:481.206.416.340.0593.590.08
      14-Jul 10:00:501.206.416.340.0693.590.08
      14-Jul 11:00:521.106.426.350.0693.580.10
      14-Jul 12:00:541.256.406.330.0693.600.09
      14-Jul 13:00:561.086.416.350.0593.590.08
      14-Jul 14:00:591.116.406.340.0693.600.09
      14-Jul 15:00:011.066.416.350.0693.590.08
      14-Jul 16:00:031.036.406.340.0593.600.08
      14-Jul 17:00:051.086.406.340.0593.600.08
      14-Jul 18:00:071.826.416.340.0593.590.08
      14-Jul 19:00:091.056.426.350.0693.580.09
      14-Jul 20:00:121.006.426.350.0693.580.09
      14-Jul 21:00:141.216.416.350.0593.590.08
      14-Jul 22:00:161.036.406.340.0693.600.09
      14-Jul 23:00:181.136.426.360.0593.580.09
      15-Jul 00:00:201.096.406.340.0593.600.09
      15-Jul 01:00:231.406.416.340.0693.590.08
      15-Jul 02:00:251.126.406.340.0593.600.08
      15-Jul 03:00:271.006.406.340.0693.600.09
      15-Jul 04:00:291.036.406.340.0593.600.08
      15-Jul 05:00:311.496.416.350.0693.590.10
      15-Jul 06:00:331.276.416.340.0693.590.09
      15-Jul 07:00:361.036.416.340.0593.590.08
      15-Jul 08:00:381.116.416.340.0693.590.08
      15-Jul 09:00:401.056.416.340.0693.590.10
      15-Jul 10:00:421.006.406.340.0593.600.08
      15-Jul 11:00:441.066.406.340.0593.600.08
      15-Jul 12:00:471.586.406.330.0693.600.09
      15-Jul 13:00:491.066.406.340.0593.600.08
      15-Jul 14:00:511.086.406.340.0693.600.09
      15-Jul 15:00:531.206.406.340.0593.600.08
      15-Jul 16:00:551.006.416.340.0693.590.08
      15-Jul 17:00:581.136.416.340.0693.590.10
      15-Jul 18:01:001.026.406.340.0693.600.08
      15-Jul 19:00:021.086.416.340.0693.590.08
      15-Jul 20:00:041.006.436.360.0693.570.09
      15-Jul 21:00:071.056.416.340.0693.590.10
      15-Jul 22:00:091.406.426.350.0693.580.10
      15-Jul 23:00:111.026.436.370.0693.570.08
      16-Jul 00:00:141.106.416.340.0593.590.08
      16-Jul 01:00:161.026.406.330.0593.600.09
      16-Jul 02:00:181.076.416.350.0693.590.08
      16-Jul 03:00:201.026.416.340.0693.590.09
      16-Jul 04:00:231.196.426.350.0693.580.08
      16-Jul 05:00:251.086.426.350.0693.580.08
      16-Jul 06:00:271.176.416.340.0693.590.09
      16-Jul 07:00:301.036.416.350.0593.590.07
      16-Jul 08:00:321.006.416.350.0693.590.07
      16-Jul 09:00:341.056.416.340.0693.590.09
      16-Jul 10:00:371.016.416.350.0593.590.08
      16-Jul 11:00:391.076.406.340.0593.600.07
      16-Jul 12:00:411.076.406.340.0693.600.09
      16-Jul 13:00:431.196.406.340.0593.600.07
      16-Jul 14:00:461.036.406.340.0593.600.08
      16-Jul 15:00:481.176.406.330.0693.600.09
      16-Jul 16:00:501.006.406.340.0593.600.08
      16-Jul 17:00:521.126.406.340.0593.600.08
      16-Jul 18:00:541.026.386.320.0593.620.10
      16-Jul 19:00:561.056.426.350.0693.580.08
      16-Jul 20:00:581.506.426.350.0693.580.11
      16-Jul 21:00:011.096.436.320.0993.570.12
      16-Jul 22:00:031.246.426.360.0593.580.08
      16-Jul 23:00:051.566.476.400.0693.530.13
      17-Jul 00:00:071.126.396.320.0693.610.10
      17-Jul 01:00:101.016.406.330.0593.600.08
      17-Jul 02:00:121.216.396.330.0593.610.08
      17-Jul 03:00:141.006.396.320.0693.610.10
      17-Jul 04:00:161.026.396.330.0593.610.08
      17-Jul 05:00:181.056.416.350.0693.590.09
      17-Jul 06:00:201.066.396.320.0693.610.10
      17-Jul 07:00:231.016.406.330.0593.600.08
      17-Jul 08:00:251.106.416.340.0693.590.08
      17-Jul 09:00:281.086.406.340.0693.600.08
      17-Jul 10:00:301.076.396.320.0693.610.10
      17-Jul 11:00:321.096.416.340.0693.590.08
      17-Jul 12:00:341.196.386.320.0693.620.10
      17-Jul 13:00:361.046.406.340.0593.600.07
      17-Jul 14:00:381.086.406.330.0693.600.09
      17-Jul 15:00:411.086.406.340.0693.600.09
      17-Jul 16:00:431.206.426.350.0693.580.08
      17-Jul 17:00:451.066.406.330.0693.600.09
      17-Jul 18:00:481.166.396.330.0593.610.08
      17-Jul 19:00:501.006.396.330.0593.610.08
      17-Jul 20:00:521.166.406.340.0593.600.10
      17-Jul 21:00:541.096.396.330.0693.610.10
      17-Jul 22:00:562.286.476.400.0693.530.16
      17-Jul 23:00:591.006.566.470.0793.440.36
      18-Jul 00:00:011.036.416.330.0693.590.09
      18-Jul 01:00:031.166.396.330.0593.610.07
      18-Jul 02:00:051.206.386.330.0593.620.07
      18-Jul 03:00:071.066.396.320.0693.610.09
      18-Jul 04:00:091.026.396.330.0593.610.07
      18-Jul 05:00:111.076.406.340.0593.600.08
      18-Jul 06:00:131.016.396.330.0593.610.07
      18-Jul 07:00:151.336.396.320.0593.610.09
      18-Jul 08:00:181.046.396.330.0593.610.07
      18-Jul 08:31:041.016.416.340.0593.590.08

       

      Back to Wait Events Statistics
      Back to Top

       

      Foreground Wait Class

      • s  - second, ms - millisecond -    1000th of a second
      • ordered by wait time desc, waits desc
      • %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0
      • Captured Time accounts for        100.0%  of Total DB time     503,326.37 (s)
      • Total FG Wait Time:               594.08 (s)  DB CPU time:     502,896.41 (s)
      Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait (ms)%DB time
      DB CPU  502,896 99.91
      User I/O302,379028410.06
      Configuration1,16222652280.05
      Other2,5959737140.01
      Commit10,0220500.00
      Network928,1130200.00
      Concurrency3100120.00
      System I/O5,5190000.00
      Application670000.00
      Administrative0 0 0.00

       

      Back to Wait Events Statistics
      Back to Top

       

      Foreground Wait Events

      • s  - second, ms - millisecond -    1000th of a second
      • Only events with Total Wait Time (s) >= .001 are shown
      • ordered by wait time desc, waits desc (idle events last)
      • %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0
      EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn% DB time
      db file sequential read277,110022515.360.04
      log file switch (checkpoint incomplete)42202175150.010.04
      enq: TS - contention2036180060.000.01
      db file scattered read4,18203690.080.01
      log buffer space269025930.010.00
      log file switch completion434021470.010.00
      direct path write temp4,69401120.090.00
      db file parallel read28082780.000.00
      log file sync10,0220500.190.00
      Disk file operations I/O4,0020310.080.00
      SQL*Net message to client923,81902017.860.00
      sort segment request2100210010.000.00
      Data file init write1,0260110.020.00
      direct path read temp10,5740100.200.00
      ADR block file read480080.000.00
      cursor: pin S wait on X420080.000.00
      rdbms ipc reply270090.000.00
      local write wait1880010.000.00
      undo segment extension2990050.000.00
      buffer busy waits590020.000.00
      latch: shared pool1500010.000.00
      direct path sync250040.000.00
      library cache load lock400250.000.00
      log file switch (private strand flush incomplete)600140.000.00
      SQL*Net more data to client4,2810000.080.00
      control file parallel write850010.000.00
      kksfbc child completion11000510.000.00
      control file sequential read5,4340000.110.00
      library cache: mutex X280010.000.00
      read by other session80020.000.00
      asynch descriptor resize2,505100000.050.00
      SQL*Net break/reset to client670000.000.00
      library cache lock50010.000.00
      db file single write5110000.010.00
      latch: cache buffers chains50000.000.00
      latch free50000.000.00
      latch: object queue header operation40000.000.00
      latch: In memory undo latch140000.000.00
      SQL*Net more data from client130000.000.00
      enq: JS - queue lock10010.000.00
      SQL*Net message from client923,83506,796,491735717.86 
      jobq slave wait1,054,839100528,26250120.40 

       

      Back to Wait Events Statistics
      Back to Top

       

      Background Wait Events

      • ordered by wait time desc, waits desc (idle events last)
      • Only events with Total Wait Time (s) >= .001 are shown
      • %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0
      EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn% bg time
      db file async I/O submit902,00201,448217.4426.32
      os thread startup19,2110319170.375.80
      log file parallel write249,429026214.824.75
      control file parallel write211,418022314.094.05
      Data file init write12,70202920.250.52
      db file sequential read22,41401910.430.34
      Disk file operations I/O17,0000910.330.17
      ADR block file read2,1050630.040.10
      control file sequential read432,4420608.360.10
      db file scattered read1,8700320.040.06
      db file single write5,7810200.110.04
      enq: CF - contention2800150.010.03
      reliable message3,4600100.070.02
      db file parallel read3501220.000.01
      rdbms ipc reply1410140.000.01
      direct path sync1400140.000.01
      log file sync2170120.000.01
      local write wait4001110.000.01
      enq: RO - fast object reuse1610030.000.01
      resmgr:internal state change410001010.000.01
      undo segment extension5688070.000.01
      enq: CR - block range reuse ckpt2050020.000.01
      log file switch (checkpoint incomplete)3001010.000.01
      log file single write8200000.020.00
      ADR block file write7000000.010.00
      asynch descriptor resize20,095100000.390.00
      log buffer space100920.000.00
      latch: shared pool210040.000.00
      log file switch completion70080.000.00
      buffer busy waits1170000.000.00
      SQL*Net more data from client120040.000.00
      LGWR wait for redo copy3,4590000.070.00
      direct path write2880000.010.00
      multiple dbwriter suspend/resume for file offline31000110.000.00
      DBWR range invalidation sync30080.000.00
      latch: call allocation1620000.000.00
      library cache: mutex X240000.000.00
      cursor: pin S20050.000.00
      ADR file lock8400000.020.00
      log file sequential read8200000.020.00
      enq: PR - contention10060.000.00
      enq: TX - contention30010.000.00
      latch: cache buffers lru chain130000.000.00
      enq: JS - queue lock10030.000.00
      latch free580000.000.00
      latch: cache buffers chains310000.000.00
      rdbms ipc message2,755,328956,524,216236853.28 
      DIAG idle wait1,002,9441001,003,954100119.39 
      Space Manager: slave idle wait143,35998708,77149442.77 
      Strexxx AQ: qmn coordinator idle wait45,57539502,257110200.88 
      Strexxx AQ: qmn slave idle wait17,9320502,257280090.35 
      shared server idle wait16,740100502,244300030.32 
      dispatcher timer8,369100502,201600070.16 
      pmon timer168,113100502,18829873.25 
      smon timer2,68856502,1561868140.05 
      Strexxx AQ: waiting for time management or cleanup tasks1,23366480,6303898050.02 
      VKRM Idle60201,599335998670.00 
      SQL*Net message from client692018270.01 
      class slave wait2,3250000.04 

       

      Back to Wait Events Statistics
      Back to Top

       

      Wait Event Histogram

      • Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
      • % of Waits: value of .0 indicates value was <.05%; value of null is truly 0
      • % of Waits: column heading of <=1s is truly <1024ms, >1s is truly >=1024ms
      • Ordered by Event (idle events last)
        % of Waits
      EventTotal Waits<1ms<2ms<4ms<8ms<16ms<32ms<=1s  >1s
      ADR block file read215374.53.91.89.86.82.5.7 
      ADR block file write70099.1.3.4.1    
      ADR file lock840100.0       
      DBWR range invalidation sync3   66.733.3   
      Data file init write13.7K20.310.668.2.3.4.2.1 
      Disk file operations I/O21K98.71.1.2.0.0.0  
      LGWR wait for redo copy3468100.0       
      SQL*Net break/reset to client69100.0       
      SQL*Net message to client924.3K100.0   .0   
      SQL*Net more data from client2552.04.024.016.04.0   
      SQL*Net more data to client4293100.0       
      asynch descriptor resize22.6K100.0       
      buffer busy waits17693.22.8 .6 2.8.6 
      control file parallel write211.5K75.520.72.9.7.1.0.1.0
      control file sequential read437.8K100.0 .0 .0.0 .0
      cursor: pin S475.0   25.0   
      cursor: pin S wait on X4211.99.59.5 69.0   
      db file async I/O submit902K82.611.64.01.1.4.1.2.0
      db file parallel read6315.93.2 9.512.723.831.73.2
      db file scattered read605236.31.55.234.613.27.22.0 
      db file sequential read299.3K85.34.72.95.91.0.1.1 
      db file single write627998.4.8.6.1.0.0  
      direct path read temp10.6K100.0       
      direct path sync165 4.280.010.93.0 1.8 
      direct path write28999.7  .3    
      direct path write temp469721.22.471.94.3.2.0  
      enq: CF - contention28045.7.4.721.830.01.4  
      enq: CR - block range reuse ckpt20581.012.23.92.0  1.0 
      enq: JS - queue lock2 50.050.0     
      enq: PR - contention1   100.0    
      enq: RO - fast object reuse16191.33.1.6.6 .63.7 
      enq: TS - contention250.0      50.0
      enq: TX - contention333.366.7      
      kksfbc child completion1      100.0 
      latch free6398.41.6      
      latch: In memory undo latch14100.0       
      latch: active service list1100.0       
      latch: cache buffers chains3697.22.8      
      latch: cache buffers lru chain1384.615.4      
      latch: call allocation16498.81.2      
      latch: checkpoint queue latch7100.0       
      latch: enqueue hash chains1100.0       
      latch: object queue header operation7100.0       
      latch: redo writing3100.0       
      latch: row cache objects4100.0       
      latch: shared pool17184.21.84.16.42.9.6  
      library cache load lock425.0  25.0  50.0 
      library cache lock540.0 60.0     
      library cache: mutex X5294.2   5.8   
      local write wait19287.56.33.1.5 .52.1 
      log buffer space270 .4  .72.696.3 
      log file parallel write249.5K90.32.61.82.92.1.1.2.0
      log file sequential read820100.0       
      log file single write82099.1.5.1.1.1   
      log file switch (checkpoint incomplete)425 .2 47.31.9.236.513.9
      log file switch (private strand flush incomplete)6    83.316.7  
      log file switch completion441  .227.426.54.541.3 
      log file sync10.2K94.12.71.51.0.4.0.2 
      multiple dbwriter suspend/resume for file offline3    100.0   
      os thread startup19.2K    44.555.3.2 
      rdbms ipc reply16882.13.03.01.82.42.45.4 
      read by other session850.0 25.025.0    
      reliable message346098.01.8.2 .0   
      resmgr:internal state change4      100.0 
      sort segment request2      100.0 
      undo segment extension8557.6   28.212.91.2 
      utl_file I/O30100.0       
      DIAG idle wait1002.9K      100.0 
      SQL*Net message from client924.5K65.5.4.1.4.0.0.133.5
      Space Manager: slave idle wait143.1K.0.0.0.0.0.1.699.2
      Strexxx AQ: qmn coordinator idle wait45.6K60.6     .039.4
      Strexxx AQ: qmn slave idle wait17.9K       100.0
      Strexxx AQ: waiting for time management or cleanup tasks123332.9     33.333.7
      VKRM Idle6       100.0
      class slave wait2325100.0       
      dispatcher timer8369       100.0
      jobq slave wait1054.8K.0.0.0.0.0.0100.0 
      pmon timer168.1K.0.0.0.0.0.0.399.6
      rdbms ipc message2755.2K1.5.4.4.5.5.437.758.6
      shared server idle wait16.7K      .0100.0
      smon timer26901.71.11.2.81.32.920.970.1

       

      Back to Wait Events Statistics
      Back to Top

       

      Wait Event Histogram Detail (64 msec to 2 sec)

      • Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
      • Units for % of Total Waits:     ms is milliseconds    s is 1024 milliseconds (approximately 1 second)
      • % of Total Waits: total waits for all wait classes, including Idle
      • % of Total Waits: value of .0 indicates value was <.05%;     value of null is truly 0
      • Ordered by Event (only non-idle events are displayed)
        % of Total Waits
      EventWaits 64ms  to 2s<32ms<64ms<1/8s<1/4s<1/2s  <1s  <2s>=2s
      ADR block file read1499.3.3.2.0.0   
      Data file init write1299.9.1 .0    
      buffer busy waits199.4.6      
      control file parallel write11999.9.0.0.0.0 .0 
      control file sequential read1100.0     .0 
      db file async I/O submit227099.7.1.1.0.0.0.0.0
      db file parallel read2265.112.74.83.23.27.93.2 
      db file scattered read11998.01.9.1     
      db file sequential read38099.9.1.0.0.0.0  
      direct path sync398.21.8      
      enq: CR - block range reuse ckpt299.0.5.5     
      enq: RO - fast object reuse696.31.91.9     
      kksfbc child completion1 100.0      
      library cache load lock250.050.0      
      local write wait497.91.0 1.0    
      log buffer space2603.73.384.18.9    
      log file parallel write46999.8.1.1.0 .0.0 
      log file switch (checkpoint incomplete)19649.6 .2.26.829.29.64.2
      log file switch completion18258.72.039.2     
      log file sync2199.8.1.1     
      os thread startup3999.8.2.0     
      rdbms ipc reply994.61.83.6     
      resmgr:internal state change4  100.0     
      sort segment request2     100.0  
      undo segment extension198.81.2      

       

      Back to Wait Events Statistics
      Back to Top

       

      Wait Event Histogram Detail (4 sec to 2 min)

      • Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
      • Units for % of Total Waits:    s is 1024 milliseconds (approximately 1 second)    m is 64*1024 milliseconds (approximately 67 seconds or 1.1 minutes)
      • % of Total Waits: total waits for all wait classes, including Idle
      • % of Total Waits: value of .0 indicates value was <.05%;     value of null is truly 0
      • Ordered by Event (only non-idle events are displayed)
        % of Total Waits
      EventWaits 4s   to 2m<2s<4s<8s<16s<32s< 1m< 2m>=2m
      db file async I/O submit32100.0.0.0     
      enq: TS - contention150.0    50.0  
      log file switch (checkpoint incomplete)1895.84.2      

       

      Back to Wait Events Statistics
      Back to Top

       

      Wait Event Histogram Detail (4 min to 1 hr)

       

                        No data exists for this section of the report.

       

      Back to Wait Events Statistics
      Back to Top

       

      Service Statistics

      • ordered by DB Time
      Service NameDB Time (s)DB CPU (s)Physical Reads (K)Logical Reads (K)
      SYS$USERS503,326502,89692550,399,958
      SYS$BACKGROUND00393,825
      xxxinfo0000
      xxxinfoXDB0000

       

      Back to Wait Events Statistics
      Back to Top

       

      Service Wait Class Stats

      • Wait Class info for services in the Service Statistics section. 
      • Total Waits and Time Waited displayed for the following wait     classes:  User I/O, Concurrency, Administrative, Network
      • Time Waited (Wt Time) in seconds
      Service NameUser I/O Total WtsUser I/O Wt TimeConcurcy Total WtsConcurcy Wt TimeAdmin Total WtsAdmin Wt TimeNetwork Total WtsNetwork Wt Time
      SYS$USERS3023812843101009281142
      SYS$BACKGROUND6026364194043193000
      xxxinfo20000000

       

      Back to Wait Events Statistics
      Back to Top

       

       

      SQL Statistics

      Back to Top

       

      SQL ordered by Elapsed Time

      • Resources reported for PL/SQL code includes the resources used by all SQL     statements called by the code.
      • % Total DB Time is the Elapsed Time of the SQL statement divided     into the Total Database Time multiplied by 100
      • %Total - Elapsed Time  as a percentage of Total DB time
      • %CPU   - CPU Time      as a percentage of Elapsed Time
      • %IO    - User I/O Time as a percentage of Elapsed Time
      • Captured SQL account for   99.9% of Total DB Time (s):         503,326
      • Captured PL/SQL account for    0.1% of Total DB Time (s):         503,326
      Elapsed  Time (s)ExecutionsElapsed Time per Exec (s)%Total%CPU%IO   SQL IdSQL ModuleSQL Text
      15,936.28115,936.283.1799.990.00d1953wp5b1fvrJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      14,215.54114,215.542.8299.990.00cf9wpns9um3urJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      13,457.21113,457.212.6799.990.00gqhcv1v6msst4JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      12,153.01112,153.012.4199.990.00a3ua98ugr5xrpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      12,046.25112,046.252.3999.990.00074yc3m9ww7jhJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,862.94111,862.942.3699.990.00ch4j3rg655ksaJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,677.56111,677.562.3299.990.00989y0x8t5kua7JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,156.20111,156.202.2299.990.009wq1gqjpgbmhxJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,030.97111,030.972.1999.990.006cyh30w825yrvJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,963.34110,963.342.1899.990.00dpt0yjqwx48p8JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,784.39110,784.392.1499.990.000q641c3ad152nJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,752.74110,752.742.1499.990.0054u33yzyhgbfzJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,749.68110,749.682.1499.990.00fvk8jht12ydccJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,678.63110,678.632.1299.990.0082c8cqp738bj8JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,676.02110,676.022.1299.990.005wd668601x94zJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,599.46110,599.462.1199.990.004b1tc6t56asp2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,274.11110,274.112.0499.990.00bqt8xr1had8k0JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,156.84110,156.842.0299.990.000rrzb19ubpgfmJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,123.13110,123.132.0199.990.00gkwmmst5u7btwJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,993.0719,993.071.9999.990.007mj0raam6s94xJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,870.5919,870.591.9699.990.005r091aaztzamgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,810.7319,810.731.9599.990.003g6bxnbdx6qp2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,715.1319,715.131.9399.990.009g8jssns1pgvaJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,322.6819,322.681.8599.990.00cpa67gnw4nh8cJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,319.8819,319.881.8599.990.0099b0xbzzv6hujJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,137.0819,137.081.8299.990.003ypr64tksbbg3JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,095.5419,095.541.8199.990.00ajmpug0qz3df6JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,091.8719,091.871.8199.990.00auu2un1cw4rz4JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,256.6718,256.671.6499.990.005qx3t2qx3yvhwJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,143.750 1.6299.990.00b9uufx8puwqbgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,062.1218,062.121.6099.990.00gdfw9p5mvpkupJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,012.4218,012.421.5999.990.006nnk2k5jhjayuJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,855.4817,855.481.5699.990.008u1rdyvdu8qwsJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,799.0717,799.071.5599.990.006c497nqzt5ucbJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,266.3317,266.331.4499.990.0073r2unqj6pmmzJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,259.6117,259.611.4499.990.007kfkk9crxxpu2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,227.3917,227.391.4499.990.000j2wa0sqdfvzyJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,148.8917,148.891.4299.990.001usanvpwxv6j2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,038.6217,038.621.4099.990.009kf97g7t4uggpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      6,899.9516,899.951.3799.990.00dt16a5jm4fjk6JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      6,402.7216,402.721.2799.990.00cbbs3g9m5fam7JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      5,566.5215,566.521.1199.990.00dn68njxgpv5dcJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      5,526.6915,526.691.1099.990.00dz7vuxa6yzr5tJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      5,322.8215,322.821.0699.990.000h9bq1r7xs1jgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by CPU Time

      • Resources reported for PL/SQL code includes the resources used by all SQL     statements called by the code.
      • %Total - CPU Time      as a percentage of Total DB CPU
      • %CPU   - CPU Time      as a percentage of Elapsed Time
      • %IO    - User I/O Time as a percentage of Elapsed Time
      • Captured SQL account for   99.9% of Total CPU Time (s):         502,896
      • Captured PL/SQL account for    0.0% of Total CPU Time (s):         502,896
      CPU    Time (s)ExecutionsCPU per  Exec (s)%TotalElapsed  Time (s)%CPU%IO   SQL IdSQL ModuleSQL Text
      15,934.78115,934.783.1715,936.2899.990.00d1953wp5b1fvrJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      14,214.19114,214.192.8314,215.5499.990.00cf9wpns9um3urJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      13,455.94113,455.942.6813,457.2199.990.00gqhcv1v6msst4JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      12,151.86112,151.862.4212,153.0199.990.00a3ua98ugr5xrpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      12,045.11112,045.112.4012,046.2599.990.00074yc3m9ww7jhJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,861.81111,861.812.3611,862.9499.990.00ch4j3rg655ksaJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,676.46111,676.462.3211,677.5699.990.00989y0x8t5kua7JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,155.16111,155.162.2211,156.2099.990.009wq1gqjpgbmhxJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      11,029.93111,029.932.1911,030.9799.990.006cyh30w825yrvJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,962.31110,962.312.1810,963.3499.990.00dpt0yjqwx48p8JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,783.37110,783.372.1410,784.3999.990.000q641c3ad152nJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,751.72110,751.722.1410,752.7499.990.0054u33yzyhgbfzJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,748.67110,748.672.1410,749.6899.990.00fvk8jht12ydccJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,677.63110,677.632.1210,678.6399.990.0082c8cqp738bj8JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,675.02110,675.022.1210,676.0299.990.005wd668601x94zJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,598.45110,598.452.1110,599.4699.990.004b1tc6t56asp2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,273.13110,273.132.0410,274.1199.990.00bqt8xr1had8k0JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,155.89110,155.892.0210,156.8499.990.000rrzb19ubpgfmJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      10,122.18110,122.182.0110,123.1399.990.00gkwmmst5u7btwJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,992.1319,992.131.999,993.0799.990.007mj0raam6s94xJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,869.6419,869.641.969,870.5999.990.005r091aaztzamgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,809.7919,809.791.959,810.7399.990.003g6bxnbdx6qp2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,714.2219,714.221.939,715.1399.990.009g8jssns1pgvaJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,321.7919,321.791.859,322.6899.990.00cpa67gnw4nh8cJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,319.0119,319.011.859,319.8899.990.0099b0xbzzv6hujJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,136.2119,136.211.829,137.0899.990.003ypr64tksbbg3JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,094.6919,094.691.819,095.5499.990.00ajmpug0qz3df6JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,091.0119,091.011.819,091.8799.990.00auu2un1cw4rz4JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,255.8918,255.891.648,256.6799.990.005qx3t2qx3yvhwJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,142.990 1.628,143.7599.990.00b9uufx8puwqbgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,061.3618,061.361.608,062.1299.990.00gdfw9p5mvpkupJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      8,011.6618,011.661.598,012.4299.990.006nnk2k5jhjayuJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,854.7517,854.751.567,855.4899.990.008u1rdyvdu8qwsJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,798.3317,798.331.557,799.0799.990.006c497nqzt5ucbJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,265.6417,265.641.447,266.3399.990.0073r2unqj6pmmzJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,258.9317,258.931.447,259.6199.990.007kfkk9crxxpu2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,226.7017,226.701.447,227.3999.990.000j2wa0sqdfvzyJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,148.2117,148.211.427,148.8999.990.001usanvpwxv6j2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      7,037.9517,037.951.407,038.6299.990.009kf97g7t4uggpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      6,899.2916,899.291.376,899.9599.990.00dt16a5jm4fjk6JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      6,402.1116,402.111.276,402.7299.990.00cbbs3g9m5fam7JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      5,566.0015,566.001.115,566.5299.990.00dn68njxgpv5dcJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      5,526.1615,526.161.105,526.6999.990.00dz7vuxa6yzr5tJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      5,322.3215,322.321.065,322.8299.990.000h9bq1r7xs1jgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by User I/O Wait Time

      • Resources reported for PL/SQL code includes the resources used by all SQL     statements called by the code.
      • %Total - User I/O Time as a percentage of Total User I/O Wait time
      • %CPU   - CPU Time      as a percentage of Elapsed Time
      • %IO    - User I/O Time as a percentage of Elapsed Time
      • Captured SQL account for   83.2% of Total User I/O Wait Time (s):             348
      • Captured PL/SQL account for    5.1% of Total User I/O Wait Time (s):             348
      User I/O Time (s)ExecutionsUIO per  Exec (s)%TotalElapsed  Time (s)%CPU%IO   SQL IdSQL ModuleSQL Text
      211.661211.6660.74300.3731.9370.4714mmfypgmqta9JDBC Thin ClientMERGE INTO FACT_PRCU_FLDR TARG...
      34.40134.409.8743.4827.4179.13093hv8w5908wpJDBC Thin ClientSELECT FY, PER FROM (SELECT DI...
      6.048,3630.001.73203.2396.192.976gvch1xu9ca3g DECLARE job BINARY_INTEGER := ...
      4.8614.861.395.6619.8085.909ynzcrydnb83xTOAD 11.6.1.6select count(1) from INFOADVDW...
      4.5414.541.3020.3961.5622.261nymkjqvhupsrJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      3.7713.771.0818.5955.0420.290x9tzmrnngqfpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      3.4213.420.9814.4436.8823.7005s9358mm6vrr begin dbms_feature_usage_inter...
      3.2613.260.9315.0850.2921.60g4s5nbmjhjydbJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      2.7012.700.777.7480.5934.87gwtkbw2nr5fk4JDBC Thin ClientSELECT FY, PER FROM (SELECT DI...
      2.2512.250.6511.5382.4019.54dra1z5s8yjqpjJDBC Thin ClientSELECT DISTINCT LDGRA.FY_ID, A...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Gets

      • Resources reported for PL/SQL code includes the resources used by all SQL     statements called by the code.
      • %Total - Buffer Gets   as a percentage of Total Buffer Gets
      • %CPU   - CPU Time      as a percentage of Elapsed Time
      • %IO    - User I/O Time as a percentage of Elapsed Time
      • Total Buffer Gets:  50,403,654,877
      • Captured SQL account for  100.0% of Total
      Buffer GetsExecutionsGets     per Exec %TotalElapsed  Time (s)%CPU  %IO   SQL IdSQL ModuleSQL Text
      1,580,925,08311,580,925,083.003.1415,936.281000d1953wp5b1fvrJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,394,344,53111,394,344,531.002.7714,215.541000cf9wpns9um3urJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,343,790,58211,343,790,582.002.6713,457.211000gqhcv1v6msst4JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,221,511,72011,221,511,720.002.4212,153.011000a3ua98ugr5xrpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,221,292,86711,221,292,867.002.4212,046.251000074yc3m9ww7jhJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,191,944,75111,191,944,751.002.3611,862.941000ch4j3rg655ksaJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,148,244,07711,148,244,077.002.2811,677.561000989y0x8t5kua7JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,112,533,36611,112,533,366.002.2111,156.2010009wq1gqjpgbmhxJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,107,212,87411,107,212,874.002.2011,030.9710006cyh30w825yrvJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,098,844,86711,098,844,867.002.1810,963.341000dpt0yjqwx48p8JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,087,508,58711,087,508,587.002.1610,784.3910000q641c3ad152nJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,083,685,71711,083,685,717.002.1510,676.0210005wd668601x94zJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,079,957,90911,079,957,909.002.1410,752.74100054u33yzyhgbfzJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,070,600,01611,070,600,016.002.1210,599.4610004b1tc6t56asp2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,069,056,13411,069,056,134.002.1210,749.681000fvk8jht12ydccJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,064,244,48411,064,244,484.002.1110,678.63100082c8cqp738bj8JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,039,805,21411,039,805,214.002.0610,123.131000gkwmmst5u7btwJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,030,652,42111,030,652,421.002.0410,156.8410000rrzb19ubpgfmJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,018,873,83311,018,873,833.002.0210,274.111000bqt8xr1had8k0JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      989,445,3391989,445,339.001.969,993.0710007mj0raam6s94xJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      987,298,7081987,298,708.001.969,810.7310003g6bxnbdx6qp2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      982,050,7211982,050,721.001.959,870.5910005r091aaztzamgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      976,620,9381976,620,938.001.949,715.1310009g8jssns1pgvaJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      945,195,9951945,195,995.001.889,319.88100099b0xbzzv6hujJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      937,534,1881937,534,188.001.869,322.681000cpa67gnw4nh8cJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      929,276,2471929,276,247.001.849,137.0810003ypr64tksbbg3JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      909,661,3851909,661,385.001.809,095.541000ajmpug0qz3df6JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      898,103,5221898,103,522.001.789,091.871000auu2un1cw4rz4JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      843,940,3141843,940,314.001.678,256.6710005qx3t2qx3yvhwJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      807,673,1220 1.608,143.751000b9uufx8puwqbgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      807,647,5981807,647,598.001.608,012.4210006nnk2k5jhjayuJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      805,641,3131805,641,313.001.608,062.121000gdfw9p5mvpkupJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      780,560,3311780,560,331.001.557,799.0710006c497nqzt5ucbJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      777,426,9251777,426,925.001.547,855.4810008u1rdyvdu8qwsJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      728,829,9791728,829,979.001.457,266.33100073r2unqj6pmmzJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      726,062,1801726,062,180.001.447,259.6110007kfkk9crxxpu2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      710,417,2011710,417,201.001.417,227.3910000j2wa0sqdfvzyJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      709,137,5851709,137,585.001.417,038.6210009kf97g7t4uggpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      708,632,2431708,632,243.001.417,148.8910001usanvpwxv6j2JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      698,480,3491698,480,349.001.396,899.951000dt16a5jm4fjk6JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      641,830,1121641,830,112.001.276,402.721000cbbs3g9m5fam7JDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      563,345,5941563,345,594.001.125,526.691000dz7vuxa6yzr5tJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      558,611,4471558,611,447.001.115,566.521000dn68njxgpv5dcJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      532,754,6971532,754,697.001.065,322.8210000h9bq1r7xs1jgJDBC Thin Clientmerge into SMRY_BALANCE smry_b...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Reads

      • %Total - Physical Reads as a percentage of Total Disk Reads
      • %CPU   - CPU Time      as a percentage of Elapsed Time
      • %IO    - User I/O Time as a percentage of Elapsed Time
      • Total Disk Reads:         963,792
      • Captured SQL account for   98.2% of Total
      Physical ReadsExecutionsReads     per Exec %TotalElapsed  Time (s)%CPU%IO   SQL IdSQL ModuleSQL Text
      336,2561336,256.0034.8943.4827.4179.13093hv8w5908wpJDBC Thin ClientSELECT FY, PER FROM (SELECT DI...
      145,3951145,395.0015.09300.3731.9370.4714mmfypgmqta9JDBC Thin ClientMERGE INTO FACT_PRCU_FLDR TARG...
      140,3671140,367.0014.567.7480.5934.87gwtkbw2nr5fk4JDBC Thin ClientSELECT FY, PER FROM (SELECT DI...
      83,929183,929.008.7111.5382.4019.54dra1z5s8yjqpjJDBC Thin ClientSELECT DISTINCT LDGRA.FY_ID, A...
      83,610183,610.008.68122.7671.780.184w3qq8uaguy29JDBC Thin Clientmerge INTO INFOADVDW.smry_ldgr...
      46,876146,876.004.8620.3961.5622.261nymkjqvhupsrJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      38,425138,425.003.9918.5955.0420.290x9tzmrnngqfpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      28,832128,832.002.9915.0850.2921.60g4s5nbmjhjydbJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      9,66819,668.001.005.6619.8085.909ynzcrydnb83xTOAD 11.6.1.6select count(1) from INFOADVDW...
      6,94051,388.000.720.8335.8567.95a7z22y3zmhtqs select from_tz( cast ((max(ana...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Physical Reads (UnOptimized)

      • UnOptimized Read Reqs = Physical Read Reqts - Optimized Read Reqs
      • %Opt   - Optimized Reads as percentage of SQL Read Requests
      • %Total - UnOptimized Read Reqs as a percentage of Total UnOptimized Read Reqs
      • Total Physical Read Requests:         312,721
      • Captured SQL account for   96.8% of Total
      • Total UnOptimized Read Requests:         312,721
      • Captured SQL account for   96.8% of Total
      • Total Optimized Read Requests:               1
      • Captured SQL account for    0.0% of Total
      UnOptimized Read ReqsPhysical  Read ReqsExecutionsUnOptimized Reqs per Exec%Opt%Total   SQL IdSQL ModuleSQL Text
      140,367140,3671140,367.000.0044.89gwtkbw2nr5fk4JDBC Thin ClientSELECT FY, PER FROM (SELECT DI...
      119,993119,9931119,993.000.0038.3714mmfypgmqta9JDBC Thin ClientMERGE INTO FACT_PRCU_FLDR TARG...
      9,6689,66819,668.000.003.099ynzcrydnb83xTOAD 11.6.1.6select count(1) from INFOADVDW...
      5,5755,57515,575.000.001.784w3qq8uaguy29JDBC Thin Clientmerge INTO INFOADVDW.smry_ldgr...
      5,1075,1078,3630.610.001.636gvch1xu9ca3g DECLARE job BINARY_INTEGER := ...
      3,6643,66413,664.000.001.17093hv8w5908wpJDBC Thin ClientSELECT FY, PER FROM (SELECT DI...
      2,7212,72114019.440.000.876ajkhukk78nsr begin prvt_hdm.auto_execute( :...
      2,5062,5069278.440.000.80ajymgnp1qnruw select o.name, o.owner# from o...
      2,1632,16312,163.000.000.691nymkjqvhupsrJDBC Thin Clientmerge into SMRY_BALANCE smry_b...
      1,6961,69611,696.000.000.540x9tzmrnngqfpJDBC Thin Clientmerge into SMRY_BALANCE smry_b...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Executions

      • %CPU   - CPU Time      as a percentage of Elapsed Time
      • %IO    - User I/O Time as a percentage of Elapsed Time
      • Total Executions:       2,403,438
      • Captured SQL account for   66.9% of Total
      ExecutionsRows ProcessedRows per ExecElapsed  Time (s)%CPU  %IO   SQL IdSQL ModuleSQL Text
      470,581666,3811.4227.1597.10cm5vu20fhtnq1 select /*+ connect_by_filterin...
      318,625318,6251.0020.6862.804m7m0t6fjcs5x update seq$ set increment$=:2,...
      219,9607,038,56032.00347.6199.509as863008p1b9CMS.exeSELECT CMS_InfoObjects6.Object...
      97,4818,9520.0912.318.905ms6rbzdnq16t select job, nvl2(last_date, 1,...
      52,10252,1021.001.6599.40089dbukv1aanhEM_PINGSELECT SYS_EXTRACT_UTC(SYSTIME...
      32,76532,7651.005.08100.405kyb5bvnu3s04 SELECT DISTINCT METRIC_GUID FR...
      24,39117,1790.701.72104.6008bqjmf8490s2SEVERITY EVALUATIONSELECT PARAMETER_VALUE FROM MG...
      24,38124,3811.005.1748.30fsbqktj5vw6n9 select next_run_date, obj#, ru...
      24,14524,1451.002.39106.32.58vwv6hx92ymmm UPDATE MGMT_CURRENT_METRICS SE...
      17,830570,20831.985.0296.405y6rx8pwt01j4CMS.exeSELECT CMS_InfoObjects6.Object...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Parse Calls

      • Total Parse Calls:         525,504
      • Captured SQL account for   39.6% of Total
      Parse CallsExecutions% Total Parses   SQL IdSQL ModuleSQL Text
      9,4009,4001.790k8522rmdzg4k select privilege# from sysauth...
      9,397470,5811.79cm5vu20fhtnq1 select /*+ connect_by_filterin...
      9,2169,2161.7547a50dvdgnxc2 update sys.job$ set failures=0...
      9,2169,2161.75aq8yqxyyb40nn update sys.job$ set this_date=...
      9,2169,2161.75cumjq42201t37 select u1.user#, u2.user#, u3....
      9,16224,3911.7408bqjmf8490s2SEVERITY EVALUATIONSELECT PARAMETER_VALUE FROM MG...
      8,3698,3691.5924dkx03u3rj6kSELECT COUNT(*) FROM MGMT_PARA...
      8,36916,8841.59bfujkg8dw1aax SELECT UPPER(PARAMETER_VALUE) ...
      8,36352,1021.59089dbukv1aanhEM_PINGSELECT SYS_EXTRACT_UTC(SYSTIME...
      8,3638,3631.5908vznc16ycuagEM_PINGSELECT SYS_GUID() FROM SYS.DUA...
      8,3638,3831.592jfqzrxhrm93b select /*+ rule */ c.name, u.n...
      8,3638,3631.5934rks4d5suuxzEM_PINGSELECT COUNT(FAILOVER_ID) FROM...
      8,3638,3631.596gvch1xu9ca3g DECLARE job BINARY_INTEGER := ...
      8,3638,3631.596x3gu99adnjc7EM_PINGUPDATE MGMT_JOB_EXECUTION SET ...
      8,3638,3631.597vcwzqf7mgk3bEM_PINGINSERT INTO MGMT_JOB_EXECUTION...
      8,3638,3631.598t43xdhf4d9x2 SELECT CONTEXT_TYPE_ID, CONTEX...
      8,3638,3631.59btwkwwx56w4z6SEVERITY EVALUATIONSELECT target_guid FROM mgmt_m...
      8,3638,3631.59c8h3jdwaa532qEM_PINGSELECT TO_NUMBER(PARAMETER_VAL...
      8,3638,3631.59dwssdqx28tzf5 select sysdate + 1 / (24 * 60)...
      8,3638,3631.59fzwnuj0amdfvrEM_PINGDELETE FROM MGMT_JOB_HISTORY H...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Sharable Memory

      • Only Statements with Sharable Memory greater than 1048576 are displayed
      Sharable Mem (b)Executions% Total   SQL IdSQL ModuleSQL Text
      1,322,01920.12c0gvws85ubcgqTOAD 10.6.1.3Select owner FROM all_objects ...

       

      Back to SQL Statistics
      Back to Top

       

      SQL ordered by Version Count

       

                        No data exists for this section of the report.

       

      Back to SQL Statistics
      Back to Top

       

       

      Complete List of SQL Text

       

      SQL IdSQL Text
      05s9358mm6vrrbegin dbms_feature_usage_internal.exec_db_usage_sampling(:bind1); end;
      074yc3m9ww7jhmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 5830418803969660833 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 5830418803969660833 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      089dbukv1aanhSELECT SYS_EXTRACT_UTC(SYSTIMESTAMP) FROM DUAL
      08bqjmf8490s2SELECT PARAMETER_VALUE FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B1
      08vznc16ycuagSELECT SYS_GUID() FROM SYS.DUAL
      093hv8w5908wpSELECT FY,  PER FROM (SELECT DISTINCT APD_ID FROM FACT_JRNL_FA WHERE PSCD_ID IN (-4877058542179364436, -3264941209944229834, -7603950867139347598, -6129001921470942497) AND DW_RUN_ID > 0 ) SUMMARY_BALANCE JOIN DIM_APD ON SUMMARY_BALANCE.APD_ID = DIM_APD.APD_ID AND DIM_APD.DW_ST = 1 ORDER BY FY ASC,  PER ASC
      0h9bq1r7xs1jgmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 2759588628358217438 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 2759588628358217438 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      0j2wa0sqdfvzymerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -624758031120358621 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -624758031120358621 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      0k8522rmdzg4kselect privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0
      0q641c3ad152nmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -3757006957368555139 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -3757006957368555139 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      0rrzb19ubpgfmmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -3765855104666992560 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -3765855104666992560 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      0x9tzmrnngqfpmerge into SMRY_BALANCE smry_balance using (SELECT APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT FROM ( select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID AS BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  (case when PSCD_CLOS_CL_CD ='7' then -2302263740728710673 when PSCD_CLOS_CL_CD IN ('10', '11', '12', '13', '14', '15') then -883780301321302802 when PSCD_CLOS_CL_CD ='16' then 2816367642256817989 when PSCD_CLOS_CL_CD ='17' then -4495578948117342668 else SMRY_BALANCE.PSCD_ID end) AS PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  sum(DEBIT_BAL_AMT) as DEBIT_BAL_AMT,  sum(CREDIT_BAL_AMT) as CREDIT_BAL_AMT,  sum(DEBIT_ACT_AMT) as DEBIT_ACT_AMT,  sum(CREDIT_ACT_AMT) as CREDIT_ACT_AMT,  sum(NET_ACT_AMT) as NET_ACT_AMT,  sum(BEG_BAL_AMT) as BEG_BAL_AMT,  sum(END_BAL_AMT) as END_BAL_AMT,  max(smry_balance.DW_RUN_ID) as DW_RUN_ID from SMRY_BALANCE smry_balance join dim_pscd on smry_balance.pscd_id = dim_pscd.pscd_id where apd_id = 4904422678285587259 group by APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID ,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  (case when PSCD_CLOS_CL_CD ='7' then -2302263740728710673 when PSCD_CLOS_CL_CD IN ('10', '11', '12', '13', '14', '15') then -883780301321302802 when PSCD_CLOS_CL_CD ='16' then 2816367642256817989 when PSCD_CLOS_CL_CD ='17' then -4495578948117342668 else SMRY_BALANCE.PSCD_ID end) ,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID ) WHERE DW_RUN_ID > 0 ) prior_apd on ( smry_balance.APD_ID = -6167348534222010479 and prior_apd.ACTV_ID = smry_balance.ACTV_ID and prior_apd.APPR_ID = smry_balance.APPR_ID and prior_apd.BSA_ID = smry_balance.BSA_ID and prior_apd.BFY_ID = smry_balance.BFY_ID and prior_apd.DOBJ_ID = smry_balance.DOBJ_ID and prior_apd.DRSRC_ID = smry_balance.DRSRC_ID and prior_apd.FAPPR_ID = smry_balance.FAPPR_ID and smry_balance.FY_ID = 8848495041118924718 and prior_apd.FUNC_ID = smry_balance.FUNC_ID and prior_apd.FUND_ID = smry_balance.FUND_ID and prior_apd.FNDG_ID = smry_balance.FNDG_ID and prior_apd.OBJ_ID = smry_balance.OBJ_ID and prior_apd.ORG_ID = smry_balance.ORG_ID and prior_apd.PROG_ID = smry_balance.PROG_ID and prior_apd.PSCD_ID = smry_balance.PSCD_ID and prior_apd.REPT_ID = smry_balance.REPT_ID and prior_apd.RSRC_ID = smry_balance.RSRC_ID and prior_apd.STAGE_ID = smry_balance.STAGE_ID and prior_apd.TASK_ID = smry_balance.TASK_ID and prior_apd.TASKO_ID = smry_balance.TASKO_ID and prior_apd.BANK_ID = smry_balance.BANK_ID) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = prior_apd.DEBIT_BAL_AMT + smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = prior_apd.CREDIT_BAL_AMT + smry_balance.CREDIT_ACT_AMT,  BEG_BAL_AMT = prior_apd.END_BAL_AMT,  END_BAL_AMT = prior_apd.END_BAL_AMT + smry_balance.NET_ACT_AMT,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID ) VALUES ( -6167348534222010479,  prior_apd.ACTV_ID,  prior_apd.APPR_ID,  prior_apd.BSA_ID,  prior_apd.BFY_ID,  prior_apd.DOBJ_ID,  prior_apd.DRSRC_ID,  prior_apd.FAPPR_ID,  8848495041118924718,  prior_apd.FUNC_ID,  prior_apd.FUND_ID,  prior_apd.FNDG_ID,  prior_apd.OBJ_ID,  prior_apd.ORG_ID,  prior_apd.PROG_ID,  prior_apd.PSCD_ID,  prior_apd.REPT_ID,  prior_apd.RSRC_ID,  prior_apd.STAGE_ID,  prior_apd.TASK_ID,  prior_apd.TASKO_ID,  prior_apd.BANK_ID,  prior_apd.DEBIT_BAL_AMT /* DEBIT_BAL_A MT */,  prior_apd.CREDIT_BAL_AMT /* CREDIT_BAL_AMT */,  0 /* DEBIT_ACT_AMT */,  0 /* CREDIT_ACT_AMT */,  0 /* NET_ACT_AMT */,  prior_apd.END_BAL_AMT /* BEG_BAL_AMT */,  prior_apd.END_BAL_AMT /* END_BAL_AMT */,  1 )
      14mmfypgmqta9MERGE INTO FACT_PRCU_FLDR TARGET USING ( SELECT PFLDR.DW_RUN_ID,  PFLDR.DW_SEQ_ID,  PFLDR.PRCU_FLDR_ID,  'Alert!' AS PRCU_FLDR_STA FROM (SELECT DISTINCT PRCU_FLDR_ID FROM INFOADVDW.FACT_PRCU_FLDR WHERE MLSTN_STA='Overdue') OVRD_PFLDR,  INFOADVDW.FACT_PRCU_FLDR PFLDR WHERE OVRD_PFLDR.PRCU_FLDR_ID = PFLDR.PRCU_FLDR_ID ) SOURCE ON ( SOURCE.DW_RUN_ID = TARGET.DW_RUN_ID AND SOURCE.DW_SEQ_ID = TARGET.DW_SEQ_ID AND SOURCE.PRCU_FLDR_ID = TARGET.PRCU_FLDR_ID ) WHEN MATCHED THEN UPDATE SET TARGET.PRCU_FLDR_STA = SOURCE.PRCU_FLDR_STA
      1nymkjqvhupsrmerge into SMRY_BALANCE smry_balance using (SELECT APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT FROM ( select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID AS BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  (case when PSCD_CLOS_CL_CD ='7' then -2302263740728710673 when PSCD_CLOS_CL_CD IN ('10', '11', '12', '13', '14', '15') then -883780301321302802 when PSCD_CLOS_CL_CD ='16' then 2816367642256817989 when PSCD_CLOS_CL_CD ='17' then -4495578948117342668 else SMRY_BALANCE.PSCD_ID end) AS PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  sum(DEBIT_BAL_AMT) as DEBIT_BAL_AMT,  sum(CREDIT_BAL_AMT) as CREDIT_BAL_AMT,  sum(DEBIT_ACT_AMT) as DEBIT_ACT_AMT,  sum(CREDIT_ACT_AMT) as CREDIT_ACT_AMT,  sum(NET_ACT_AMT) as NET_ACT_AMT,  sum(BEG_BAL_AMT) as BEG_BAL_AMT,  sum(END_BAL_AMT) as END_BAL_AMT,  max(smry_balance.DW_RUN_ID) as DW_RUN_ID from SMRY_BALANCE smry_balance join dim_pscd on smry_balance.pscd_id = dim_pscd.pscd_id where apd_id = 4542706828498997294 group by APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID ,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  (case when PSCD_CLOS_CL_CD ='7' then -2302263740728710673 when PSCD_CLOS_CL_CD IN ('10', '11', '12', '13', '14', '15') then -883780301321302802 when PSCD_CLOS_CL_CD ='16' then 2816367642256817989 when PSCD_CLOS_CL_CD ='17' then -4495578948117342668 else SMRY_BALANCE.PSCD_ID end) ,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID ) WHERE DW_RUN_ID > 0 ) prior_apd on ( smry_balance.APD_ID = -8599671595023738887 and prior_apd.ACTV_ID = smry_balance.ACTV_ID and prior_apd.APPR_ID = smry_balance.APPR_ID and prior_apd.BSA_ID = smry_balance.BSA_ID and prior_apd.BFY_ID = smry_balance.BFY_ID and prior_apd.DOBJ_ID = smry_balance.DOBJ_ID and prior_apd.DRSRC_ID = smry_balance.DRSRC_ID and prior_apd.FAPPR_ID = smry_balance.FAPPR_ID and smry_balance.FY_ID = 7246764778205797886 and prior_apd.FUNC_ID = smry_balance.FUNC_ID and prior_apd.FUND_ID = smry_balance.FUND_ID and prior_apd.FNDG_ID = smry_balance.FNDG_ID and prior_apd.OBJ_ID = smry_balance.OBJ_ID and prior_apd.ORG_ID = smry_balance.ORG_ID and prior_apd.PROG_ID = smry_balance.PROG_ID and prior_apd.PSCD_ID = smry_balance.PSCD_ID and prior_apd.REPT_ID = smry_balance.REPT_ID and prior_apd.RSRC_ID = smry_balance.RSRC_ID and prior_apd.STAGE_ID = smry_balance.STAGE_ID and prior_apd.TASK_ID = smry_balance.TASK_ID and prior_apd.TASKO_ID = smry_balance.TASKO_ID and prior_apd.BANK_ID = smry_balance.BANK_ID) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = prior_apd.DEBIT_BAL_AMT + smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = prior_apd.CREDIT_BAL_AMT + smry_balance.CREDIT_ACT_AMT,  BEG_BAL_AMT = prior_apd.END_BAL_AMT,  END_BAL_AMT = prior_apd.END_BAL_AMT + smry_balance.NET_ACT_AMT,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID ) VALUES ( -8599671595023738887,  prior_apd.ACTV_ID,  prior_apd.APPR_ID,  prior_apd.BSA_ID,  prior_apd.BFY_ID,  prior_apd.DOBJ_ID,  prior_apd.DRSRC_ID,  prior_apd.FAPPR_ID,  7246764778205797886,  prior_apd.FUNC_ID,  prior_apd.FUND_ID,  prior_apd.FNDG_ID,  prior_apd.OBJ_ID,  prior_apd.ORG_ID,  prior_apd.PROG_ID,  prior_apd.PSCD_ID,  prior_apd.REPT_ID,  prior_apd.RSRC_ID,  prior_apd.STAGE_ID,  prior_apd.TASK_ID,  prior_apd.TASKO_ID,  prior_apd.BANK_ID,  prior_apd.DEBIT_BAL_AMT /* DEBIT_BAL_A MT */,  prior_apd.CREDIT_BAL_AMT /* CREDIT_BAL_AMT */,  0 /* DEBIT_ACT_AMT */,  0 /* CREDIT_ACT_AMT */,  0 /* NET_ACT_AMT */,  prior_apd.END_BAL_AMT /* BEG_BAL_AMT */,  prior_apd.END_BAL_AMT /* END_BAL_AMT */,  1 )
      1usanvpwxv6j2merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -367174982283823021 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -367174982283823021 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      24dkx03u3rj6kSELECT COUNT(*) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME=:B1 AND UPPER(PARAMETER_VALUE)='TRUE'
      2jfqzrxhrm93bselect /*+ rule */ c.name,  u.name from con$ c,  cdef$ cd,  user$ u where c.con# = cd.con# and cd.enabled = :1 and c.owner# = u.user#
      34rks4d5suuxzSELECT COUNT(FAILOVER_ID) FROM MGMT_FAILOVER_TABLE WHERE SYSDATE-LAST_TIME_STAMP < :B1 /(24*60*60)
      3g6bxnbdx6qp2merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -932050748214089530 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -932050748214089530 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      3ypr64tksbbg3merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -1591449621773546084 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -1591449621773546084 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      47a50dvdgnxc2update sys.job$ set failures=0,  this_date=null,  flag=:1,  last_date=:2,  next_date = greatest(:3,  sysdate),  total=total+(sysdate-nvl(this_date, sysdate)) where job=:4
      4b1tc6t56asp2merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 2095174220661190343 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 2095174220661190343 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      4m7m0t6fjcs5xupdate seq$ set increment$=:2, minvalue=:3, maxvalue=:4, cycle#=:5, order$=:6, cache=:7, highwater=:8, audit$=:9, flags=:10 where obj#=:1
      4w3qq8uaguy29merge INTO INFOADVDW.smry_ldgrc USING (SELECT fy_id,  bfy_id,  apd_id,  func_id,  obj_id,  dobj_id,  rsrc_id,  drsrc_id,  bsa_id,  appr_id,  org_id,  actv_id,  rept_id,  pscd_id,  prog_id,  fndg_id,  task_id,  fund_id,  tasko_id,  stage_id,  fappr_id,  bank_id,  SUM(pstng_am) AS pstng_am,  SUM( CASE WHEN drcr_ind = 'C' THEN pstng_am ELSE 0 END) AS credit_am,  SUM( CASE WHEN drcr_ind = 'D' THEN pstng_am ELSE 0 END) AS debit_am,  MAX(dw_run_id) AS dw_run_id FROM INFOADVDW.fact_jrnl_actg WHERE dw_run_id >( CASE WHEN (SELECT MAX(dw_run_id) FROM INFOADVDW.smry_ldgrc) IS NULL THEN 0 ELSE (SELECT MAX(dw_run_id) FROM INFOADVDW.smry_ldgrc) END) GROUP BY fy_id,  bfy_id,  apd_id,  obj_id,  dobj_id,  rsrc_id,  drsrc_id,  bsa_id,  appr_id,  org_id,  actv_id,  func_id,  rept_id,  pscd_id,  prog_id,  fndg_id,  task_id,  fund_id,  tasko_id,  stage_id,  fappr_id,  bank_id ) aggregate ON(aggregate.fy_id = smry_ldgrc.fy_id AND aggregate.bfy_id = smry_ldgrc.bfy_id AND aggregate.apd_id = smry_ldgrc.apd_id AND aggregate.obj_id = smry_ldgrc.obj_id AND aggregate.dobj_id = smry_ldgrc.dobj_id AND aggregate.drsrc_id = smry_ldgrc.drsrc_id AND aggregate.bsa_id = smry_ldgrc.bsa_id AND aggregate.appr_id = smry_ldgrc.appr_id AND aggregate.org_id = smry_ldgrc.org_id AND aggregate.pscd_id = smry_ldgrc.pscd_id AND aggregate.rsrc_id = smry_ldgrc.rsrc_id AND aggregate.actv_id = smry_ldgrc.actv_id AND aggregate.func_id = smry_ldgrc.func_id AND aggregate.rept_id = smry_ldgrc.rept_id AND aggregate.prog_id = smry_ldgrc.prog_id AND aggregate.fndg_id = smry_ldgrc.fndg_id AND aggregate.task_id = smry_ldgrc.task_id AND aggregate.fund_id = smry_ldgrc.fund_id AND aggregate.tasko_id = smry_ldgrc.tasko_id AND aggregate.stage_id = smry_ldgrc.stage_id AND aggregate.fappr_id = smry_ldgrc.fappr_id AND aggregate.bank_id = smry_ldgrc.bank_id) WHEN matched THEN UPDATE SET pstng_am =( CASE WHEN smry_ldgrc.dw_run_id < aggregate.dw_run_id THEN aggregate.pstng_am + smry_ldgrc.pstng_am ELSE smry_ldgrc.pstng_am END),  debit_am =( CASE WHEN smry_ldgrc.dw_run_id < aggregate.dw_run_id THEN aggregate.debit_am + smry_ldgrc.debit_am ELSE smry_ldgrc.debit_am END),  credit_am =( CASE WHEN smry_ldgrc.dw_run_id < aggregate.dw_run_id THEN aggregate.credit_am + smry_ldgrc.credit_am ELSE smry_ldgrc.credit_am END),  dw_run_id = aggregate.dw_run_id WHEN NOT matched THEN INSERT(fy_id,  bfy_id,  apd_id,  func_id,  obj_id,  dobj_id,  rsrc_id,  drsrc_id,  bsa_id,  appr_id,  org_id,  actv_id,  rept_id,  pscd_id,  prog_id,  fndg_id,  task_id,  fund_id,  tasko_id,  stage_id,  fappr_id,  bank_id,  pstng_am,  debit_am,  credit_am,  dw_run_id,  smry_id) VALUES(aggregate.fy_id,  aggregate.bfy_id,  aggregate.apd_id,  aggregate.func_id,  aggregate.obj_id,  aggregate.dobj_id,  aggregate.rsrc_id,  aggregate.drsrc_id,  aggregate.bsa_id,  aggregate.appr_id,  aggregate.org_id,  aggregate.actv_id,  aggregate.rept_id,  aggregate.pscd_id,  aggregate.prog_id,  aggregate.fndg_id,  aggregate.task_id,  aggregate.fund_id,  aggregate.tasko_id,  aggregate.stage_id,  aggregate.fappr_id, aggregate.bank_id, aggregate.pstng_am,  aggregate.debit_am,  aggregate.credit_am,  aggregate.dw_run_id,  smry_id_smry_ldgrc.nextval)
      54u33yzyhgbfzmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -5456868426200898747 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -5456868426200898747 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      5kyb5bvnu3s04SELECT DISTINCT METRIC_GUID FROM MGMT_METRICS WHERE TARGET_TYPE = :B3 AND METRIC_NAME = :B2 AND METRIC_COLUMN = :B1
      5ms6rbzdnq16tselect job,  nvl2(last_date,  1,  0) from sys.job$ where (((:1 <= next_date) and (next_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1 = :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) and ((dbms_logstdby.db_is_logstdby = 0 and job < 1000000000) or (dbms_logstdby.db_is_logstdby = 1 and job >= 1000000000)) order by next_date,  job
      5qx3t2qx3yvhwmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -6167348534222010479 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -6167348534222010479 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      5r091aaztzamgmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 2742523433429481659 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 2742523433429481659 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      5wd668601x94zmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -2054253067739179613 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -2054253067739179613 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      5y6rx8pwt01j4SELECT CMS_InfoObjects6.ObjectID FROM CMS_InfoObjects6 WHERE (CMS_InfoObjects6.ParentID = 16 AND CMS_InfoObjects6.SI_TABLE = 2 AND CMS_InfoObjects6.SI_HIDDEN_OBJECT = 0) ORDER BY CMS_InfoObjects6.ObjName ASC,  CMS_InfoObjects6.ObjectID ASC
      6ajkhukk78nsrbegin prvt_hdm.auto_execute( :dbid,  :inst_num ,  :end_snap_id ); end;
      6c497nqzt5ucbmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -4727164215500186971 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -4727164215500186971 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      6cyh30w825yrvmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -1032364239925779722 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -1032364239925779722 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      6gvch1xu9ca3gDECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
      6nnk2k5jhjayumerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -7809665829075254595 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -7809665829075254595 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      6x3gu99adnjc7UPDATE MGMT_JOB_EXECUTION SET STEP_STATUS = :B3 WHERE STEP_STATUS = :B2 AND STEP_ID = :B1 AND START_TIME < (MGMT_JOB_ENGINE.SYSDATE_UTC() - (30/60/24))
      73r2unqj6pmmzmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 5850148404731847013 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 5850148404731847013 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      7kfkk9crxxpu2merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -7090855259769400956 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -7090855259769400956 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      7mj0raam6s94xmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -8073816946690833073 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -8073816946690833073 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      7vcwzqf7mgk3bINSERT INTO MGMT_JOB_EXECUTION (JOB_ID,  EXECUTION_ID,  STEP_ID,  SOURCE_STEP_ID,  ORIGINAL_STEP_ID,  RESTART_MODE,  STEP_NAME,  STEP_TYPE,  COMMAND_TYPE,  ITERATE_PARAM,  ITERATE_PARAM_INDEX,  PARENT_STEP_ID,  STEP_STATUS,  START_TIME,  TIMEZONE_REGION) VALUES (NULL,  NULL,  :B5 ,  NULL,  NULL,  0,  :B4 ,  :B3 ,  :B2 ,  NULL,  NULL,  NULL,  :B1 ,  MGMT_JOB_ENGINE.SYSDATE_UTC(),  'UTC')
      82c8cqp738bj8merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 3010759894027809217 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 3010759894027809217 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      8t43xdhf4d9x2SELECT CONTEXT_TYPE_ID, CONTEXT_TYPE, TRACE_LEVEL, NULL, NULL FROM EMDW_TRACE_CONFIG WHERE CONTEXT_TYPE = UPPER(:B1 )
      8u1rdyvdu8qwsmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 7698638469724361410 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 7698638469724361410 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      8vwv6hx92ymmmUPDATE MGMT_CURRENT_METRICS SET COLLECTION_TIMESTAMP = :B1 ,  VALUE = :B6 ,  STRING_VALUE = :B5 WHERE TARGET_GUID = :B4 AND METRIC_GUID = :B3 AND KEY_VALUE = :B2 AND COLLECTION_TIMESTAMP < :B1
      989y0x8t5kua7merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 8534491305754737728 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 8534491305754737728 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      99b0xbzzv6hujmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -8599671595023738887 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -8599671595023738887 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      9as863008p1b9SELECT CMS_InfoObjects6.ObjectID FROM CMS_InfoObjects6 WHERE ((CMS_InfoObjects6.TypeID = 16 AND SI_PLUGIN_OBJECT = 0) AND CMS_InfoObjects6.SI_TABLE = 2 AND CMS_InfoObjects6.SI_HIDDEN_OBJECT = 0) ORDER BY CMS_InfoObjects6.ObjectID ASC
      9g8jssns1pgvamerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 179987560003297649 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 179987560003297649 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      9kf97g7t4uggpmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 619353770652937297 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 619353770652937297 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      9wq1gqjpgbmhxmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 7796667876483736153 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 7796667876483736153 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      9ynzcrydnb83xselect count(1) from INFOADVDW.SMRY_LDGRC
      a3ua98ugr5xrpmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 7330850566557756970 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 7330850566557756970 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      a7z22y3zmhtqsselect from_tz( cast ((max(analyzetime) - 1) as timestamp),  to_char(systimestamp,  'TZH:TZM')) from sys.tab$ where analyzetime is not null
      ajmpug0qz3df6merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -2427820827332830357 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -2427820827332830357 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      ajymgnp1qnruwselect o.name,  o.owner# from obj$ o,  type$ t where o.oid$ = t.tvoid and bitand(t.properties, 8388608) = 8388608 and (sysdate-o.ctime) > 0.0007
      aq8yqxyyb40nnupdate sys.job$ set this_date=:1 where job=:2
      auu2un1cw4rz4merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 5232205877503799986 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 5232205877503799986 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      b9uufx8puwqbgmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -3779995108652777677 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -3779995108652777677 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      bfujkg8dw1aaxSELECT UPPER(PARAMETER_VALUE) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B1
      bqt8xr1had8k0merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 8865701207356531130 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 8865701207356531130 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      btwkwwx56w4z6SELECT target_guid FROM mgmt_metric_dependency WHERE can_calculate = 1 AND event_metric = 1 AND disabled = 0 AND rs_metric = 1 ORDER BY eval_order
      c0gvws85ubcgqSelect owner FROM all_objects WHERE object_name = 'QU_VERSION' AND object_type = 'PACKAGE' AND owner = USER UNION Select owner FROM all_synonyms WHERE synonym_name = 'QU_VERSION' AND owner = 'PUBLIC' UNION Select owner FROM all_synonyms WHERE synonym_name = 'QU_VERSION' AND owner = USER
      c8h3jdwaa532qSELECT TO_NUMBER(PARAMETER_VALUE) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B1
      cbbs3g9m5fam7merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 1848454943611128840 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 1848454943611128840 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      cf9wpns9um3urmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 2961767115442354803 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 2961767115442354803 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      ch4j3rg655ksamerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 4394118570604071627 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 4394118570604071627 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      cm5vu20fhtnq1select /*+ connect_by_filtering */ privilege#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0
      cpa67gnw4nh8cmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 4359427092780830592 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 4359427092780830592 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      cumjq42201t37select u1.user#,  u2.user#,  u3.user#,  failures,  flag,  interval#,  what,  nlsenv,  env,  field1,  next_date from sys.job$ j,  sys.user$ u1,  sys.user$ u2,  sys.user$ u3 where job=:1 and (next_date <= sysdate or :2 != 0) and lowner = u1.name and powner = u2.name and cowner = u3.name
      d1953wp5b1fvrmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 3837221163528400586 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 3837221163528400586 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      dn68njxgpv5dcmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -1534531090288913081 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -1534531090288913081 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      dpt0yjqwx48p8merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -758409252159869374 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -758409252159869374 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      dra1z5s8yjqpjSELECT DISTINCT LDGRA.FY_ID,  APD.FY,  APD.PER,  (SELECT CLDT.FY AS CURR_FY FROM INFOADVDW.DIM_CLDT CLDT,  INFOADVFW.DW_RUN_ID RUNID WHERE RUNID.END_DT IS NULL AND TRUNC (CLDT.CAL_DT) = TRUNC (RUNID.APPL_SYS_DT) AND RUNID.APP_IDTFR='ADVFIN' ) AS CURR_FY FROM INFOADVDW.DIM_APD APD,  INFOADVDW.SMRY_LDGRA LDGRA,  INFOADVFW.DW_RUN_ID RUNID WHERE LDGRA.APD_ID = APD.APD_ID AND APD.PER=0 AND LDGRA.DW_RUN_ID = RUNID.RUN_ID AND RUNID.END_DT IS NULL
      dt16a5jm4fjk6merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -5781293143257573277 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -5781293143257573277 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      dwssdqx28tzf5select sysdate + 1 / (24 * 60) from dual
      dz7vuxa6yzr5tmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -8784205258109773553 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -8784205258109773553 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      fsbqktj5vw6n9select next_run_date,  obj#,  run_job,  sch_job from (select decode(bitand(a.flags,  16384),  0,  a.next_run_date,  a.last_enabled_time) next_run_date,  a.obj# obj#,  decode(bitand(a.flags,  16384),  0,  0,  1) run_job,  a.sch_job sch_job from (select p.obj# obj#,  p.flags flags,  p.next_run_date next_run_date,  p.job_status job_status,  p.class_oid class_oid,  p.last_enabled_time last_enabled_time,  p.instance_id instance_id,  1 sch_job from sys.scheduler$_job p where bitand(p.job_status,  3) = 1 and ((bitand(p.flags,  134217728 + 268435456) = 0) or (bitand(p.job_status,  1024) <> 0)) and bitand(p.flags,  4096) = 0 and p.instance_id is NULL and (p.class_oid is null or (p.class_oid is not null and p.class_oid in (select b.obj# from sys.scheduler$_class b where b.affinity is null))) UNION ALL select q.obj#,  q.flags,  q.next_run_date,  q.job_status,  q.class_oid,  q.last_enabled_time,  q.instance_id,  1 from sys.scheduler$_lightweight_job q where bitand(q.job_status,  3) = 1 and ((bitand(q.flags,  134217728 + 268435456) = 0) or (bitand(q.job_status,  1024) <> 0)) and bitand(q.flags,  4096) = 0 and q.instance_id is NULL and (q.class_oid is null or (q.class_oid is not null and q.class_oid in (select c.obj# from sys.scheduler$_class c where c.affinity is null))) UNION ALL select j.job,  0,  from_tz(cast(j.next_date as timestamp),  to_char(systimestamp, 'TZH:TZM')),  1,  NULL,  from_tz(cast(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')),  NULL,  0 from sys.job$ j where (j.field1 is null or j.field1 = 0) and j.this_date is null) a order by 1) where rownum = 1
      fvk8jht12ydccmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -7024566935922477641 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -7024566935922477641 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      fzwnuj0amdfvrDELETE FROM MGMT_JOB_HISTORY H WHERE STEP_ID = :B1 AND NOT EXISTS (SELECT 1 FROM MGMT_JOB_EXECUTION E WHERE E.STEP_ID = H.STEP_ID AND E.STEP_STATUS = H.STEP_STATUS)
      g4s5nbmjhjydbmerge into SMRY_BALANCE smry_balance using (SELECT APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT FROM ( select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID AS BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  (case when PSCD_CLOS_CL_CD ='7' then -2302263740728710673 when PSCD_CLOS_CL_CD IN ('10', '11', '12', '13', '14', '15') then -883780301321302802 when PSCD_CLOS_CL_CD ='16' then 2816367642256817989 when PSCD_CLOS_CL_CD ='17' then -4495578948117342668 else SMRY_BALANCE.PSCD_ID end) AS PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  sum(DEBIT_BAL_AMT) as DEBIT_BAL_AMT,  sum(CREDIT_BAL_AMT) as CREDIT_BAL_AMT,  sum(DEBIT_ACT_AMT) as DEBIT_ACT_AMT,  sum(CREDIT_ACT_AMT) as CREDIT_ACT_AMT,  sum(NET_ACT_AMT) as NET_ACT_AMT,  sum(BEG_BAL_AMT) as BEG_BAL_AMT,  sum(END_BAL_AMT) as END_BAL_AMT,  max(smry_balance.DW_RUN_ID) as DW_RUN_ID from SMRY_BALANCE smry_balance join dim_pscd on smry_balance.pscd_id = dim_pscd.pscd_id where apd_id = 1421279859672578447 group by APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID ,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  (case when PSCD_CLOS_CL_CD ='7' then -2302263740728710673 when PSCD_CLOS_CL_CD IN ('10', '11', '12', '13', '14', '15') then -883780301321302802 when PSCD_CLOS_CL_CD ='16' then 2816367642256817989 when PSCD_CLOS_CL_CD ='17' then -4495578948117342668 else SMRY_BALANCE.PSCD_ID end) ,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID ) WHERE DW_RUN_ID > 0 ) prior_apd on ( smry_balance.APD_ID = 619353770652937297 and prior_apd.ACTV_ID = smry_balance.ACTV_ID and prior_apd.APPR_ID = smry_balance.APPR_ID and prior_apd.BSA_ID = smry_balance.BSA_ID and prior_apd.BFY_ID = smry_balance.BFY_ID and prior_apd.DOBJ_ID = smry_balance.DOBJ_ID and prior_apd.DRSRC_ID = smry_balance.DRSRC_ID and prior_apd.FAPPR_ID = smry_balance.FAPPR_ID and smry_balance.FY_ID = 7974058370632877713 and prior_apd.FUNC_ID = smry_balance.FUNC_ID and prior_apd.FUND_ID = smry_balance.FUND_ID and prior_apd.FNDG_ID = smry_balance.FNDG_ID and prior_apd.OBJ_ID = smry_balance.OBJ_ID and prior_apd.ORG_ID = smry_balance.ORG_ID and prior_apd.PROG_ID = smry_balance.PROG_ID and prior_apd.PSCD_ID = smry_balance.PSCD_ID and prior_apd.REPT_ID = smry_balance.REPT_ID and prior_apd.RSRC_ID = smry_balance.RSRC_ID and prior_apd.STAGE_ID = smry_balance.STAGE_ID and prior_apd.TASK_ID = smry_balance.TASK_ID and prior_apd.TASKO_ID = smry_balance.TASKO_ID and prior_apd.BANK_ID = smry_balance.BANK_ID) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = prior_apd.DEBIT_BAL_AMT + smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = prior_apd.CREDIT_BAL_AMT + smry_balance.CREDIT_ACT_AMT,  BEG_BAL_AMT = prior_apd.END_BAL_AMT,  END_BAL_AMT = prior_apd.END_BAL_AMT + smry_balance.NET_ACT_AMT,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID,  BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID ) VALUES ( 619353770652937297,  prior_apd.ACTV_ID,  prior_apd.APPR_ID,  prior_apd.BSA_ID,  prior_apd.BFY_ID,  prior_apd.DOBJ_ID,  prior_apd.DRSRC_ID,  prior_apd.FAPPR_ID,  7974058370632877713,  prior_apd.FUNC_ID,  prior_apd.FUND_ID,  prior_apd.FNDG_ID,  prior_apd.OBJ_ID,  prior_apd.ORG_ID,  prior_apd.PROG_ID,  prior_apd.PSCD_ID,  prior_apd.REPT_ID,  prior_apd.RSRC_ID,  prior_apd.STAGE_ID,  prior_apd.TASK_ID,  prior_apd.TASKO_ID,  prior_apd.BANK_ID,  prior_apd.DEBIT_BAL_AMT /* DEBIT_BAL_AMT * /,  prior_apd.CREDIT_BAL_AMT /* CREDIT_BAL_AMT */,  0 /* DEBIT_ACT_AMT */,  0 /* CREDIT_ACT_AMT */,  0 /* NET_ACT_AMT */,  prior_apd.END_BAL_AMT /* BEG_BAL_AMT */,  prior_apd.END_BAL_AMT /* END_BAL_AMT */,  1 )
      gdfw9p5mvpkupmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -8356719462146523696 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -8356719462146523696 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      gkwmmst5u7btwmerge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = -4919458795120610462 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = -4919458795120610462 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      gqhcv1v6msst4merge into SMRY_BALANCE smry_balance using (select APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_AM,  CREDIT_AM,  PSTNG_AM,  DW_RUN_ID from SMRY_LDGRC where apd_id = 652984659069526468 AND DW_RUN_ID > 0) source_fact on ( smry_balance.APD_ID = 652984659069526468 and source_fact.ACTV_ID = smry_balance.ACTV_ID and source_fact.APPR_ID = smry_balance.APPR_ID and source_fact.BSA_ID = smry_balance.BSA_ID and source_fact.BFY_ID = smry_balance.BFY_ID and source_fact.DOBJ_ID = smry_balance.DOBJ_ID and source_fact.DRSRC_ID = smry_balance.DRSRC_ID and source_fact.FAPPR_ID = smry_balance.FAPPR_ID and source_fact.FY_ID = smry_balance.FY_ID and source_fact.FUNC_ID = smry_balance.FUNC_ID and source_fact.FUND_ID = smry_balance.FUND_ID and source_fact.FNDG_ID = smry_balance.FNDG_ID and source_fact.OBJ_ID = smry_balance.OBJ_ID and source_fact.ORG_ID = smry_balance.ORG_ID and source_fact.PROG_ID = smry_balance.PROG_ID and source_fact.PSCD_ID = smry_balance.PSCD_ID and source_fact.REPT_ID = smry_balance.REPT_ID and source_fact.RSRC_ID = smry_balance.RSRC_ID and source_fact.STAGE_ID = smry_balance.STAGE_ID and source_fact.TASK_ID = smry_balance.TASK_ID and source_fact.TASKO_ID = smry_balance.TASKO_ID and source_fact.BANK_ID = smry_balance.BANK_ID ) WHEN MATCHED THEN UPDATE SET DEBIT_BAL_AMT = smry_balance.DEBIT_BAL_AMT + source_fact.DEBIT_AM - smry_balance.DEBIT_ACT_AMT,  CREDIT_BAL_AMT = smry_balance.CREDIT_BAL_AMT + source_fact.CREDIT_AM - smry_balance.CREDIT_ACT_AMT,  DEBIT_ACT_AMT = source_fact.DEBIT_AM,  CREDIT_ACT_AMT = source_fact.CREDIT_AM,  END_BAL_AMT = smry_balance.END_BAL_AMT + source_fact.PSTNG_AM - smry_balance.NET_ACT_AMT,  NET_ACT_AMT = source_fact.PSTNG_AM,  DW_RUN_ID = 1 WHEN NOT MATCHED THEN INSERT ( APD_ID,  ACTV_ID,  APPR_ID,  BSA_ID,  BFY_ID,  DOBJ_ID,  DRSRC_ID,  FAPPR_ID,  FY_ID,  FUNC_ID,  FUND_ID,  FNDG_ID,  OBJ_ID,  ORG_ID,  PROG_ID,  PSCD_ID,  REPT_ID,  RSRC_ID,  STAGE_ID,  TASK_ID,  TASKO_ID, BANK_ID,  DEBIT_BAL_AMT,  CREDIT_BAL_AMT,  DEBIT_ACT_AMT,  CREDIT_ACT_AMT,  NET_ACT_AMT,  BEG_BAL_AMT,  END_BAL_AMT,  DW_RUN_ID) VALUES ( source_fact.APD_ID,  source_fact.ACTV_ID,  source_fact.APPR_ID,  source_fact.BSA_ID,  source_fact.BFY_ID,  source_fact.DOBJ_ID,  source_fact.DRSRC_ID,  source_fact.FAPPR_ID,  source_fact.FY_ID,  source_fact.FUNC_ID,  source_fact.FUND_ID,  source_fact.FNDG_ID,  source_fact.OBJ_ID,  source_fact.ORG_ID,  source_fact.PROG_ID,  source_fact.PSCD_ID,  source_fact.REPT_ID,  source_fact.RSRC_ID,  source_fact.STAGE_ID,  source_fact.TASK_ID,  source_fact.TASKO_ID,  source_fact.BANK_ID,  source_fact.DEBIT_AM /* DEBIT_ACT_AMT */,  source_fact.CREDIT_AM /* CREDIT_ACT_AMT */,  source_fact.DEBIT_AM /* DEBIT_BAL_AMT */,  source_fact.CREDIT_AM /* CREDIT_BAL_AMT */,  source_fact.PSTNG_AM /* NET_ACT_AMT */,  0 /* BEG_BAL_AMT */,  source_fact.PSTNG_AM /* END_BAL_AMT */,  1 /* DW_RUN_ID */ )
      gwtkbw2nr5fk4SELECT FY,  PER FROM (SELECT DISTINCT APD_ID FROM SMRY_LDGRC WHERE DW_RUN_ID > 0 ) SOURCE_TABLE JOIN DIM_APD ON SOURCE_TABLE.APD_ID = DIM_APD.APD_ID WHERE (DIM_APD.FY > 2000 OR (DIM_APD.FY = 2000 AND DIM_APD.PER >= 1)) AND DIM_APD.FY NOT IN (0, 9999) AND DIM_APD.PER NOT IN (0, 99) ORDER BY FY ASC,  PER ASC

       

      Back to SQL Statistics
      Back to Top

       

       

      Instance Activity Statistics

      Back to Top

       

      Instance Activity Stats

      • Ordered by statistic name
      StatisticTotalper Secondper Trans
      Batched IO (bound) vector count210.000.00
      Batched IO (full) vector count180.000.00
      Batched IO block miss count3,1170.010.06
      Batched IO buffer defrag count130.000.00
      Batched IO double miss count30.000.00
      Batched IO same unit count2280.000.00
      Batched IO single block count40.000.00
      Batched IO vector block count2,9010.010.06
      Batched IO vector read count380.000.00
      Block Cleanout Optim referenced1880.000.00
      CCursor + sql area evicted3450.000.01
      CPU used by this session49,741,90799.04961.87
      CPU used when call started49,456,51398.47956.35
      CR blocks created4,4660.010.09
      Cached Commit SCN referenced15,3200.030.30
      Commit SCN cached27,5200.050.53
      DB time102,347,639203.781,979.11
      DBWR checkpoint buffers written3,853,2757.6774.51
      DBWR checkpoints6150.000.01
      DBWR object drop buffers written00.000.00
      DBWR revisited being-written buffer300.000.00
      DBWR thread checkpoint buffers written1,363,0602.7126.36
      DBWR transaction table writes25,4670.050.49
      DBWR undo block writes665,5251.3312.87
      HSC Heap Segment Block Changes5,218,45410.39100.91
      Heap Segment Array Inserts1,967,5413.9238.05
      Heap Segment Array Updates2,6110.010.05
      IMU CR rollbacks4380.000.01
      IMU Flushes18,7430.040.36
      IMU Redo allocation size28,483,08456.71550.78
      IMU commits48,9020.100.95
      IMU contention410.000.00
      IMU ktichg flush50.000.00
      IMU pool not allocated1090.000.00
      IMU recursive-transaction flush270.000.00
      IMU undo allocation size259,669,960517.015,021.27
      IMU- failed to get a private strand1090.000.00
      LOB table id lookup cache misses10.000.00
      Number of read IOs issued00.000.00
      Requests to/from client923,8171.8417.86
      RowCR - row contention00.000.00
      RowCR attempts26,4420.050.51
      RowCR hits26,4420.050.51
      SMON posted for undo segment shrink2640.000.01
      SQL*Net roundtrips to/from client923,8191.8417.86
      TBS Extension: bytes extended13,044,285,44025,971.61252,238.96
      TBS Extension: files extended1280.000.00
      TBS Extension: tasks created640.000.00
      TBS Extension: tasks executed640.000.00
      active txn count during cleanout1,464,6102.9228.32
      application wait time440.000.00
      auto extends on undo tablespace00.000.00
      background checkpoints completed4120.000.01
      background checkpoints started4100.000.01
      background timeouts2,608,4035.1950.44
      branch node splits1,0330.000.02
      buffer is not pinned count42,306,845,62884,234.35818,092.69
      buffer is pinned count3,014,489,365,1136,001,949.4658,291,552.87
      bytes received via SQL*Net from client423,431,048843.078,187.94
      bytes sent via SQL*Net to client793,945,3371,580.7715,352.62
      calls to get snapshot scn: kcmgss4,065,4838.0978.61
      calls to kcmgas1,693,0403.3732.74
      calls to kcmgcs2,882,5365.7455.74
      cell physical IO interconnect bytes91,744,072,704182,665.531,774,066.46
      change write time15,6660.030.30
      cleanout - number of ktugct calls1,783,3683.5534.49
      cleanouts and rollbacks - consistent read gets470.000.00
      cleanouts only - consistent read gets319,0670.646.17
      cluster key scan block gets468,9580.939.07
      cluster key scans388,9840.777.52
      commit batch/immediate performed9,2440.020.18
      commit batch/immediate requested9,2440.020.18
      commit cleanout failures: block lost180.000.00
      commit cleanout failures: buffer being written2450.000.00
      commit cleanout failures: callback failure6410.000.01
      commit cleanout failures: cannot pin720.000.00
      commit cleanouts2,273,2684.5343.96
      commit cleanouts successfully completed2,272,2924.5243.94
      commit immediate performed9,2440.020.18
      commit immediate requested9,2440.020.18
      commit txn count during cleanout541,1521.0810.46
      concurrency wait time32,0160.060.62
      consistent changes15,9950.030.31
      consistent gets50,351,385,508100,251.30973,650.96
      consistent gets - examination18,474,55536.78357.24
      consistent gets direct110.000.00
      consistent gets from cache50,351,385,497100,251.30973,650.96
      consistent gets from cache (fastpath)50,331,922,630100,212.55973,274.60
      cursor authentications3,2610.010.06
      data blocks consistent reads - undo records applied7,1740.010.14
      db block changes25,900,84051.57500.85
      db block gets52,269,410104.071,010.74
      db block gets direct2,1750.000.04
      db block gets from cache52,267,235104.071,010.70
      db block gets from cache (fastpath)19,015,41337.86367.70
      deferred (CURRENT) block cleanout applications516,2471.039.98
      dirty buffers inspected358,4790.716.93
      enqueue conversions117,4520.232.27
      enqueue deadlocks00.000.00
      enqueue releases5,840,60211.63112.94
      enqueue requests5,840,56511.63112.94
      enqueue timeouts00.000.00
      enqueue waits6540.000.01
      exchange deadlocks00.000.00
      execute count2,403,4384.7946.48
      failed probes on index block reclamation50.000.00
      file io service time27,6370.060.53
      file io wait time1,723,508,3343,431.5633,327.69
      free buffer inspected2,797,0555.5754.09
      free buffer requested2,872,7615.7255.55
      heap block compress392,4460.787.59
      hot buffers moved to head of LRU2,961,1715.9057.26
      immediate (CR) block cleanout applications319,1140.646.17
      immediate (CURRENT) block cleanout applications730,6051.4514.13
      in call idle wait time1,145,633,1562,280.9922,153.25
      index crx upgrade (positioned)1,2920.000.02
      index fast full scans (full)1,1980.000.02
      index fetch by key8,951,11917.82173.09
      index scans kdiixs150,308,221100.17972.82
      leaf node 90-10 splits9,6360.020.19
      leaf node splits204,0080.413.94
      lob reads4,1210.010.08
      lob writes4,3940.010.08
      lob writes unaligned4,3940.010.08
      logical read bytes from cache412,906,723,213,312822,111,137.977,984,428,263.40
      logons cumulative28,9290.060.56
      max cf enq hold time1000.000.00
      messages received1,039,7472.0720.11
      messages sent1,039,7472.0720.11
      min active SCN optimization applied on CR3,2920.010.06
      no buffer to keep pinned count7,9160.020.15
      no work - consistent read gets50,330,094,151100,208.91973,239.24
      non-idle wait count3,181,8526.3461.53
      non-idle wait time292,6770.585.66
      opened cursors cumulative2,243,3394.4743.38
      parse count (describe)1240.000.00
      parse count (failures)3240.000.01
      parse count (hard)30,3640.060.59
      parse count (total)525,5041.0510.16
      parse time cpu14,9650.030.29
      parse time elapsed16,4280.030.32
      physical read IO requests312,7210.626.05
      physical read bytes7,895,384,06415,719.97152,674.02
      physical read total IO requests759,3421.5114.68
      physical read total bytes15,134,885,88830,134.07292,665.16
      physical read total multi block requests7,7100.020.15
      physical reads963,7921.9218.64
      physical reads cache765,5891.5214.80
      physical reads cache prefetch468,0080.939.05
      physical reads direct198,2030.393.83
      physical reads direct (lob)00.000.00
      physical reads direct temporary tablespace198,1920.393.83
      physical reads prefetch warmup00.000.00
      physical write IO requests2,498,0134.9748.30
      physical write bytes38,849,798,14477,351.25751,243.34
      physical write total IO requests3,205,8536.3861.99
      physical write total bytes76,609,186,816152,531.461,481,401.30
      physical write total multi block requests117,0360.232.26
      physical writes4,742,4079.4491.70
      physical writes direct116,7570.232.26
      physical writes direct (lob)190.000.00
      physical writes direct temporary tablespace114,6240.232.22
      physical writes from cache4,625,6509.2189.45
      physical writes non checkpoint2,052,9714.0939.70
      pinned buffers inspected1400.000.00
      prefetch clients - default00.000.00
      prefetch warmup blocks aged out before use00.000.00
      prefetched blocks aged out before use20.000.00
      process last non-idle time502,5401.009.72
      recursive calls11,705,36223.31226.35
      recursive cpu usage62,6060.121.21
      redo blocks checksummed by FG (exclusive)23,711,09547.21458.50
      redo blocks written32,534,80264.78629.13
      redo buffer allocation retries2,5330.010.05
      redo entries15,682,39931.22303.25
      redo log space requests4,7780.010.09
      redo log space wait time23,7940.050.46
      redo ordering marks710,8221.4213.75
      redo size16,087,568,08832,030.89311,087.29
      redo size for direct writes16,0400.030.31
      redo subscn max counts2,260,7014.5043.72
      redo synch long waits170.000.00
      redo synch poll writes00.000.00
      redo synch polls00.000.00
      redo synch time2750.000.01
      redo synch time (usec)5,698,18211.35110.19
      redo synch writes10,8780.020.21
      redo wastage64,478,672128.381,246.83
      redo write time26,4010.050.51
      redo writes249,4680.504.82
      rollback changes - undo records applied9,9310.020.19
      rollbacks only - consistent read gets4,3500.010.08
      root node splits20.000.00
      rows fetched via callback7,630,10315.19147.54
      session connect time106,4500.212.06
      session cursor cache hits1,392,8442.7726.93
      session logical reads50,403,654,877100,355.37974,661.69
      shared hash latch upgrades - no wait658,9891.3112.74
      shared hash latch upgrades - wait50.000.00
      sorts (disk)30.000.00
      sorts (memory)1,410,7182.8127.28
      sorts (rows)7,583,40115.10146.64
      sql area evicted27,3150.050.53
      sql area purged4380.000.01
      summed dirty queue length719,5881.4313.91
      switch current to new buffer341,1060.686.60
      table fetch by rowid1,528,385,734,6733,043,067.2729,554,583.57
      table fetch continued row12,316,18624.52238.16
      table scan blocks gotten3,154,5196.2861.00
      table scan rows gotten72,661,755144.671,405.07
      table scans (long tables)1000.000.00
      table scans (rowid ranges)00.000.00
      table scans (short tables)160,3160.323.10
      total cf enq hold time52,2400.101.01
      total number of cf enq holders14,7860.030.29
      total number of times SMON posted1,1870.000.02
      transaction rollbacks9,1420.020.18
      transaction tables consistent read rollbacks550.000.00
      transaction tables consistent reads - undo records applied8430.000.02
      undo change vector size3,576,293,3967,120.5269,155.23
      user I/O wait time34,8100.070.67
      user calls1,443,4982.8727.91
      user commits51,6900.101.00
      user rollbacks240.000.00
      workarea executions - onepass60.000.00
      workarea executions - optimal491,3740.989.50
      write clones created in background2120.000.00
      write clones created in foreground2,0330.000.04

       

      Back to Instance Activity Statistics
      Back to Top

       

      Instance Activity Stats - Absolute Values

      • Statistics with absolute values (should not be diffed)
      StatisticBegin ValueEnd Value
      logons current5940
      session uga memory max11,080,217,56033,258,597,200
      session pga memory9,023,610,56029,406,847,056
      session pga memory max9,665,734,97630,615,282,416
      session cursor cache count208,098666,862
      session uga memory17,781,882,868,09658,774,524,252,792
      opened cursors current163532

       

      Back to Instance Activity Statistics
      Back to Top

       

      Instance Activity Stats - Thread Activity

      • Statistics identified by '(derived)' come from sources other than SYSSTAT
      StatisticTotalper Hour
      log switches (derived)4102.94

       

      Back to Instance Activity Statistics
      Back to Top

       

       

      IO Stats

      Back to Top

       

      IOStat by Function summary

      • 'Data' columns suffixed with M,G,T,P are in multiples of 1024     other columns suffixed with K,M,G,T,P are in multiples of 1000
      • ordered by (Data Read + Write) desc
      Function NameReads: DataReqs   per secData   per secWrites: DataReqs   per secData   per secWaits: CountAvg   Tm(ms)
      DBWR12M0.00.00002335.2G4.94.071784902.8K1.11
      Others6.2G0.82.01265519.5G0.87.039808845.3K0.24
      LGWR536M0.07.00106715.6G0.54.031886543K0.58
      Buffer Cache Reads5.8G0.60.0119060M0.000M297.5K0.85
      Direct Reads1.5G0.02.003082351M0.00.00069810.5K0.00
      Direct Writes0M0.000M560M0.01.00111449861.75
      Strexxx AQ0M0.000M0M0.000M513.24
      TOTAL:14.1G1.51.02873471.3G6.36.1452932604.2K0.68

       

      Back to IO Stats
      Back to Top

       

      IOStat by Filetype summary

      • 'Data' columns suffixed with M,G,T,P are in multiples of 1024     other columns suffixed with K,M,G,T,P are in multiples of 1000
      • Small Read and Large Read are average service times, in milliseconds
      • Ordered by (Data Read + Write) desc
      Filetype NameReads: DataReqs   per secData   per secWrites: DataReqs   per secData   per secSmall ReadLarge Read
      Data File5.9G0.62.01203135.3G4.96.0719380.718.29
      Log File1M0.00.00000115.5G0.53.0316290.00 
      Control File6.7G0.87.0136186.5G0.84.0131600.00 
      TOTAL:5.2G1.39.01068749.2G6.21.1003420.31-1.74

       

      Back to IO Stats
      Back to Top

       

      IOStat by Function/Filetype summary

      • 'Data' columns suffixed with M,G,T,P are in multiples of 1024     other columns suffixed with K,M,G,T,P are in multiples of 1000
      • Ordered by (Data Read + Write) desc for each function
      Function/File NameReads: DataReqs   per secData   per secWrites: DataReqs   per secData   per secWaits: CountAvg   Tm(ms)
      DBWR12M0.00.00002335.2G4.94.0717847720.00
      DBWR (Data File)0M0.000M35.2G4.94.07178450.00
      DBWR (Control File)12M0.00.0000230M0.000M7670.00
      Others6.2G0.82.01265519.5G0.86.039800416.5K0.00
      Others (Data File)62M0.02.00012313.2G0.04.02689813.7K0.02
      Others (Control File)6.1G0.80.0125316.3G0.83.012901402.8K0.00
      LGWR536M0.07.00106715.6G0.54.03188635.9K0.00
      LGWR (Log File)1M0.00.00000115.5G0.53.03162916360.01
      LGWR (Control File)535M0.07.001065129M0.02.00025634.2K0.00
      Buffer Cache Reads5.8G0.60.0119060M0.000M297.3K0.80
      Buffer Cache Reads (Data File)5.8G0.60.0119060M0.000M297.3K0.80
      Direct Reads1.5G0.02.003080351M0.00.0006980 
      Direct Reads (Data File)1.5G0.02.003080351M0.00.0006980 
      Direct Writes0M0.000M560M0.01.0011140 
      Direct Writes (Data File)0M0.000M560M0.01.0011140 
      Strexxx AQ0M0.000M0M0.000M513.24
      Strexxx AQ (Data File)0M0.000M0M0.000M513.24
      TOTAL:14.1G1.51.02873271.3G6.36.145285750.5K0.32

       

      Back to IO Stats
      Back to Top

       

      Tablespace IO Stats

      • ordered by IOs (Reads + Writes) desc
      TablespaceReadsAv    Reads/sAv   Rd(ms)Av    Blks/RdWritesAv Writes/sBuffer WaitsAv Buf Wt(ms)
      PODDATA276,53210.902.592,055,393430.00
      UNDOTBS12601.151.00329,02711320.38
      TEMP60,15300.0021.0968,0420194.21
      SYSAUX17,05701.161.70100,474000.00
      SYSTEM8,66401.572.237,6530681.91
      USERS400.001.000000.00

       

      Back to IO Stats
      Back to Top

       

      File IO Stats

      • ordered by Tablespace, File
      TablespaceFilenameReadsAv    Reads/sAv   Rd(ms)Av    Blks/RdWritesAv Writes/sBuffer WaitsAv Buf Wt(ms)
      PODDATA/backup/oradata/xxxinfo/PODDATA03.dbf24010.835.9664,625000.00
      PODDATA/backup/oradata/xxxinfo/PODDATA04.dbf1006.003.6056,174000.00
      PODDATA/backup/oradata/xxxinfo/PODDATA05.dbf52,87800.832.61356,709100.00
      PODDATA/backup/oradata/xxxinfo/PODDATA06.dbf55,46600.982.56336,485100.00
      PODDATA/backup/oradata/xxxinfo/PODDATA07.dbf59,43300.892.54329,589100.00
      PODDATA/backup/oradata/xxxinfo/PODDATA08.dbf54,22400.852.65313,094100.00
      PODDATA/backup/oradata/xxxinfo/PODDATA09.dbf54,16200.942.62328,357100.00
      PODDATA/backup/oradata/xxxinfo/PODDATA10.dbf800.001.00270,082100.00
      PODDATA/u02/oradata/xxxinfo/PODDATA01.dbf23002.831.73138030.00
      PODDATA/u02/oradata/xxxinfo/PODDATA02.dbf9703.921.87140000.00
      SYSAUX/u02/oradata/xxxinfo/sysaux01.dbf17,05701.161.70100,474000.00
      SYSTEM/u02/oradata/xxxinfo/system01.dbf8,66401.572.237,6530681.91
      TEMP/backup/oradata/xxxinfo/temp/TEMP01.dbf58,02800.0021.0465,9860194.21
      TEMP/backup/oradata/xxxinfo/temp/TEMP02.dbf2,12500.0022.422,05600 
      UNDOTBS1/u02/oradata/xxxinfo/undotbs01.dbf2601.151.00329,02711320.38
      USERS/u02/oradata/xxxinfo/users01.dbf400.001.000000.00

       

      Back to IO Stats
      Back to Top

       

       

      Buffer Pool Statistics

      Back to Top

       

      Buffer Pool Statistics

      • Standard block size Pools  D: default,  K: keep,  R: recycle
      • Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
      PNumber of BuffersPool Hit%Buffer GetsPhysical ReadsPhysical WritesFree Buff WaitWrit Comp WaitBuffer Busy Waits
      D609,03910050,403,616,100765,6424,625,65000203

       

      Back to Buffer Pool Statistics
      Back to Top

       

      Checkpoint Activity

      • Total Physical Writes:                    4,742,407
      MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
      0573,447002,490,111789,613

       

      Back to Buffer Pool Statistics
      Back to Top

       

       

      Advisory Statistics

      Back to Top

       

      Instance Recovery Stats

      • B: Begin Snapshot,  E: End Snapshot
      Targt MTTR  (s)Estd MTTR (s)Recovery Estd IOsActual  RedoBlksTarget  RedoBlksLog Sz  RedoBlksLog Ckpt Timeout RedoBlksLog Ckpt Interval RedoBlksOpt Log Sz(M)Estd RAC Avail Time
      B01913025241773165888165888388931   
      E08864221065771658886577   

       

      Back to Advisory Statistics
      Back to Top

       

      MTTR Advisory

       

                        No data exists for this section of the report.

       

      Back to Advisory Statistics
      Back to Top

       

      Buffer Pool Advisory

      • Only rows with estimated physical reads >0 are displayed
      • ordered by Block Size, Buffers For Estimate
      PSize for Est (M)Size FactorBuffers (thousands)Est Phys Read FactorEstimated Phys Reads (thousands)Est Phys Read TimeEst %DBtime for Rds
      D4800.10591.30156,65012540.00
      D9600.191181.22147,78412398.00
      D1,4400.291771.09131,51212138.00
      D1,9200.392371.03124,09712020.00
      D2,4000.492961.02122,77311999.00
      D2,8800.583551.01121,92211985.00
      D3,3600.684141.01121,45211977.00
      D3,8400.784731.00121,17411973.00
      D4,3200.875321.00120,99611970.00
      D4,8000.975911.00120,87611968.00
      D4,9441.006091.00120,84311968.00
      D5,2801.076501.00120,77811967.00
      D5,7601.177101.00120,68111965.00
      D6,2401.267691.00120,57311963.00
      D6,7201.368281.00120,49911962.00
      D7,2001.468871.00120,45911962.00
      D7,6801.559461.00120,42411961.00
      D8,1601.651,0051.00120,39411961.00
      D8,6401.751,0641.00120,36911960.00
      D9,1201.841,1231.00120,34811960.00
      D9,6001.941,1831.00120,33011960.00

       

      Back to Advisory Statistics
      Back to Top

       

      PGA Aggr Summary

      • PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
      PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
      77.7510,1192,895

       

      Back to Advisory Statistics
      Back to Top

       

      PGA Aggr Target Stats

      • B: Begin Snap   E: End Snap (rows dentified with B or E contain data    which is absolute i.e. not diffed over the interval)
      • Auto PGA Target - actual workarea memory target
      • W/A PGA Used    - amount of memory used for all Workareas (manual + auto)
      • %PGA W/A Mem    - percentage of PGA memory allocated to workareas
      • %Auto W/A Mem   - percentage of workarea memory controlled by Auto Mem Mgmt
      • %Man W/A Mem    - percentage of workarea memory under manual control
      PGA Aggr Target(M)Auto PGA Target(M)PGA Mem  Alloc(M)W/A PGA  Used(M)%PGA W/A Mem%Auto W/A Mem%Man W/A MemGlobal Mem Bound(K)
      B2,0481,763349.800.730.21100.000.00209,710
      E2,0481,783124.870.000.000.000.00209,710

       

      Back to Advisory Statistics
      Back to Top

       

      PGA Aggr Target Histogram

      • Optimal Executions are purely in-memory operations
        Low Optimal  High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
      2K4K485,002485,00200
      64K128K87487400
      128K256K6600
      256K512K34434400
      512K1024K4,2974,29700
      1M2M49049000
      2M4M4400
      4M8M28028000
      8M16M1100
      32M64M6600
      64M128M2110
      128M256M5230
      1G2G2020

       

      Back to Advisory Statistics
      Back to Top

       

      PGA Memory Advisory

      • When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value    where Estd PGA Overalloc Count is 0
      PGA Target Est (MB)Size FactrW/A MB ProcessedEstd Extra    W/A MB Read/   Written to DiskEstd PGA Cache Hit %Estd PGA Overalloc CountEstd Time
      2560.1318,077.434,046.8982.0004,150,690
      5120.2518,077.433,833.0083.0004,110,563
      1,0240.5018,077.433,692.3883.0004,084,182
      1,5360.7518,077.433,692.3883.0004,084,182
      2,0481.0018,077.433,692.3883.0004,084,182
      2,4581.2018,077.432,858.8286.0003,927,799
      2,8671.4018,077.432,858.8286.0003,927,799
      3,2771.6018,077.432,858.8286.0003,927,799
      3,6861.8018,077.432,858.8286.0003,927,799
      4,0962.0018,077.432,858.8286.0003,927,799
      6,1443.0018,077.432,858.8286.0003,927,799
      8,1924.0018,077.432,858.8286.0003,927,799
      12,2886.0018,077.432,858.8286.0003,927,799
      16,3848.0018,077.432,858.8286.0003,927,799

       

      Back to Advisory Statistics
      Back to Top

       

      Shared Pool Advisory

      • SP: Shared Pool     Est LC: Estimated Library Cache   Factr: Factor
      • Note there is often a 1:Many correlation between a single logical object    in the Library Cache, and the physical number of memory objects associated    with it.  Therefore comparing the number of Lib Cache objects (e.g. in     v$librarycache), with the number of Lib Cache Memory Objects is invalid.
      Shared Pool Size(M)SP Size FactrEst LC Size (M)Est LC Mem ObjEst LC Time Saved (s)Est LC Time Saved FactrEst LC Load Time (s)Est LC Load Time FactrEst LC Mem Obj Hits (K)
      7520.69729,348199,5050.8923,99942.5526,395
      8640.7918316,354207,8570.9315,64727.7427,369
      9280.8524720,911212,6320.9510,87219.2827,922
      9440.8726221,990213,8070.969,69717.1928,060
      9600.8827823,118214,9870.968,51715.1028,197
      9760.9029424,228216,1570.977,34713.0328,335
      9920.9131025,318217,3210.976,18310.9628,472
      1,0080.9332626,370218,4880.985,0168.8928,610
      1,0240.9434227,447219,6540.993,8506.8328,748
      1,0400.9635828,534220,7440.992,7604.8928,880
      1,0560.9737429,621221,4750.992,0293.6028,991
      1,0720.9939030,708222,2041.001,3002.3129,102
      1,0881.0040631,795222,9401.005641.0031,508
      1,1041.0142232,882222,9421.005621.0031,509
      1,1201.0343734,036222,9421.005621.0031,509
      1,1361.0445335,202222,9421.005621.0031,509
      1,1521.0646936,368222,9421.005621.0031,509
      1,1681.0748537,534222,9421.005621.0031,509
      1,1841.0950138,700222,9421.005621.0031,509
      1,2001.1051739,866222,9431.005610.9931,509
      1,2161.1253240,977222,9431.005610.9931,509
      1,2321.1354842,033222,9431.005610.9931,509
      1,3121.2162746,937222,9451.005590.9931,509
      1,4241.3173951,100222,9451.005590.9931,509
      1,5361.4185155,263222,9461.005580.9931,509
      1,6481.5196260,194222,9461.005580.9931,509
      1,7601.621,07366,344222,9461.005580.9931,509
      1,8721.721,18472,494222,9461.005580.9931,510
      1,9841.821,29578,644222,9461.005580.9931,510
      2,0961.931,40684,794222,9461.005580.9931,510
      2,2082.031,51790,944222,9471.005570.9931,510

       

      Back to Advisory Statistics
      Back to Top

       

      SGA Target Advisory

        SGA Target Size (M)SGA Size FactorEst DB Time (s)Est Physical Reads
        1,5360.25736,537156,612,415
        2,3040.38729,610147,742,545
        3,0720.50729,245124,057,334
        3,8400.63729,172122,740,147
        4,6080.75729,172121,422,959
        5,3760.88729,172120,963,756
        6,1441.00729,170120,842,913
        6,9121.13729,172120,649,564
        7,6801.25729,172120,540,806
        8,4481.38729,172120,468,300
        9,2161.50729,172120,359,541
        9,9841.63729,172120,359,541
        10,7521.75729,172120,299,120
        11,5201.88729,172120,299,120
        12,2882.00729,172120,299,120

         

        Back to Advisory Statistics
        Back to Top

         

        Strexxx Pool Advisory

          Size for Est (MB)Size FactorEst Spill CountEst Spill Time (s)Est Unspill CountEst Unspill Time (s)
          160.500000
          321.000000
          481.500000
          642.000000
          802.500000
          963.000000
          1123.500000
          1284.000000
          1444.500000
          1605.000000
          1765.500000
          1926.000000
          2086.500000
          2247.000000
          2407.500000
          2568.000000
          2728.500000
          2889.000000
          3049.500000
          32010.000000

           

          Back to Advisory Statistics
          Back to Top

           

          Java Pool Advisory

           

                            No data exists for this section of the report.

           

          Back to Advisory Statistics
          Back to Top

           

           

          Wait Statistics

          Back to Top

           

          Buffer Wait Statistics

          • ordered by wait time desc, waits desc
          ClassWaitsTotal Wait Time (s)Avg Time (ms)
          data block7102
          undo header12600
          file header block500
          undo block100

           

          Back to Wait Statistics
          Back to Top

           

          Enqueue Activity

          • only enqueues with waits are shown 
          • Enqueue stats gathered prior to 10g should not be compared with 10g data
          • ordered by Wait Time desc, Waits desc
          Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
          TS-Temporary Segment1,1781,177023618,035.00
          CF-Controlfile Transaction197,663197,663028015.21
          RO-Multiple Object Reuse (fast object reuse)2,0502,050016102.67
          CR-Reuse Block Range (block range reuse ckpt)20,15220,152020501.71
          TX-Transaction623,298623,2990303.33
          PR-Process Startup19,21119,21101010.00
          JS-Job Scheduler (queue lock)1,822,9661,822,9660200.00

           

          Back to Wait Statistics
          Back to Top

           

           

          Undo Statistics

          Back to Top

           

          Undo Segment Summary

          • Min/Max TR (mins) - Min and Max Tuned Retention (minutes)
          • STO - Snapshot Too Old count,  OOS - Out of Space count
          • Undo segment block stats:
          • uS - unexpired Stolen,   uR - unexpired Released,   uU - unexpired reUsed
          • eS - expired   Stolen,   eR - expired   Released,   eU - expired   reUsed
          Undo TS#Num Undo Blocks (K)Number of TransactionsMax Qry Len (s)Max Tx ConcurcyMin/Max TR (mins)STO/ OOS   uS/uR/uU/    eS/eR/eU
          2730.521,267,81015,532515/270.90/00/0/0/0/0/0

           

          Back to Undo Statistics
          Back to Top

           

          Undo Segment Stats

          • Most recent 35 Undostat rows, ordered by Time desc
          End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOS  uS/uR/uU/   eS/eR/eU
          18-Jul 08:21561687,29821370/00/0/0/0/0/0
          18-Jul 08:1148726,69721270/00/0/0/0/0/0
          18-Jul 08:011421796,09641170/00/0/0/0/0/0
          18-Jul 07:5154685,49541070/00/0/0/0/0/0
          18-Jul 07:4151784,8953970/00/0/0/0/0/0
          18-Jul 07:3149674,2942870/00/0/0/0/0/0
          18-Jul 07:21511493,6932770/00/0/0/0/0/0
          18-Jul 07:1149733,0913670/00/0/0/0/0/0
          18-Jul 07:011662132,4904570/00/0/0/0/0/0
          18-Jul 06:5152821,8903470/00/0/0/0/0/0
          18-Jul 06:4149661,2893370/00/0/0/0/0/0
          18-Jul 06:3143826882260/00/0/0/0/0/0
          18-Jul 06:2113,2174,8666963270/00/0/0/0/0/0
          18-Jul 06:115117412,95642310/00/0/0/0/0/0
          18-Jul 06:0115416612,35652210/00/0/0/0/0/0
          18-Jul 05:51527811,75532110/00/0/0/0/0/0
          18-Jul 05:41536811,15332010/00/0/0/0/0/0
          18-Jul 05:31527910,55231910/00/0/0/0/0/0
          18-Jul 05:2150679,95131810/00/0/0/0/0/0
          18-Jul 05:11511699,35031710/00/0/0/0/0/0
          18-Jul 05:011501828,75041610/00/0/0/0/0/0
          18-Jul 04:5149648,44931520/00/0/0/0/0/0
          18-Jul 04:4149807,84831420/00/0/0/0/0/0
          18-Jul 04:3153687,24741320/00/0/0/0/0/0
          18-Jul 04:21551696,64621220/00/0/0/0/0/0
          18-Jul 04:1155716,04621120/00/0/0/0/0/0
          18-Jul 04:011682045,44541020/00/0/0/0/0/0
          18-Jul 03:5152784,8442920/00/0/0/0/0/0
          18-Jul 03:4151654,2433820/00/0/0/0/0/0
          18-Jul 03:3157833,6423720/00/0/0/0/0/0
          18-Jul 03:2144663,0412620/00/0/0/0/0/0
          18-Jul 03:11581802,4403520/00/0/0/0/0/0
          18-Jul 03:011391571,8394420/00/0/0/0/0/0
          18-Jul 02:5159861,2385320/00/0/0/0/0/0

           

          Back to Undo Statistics
          Back to Top

           

           

          Latch Statistics

          Back to Top

           

          Latch Activity

          • "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for     willing-to-wait latch get requests
          • "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
          • "Pct Misses" for both should be very close to 0.0
          Latch NameGet RequestsPct Get MissAvg Slps /MissWait Time (s)NoWait RequestsPct NoWait Miss
          AQ deq hash table latch5300.00 00 
          AQ dequeue txn counter latch640.00 00 
          AQ disk delete txn counter latch710.00 00 
          ASM db client latch338,7800.00 00 
          ASM map operation hash table1400.00 00 
          ASM network state latch8,8580.00 00 
          AWR Alerted Metric Element list3,752,0930.00 00 
          Change Notification Hash table latch167,4880.00 00 
          Consistent RBA249,8830.000.0000 
          DML lock allocation1,101,0570.00 00 
          Event Group Locks48,4550.00 00 
          FIB s.o chain latch2960.00 00 
          FOB s.o list latch41,5040.00 00 
          File IO Stats segmented array latch220.00 00 
          File State Object Pool Parent Latch1400.00 00 
          I/O Staticstics latch1400.00 00 
          IPC stats buffer allocation latch1400.00 00 
          In memory undo latch871,4090.000.470173,8150.00
          JS Sh mem access1,0720.00 00 
          JS broadcast autostart latch9,0470.00 00 
          JS mem alloc latch1,4570.00 00 
          JS queue access latch1,5970.00 00 
          JS queue state obj latch3,645,9320.00 00 
          JS slv state obj latch40,0440.440.0000 
          KFC FX Hash Latch1400.00 00 
          KFC Hash Latch1400.00 00 
          KFCL LE Freelist1400.00 00 
          KGNFS-NFS:SHM structure1400.00 00 
          KGNFS-NFS:SVR LIST1410.00 00 
          KJC message pool free list1400.00 00 
          KJCT flow control latch1400.00 00 
          KMG MMAN ready and startup request latch167,3590.00 00 
          KTF sga latch2,6610.080.000154,5730.00
          KWQMN job cache list latch2,2780.00 00 
          KWQP Prop Status2800.00 00 
          KWQS pqsubs latch3160.00 00 
          KWQS pqueue ctx latch10,3500.00 00 
          Locator state objects pool parent latch1400.00 00 
          Lsod array latch1400.00 00 
          MQL Tracking Latch0  010,0290.00
          Memory Management Latch1400.00 0167,3590.00
          Memory Queue1400.00 00 
          Memory Queue Message Subscriber #11400.00 00 
          Memory Queue Message Subscriber #21400.00 00 
          Memory Queue Message Subscriber #31400.00 00 
          Memory Queue Message Subscriber #41400.00 00 
          Memory Queue Subscriber1400.00 00 
          MinActiveScn Latch5,5780.00 00 
          Mutex1400.00 00 
          Mutex Stats1400.00 00 
          OS process173,7960.00 00 
          OS process allocation1,115,0530.010.0000 
          OS process: request allocation38,7910.00 00 
          PL/SQL warning settings40,4180.00 00 
          PX hash array latch1400.00 00 
          QMT1400.00 00 
          Real-time plan statistics latch519,8030.00 00 
          Result Cache: RC Latch20.00 00 
          SGA IO buffer pool latch27,8500.030.00044,7420.01
          SGA blob parent1400.00 00 
          SGA bucket locks1400.00 00 
          SGA heap locks1400.00 00 
          SGA pool locks1400.00 00 
          SQL memory manager latch1400.00 0167,2670.00
          SQL memory manager workarea list latch11,391,3450.00 00 
          Shared B-Tree49,0410.00 00 
          Strexxx Generic1400.00 00 
          Testing1400.00 00 
          Token Manager1400.00 00 
          WCR: sync1400.00 00 
          Write State Object Pool Parent Latch1400.00 00 
          X$KSFQP1400.00 00 
          XDB NFS Security Latch1400.00 00 
          XDB unused session pool1400.00 00 
          XDB used session pool1400.00 00 
          active checkpoint queue latch1,249,1800.160.0000 
          active service list1,127,4240.000.050288,6340.00
          archive control620.00 00 
          begin backup scn array2890.00 00 
          buffer pool1400.00 00 
          business card1400.00 00 
          cache buffer handles1,401,1220.00 00 
          cache buffers chains100,867,838,4860.000.0003,562,6930.00
          cache buffers lru chain5,348,9950.100.0007,758,5200.03
          cache table scan latch6,0520.00 06,0520.00
          call allocation154,9770.140.7600 
          cas latch1400.00 00 
          change notification client cache latch1400.00 00 
          channel handle pool latch41,0610.000.0000 
          channel operations parent latch2,529,0100.000.0000 
          checkpoint queue latch81,650,8120.000.0104,750,1700.00
          client/application info91,1050.00 00 
          compile environment latch28,9290.00 00 
          corrupted undo seg latch38,9420.00 00 
          cp cmon/server latch1400.00 00 
          cp pool latch1400.00 00 
          cp server hash latch1400.00 00 
          cp sga latch8,8580.00 00 
          cvmap freelist lock1400.00 00 
          database property service latch480.00 00 
          deferred cleanup latch8,8580.00 00 
          dml lock allocation9,3540.00 00 
          done queue latch1400.00 00 
          dummy allocation58,0170.010.0000 
          enqueue freelist latch1400.00 08,631,3780.00
          enqueue hash chains11,805,8510.000.000130.00
          enqueues1850.00 00 
          fast space usage latch30.00 00 
          fifth spare latch1400.00 00 
          file cache latch27,3120.00 00 
          file number translation table80.00 00 
          flashback copy1400.00 00 
          fourth Audit Vault latch1400.00 00 
          gc element1400.00 00 
          gcs commit scn state1400.00 00 
          gcs partitioned table hash1400.00 00 
          gcs pcm hashed value bucket hash1400.00 00 
          gcs resource freelist1400.00 00 
          gcs resource hash1400.00 00 
          gcs resource scan list1400.00 00 
          gcs shadows freelist1400.00 00 
          ges domain table1400.00 00 
          ges enqueue table freelist1400.00 00 
          ges group table1400.00 00 
          ges process hash list1400.00 00 
          ges process parent latch1400.00 00 
          ges resource hash list1400.00 00 
          ges resource scan list1400.00 00 
          ges resource table freelist1400.00 00 
          ges value block free list1400.00 00 
          global KZLD latch for mem in SGA1750.00 00 
          global tx hash mapping1400.00 00 
          granule operation1400.00 00 
          hash table column usage latch4,0470.00 01,158,9650.00
          hash table modification latch12,8980.00 00 
          heartbeat check1400.00 00 
          internal temp table object number allocation latch1210.00 00 
          interrupt manipulation70.00 00 
          intra txn parallel recovery1400.00 00 
          io pool granule metadata list1400.00 00 
          job workq parent latch9,6840.00 09,6580.23
          job_queue_processes free list latch19,7550.00 00 
          job_queue_processes parameter latch118,7140.00 00 
          k2q lock allocation1400.00 00 
          kcbtsemkid latch4100.00 00 
          kcfis latch80.00 00 
          kdlx hb parent latch1400.00 00 
          kgb parent1400.00 00 
          kgnfs mount latch1400.00 00 
          kmcptab latch360.00 00 
          kmcpvec latch0  0120.00
          kokc descriptor allocation latch52,9680.00 00 
          ksfv messages1400.00 00 
          ksim group membership cache1400.00 00 
          kss move lock4,7900.00 00 
          ksuosstats global area50,6350.001.0000 
          ksv allocation latch18,1620.00 00 
          ksv class latch9,4480.030.0000 
          ksv msg queue latch1400.00 00 
          ksz_so allocation latch38,7910.120.0000 
          ktm global data10,2670.00 00 
          kwqbsn:qsga18,2120.00 00 
          lgwr LWN SCN253,6500.010.0000 
          list of block allocation128,4250.010.0000 
          loader state object freelist6980.00 00 
          lob segment dispenser latch1400.00 00 
          lob segment hash table latch1,8120.00 00 
          lob segment query latch1400.00 00 
          lock DBA buffer during media recovery1400.00 00 
          logical standby cache1400.00 00 
          logminer context allocation2800.00 00 
          logminer work area1400.00 00 
          longop free list parent1450.00 040.00
          mapped buffers lru chain1400.00 00 
          message pool operations parent latch28,6260.00 00 
          messages7,484,9900.040.0000 
          mostly latch-free SCN255,9750.280.0000 
          msg queue latch1400.00 00 
          multiblock read objects13,5000.00 00 
          multiple dbwriter suspend110.00 00 
          name-service namespace bucket1400.00 00 
          ncodef allocation latch8,8580.00 00 
          object queue header heap9,966,2490.000.00011,1310.00
          object queue header operation29,525,7700.010.0000 
          object stats modification2,4800.080.0000 
          parallel ibr array220.00 00 
          parallel query alloc buffer66,4840.00 00 
          parallel query stats1400.00 00 
          parameter list18,1200.00 00 
          parameter table management139,3530.000.0000 
          peshm1400.00 00 
          pesom_free_list1400.00 00 
          pesom_hash_node1400.00 00 
          post/wait queue271,7590.260.000241,3110.13
          process allocation58,0020.160.00019,3860.00
          process group creation38,7910.080.0000 
          process queue1400.00 00 
          process queue reference1400.00 00 
          qmn task queue latch108,8430.00 00 
          query server freelists1400.00 00 
          queued dump request1,6730.00 00 
          queuing load statistics1400.00 00 
          recovery domain hash list1400.00 00 
          redo allocation1,199,9670.080.00015,687,1760.01
          redo copy3320.00 015,688,1130.03
          redo writing2,353,4880.070.0000 
          resmgr group change latch596,5690.000.0000 
          resmgr:active threads101,7550.001.000100,8340.00
          resmgr:actses change group14,0660.00 00 
          resmgr:actses change state9120.00 00 
          resmgr:free threads list59,1290.030.0000 
          resmgr:method mem alloc latch1200.00 00 
          resmgr:plan CPU method1400.00 00 
          resmgr:resource group CPU method7000.00 00 
          resmgr:schema config626,2500.010.0103,3600.00
          resmgr:session queuing1400.00 00 
          resumable state object80.00 00 
          rm cas latch1400.00 00 
          row cache objects29,151,6780.040.0008250.00
          rules engine aggregate statistics40.00 00 
          rules engine rule set statistics14,0080.00 00 
          second Audit Vault latch1400.00 00 
          second spare latch1400.00 00 
          sequence cache10,430,0380.000.0000 
          session allocation558,8500.000.000505,1710.00
          session idle bit3,363,3840.000.0000 
          session queue latch1400.00 00 
          session state list latch63,4670.010.0000 
          session switching28,4030.00 00 
          session timer168,1130.00 00 
          shared pool5,729,9520.040.0800 
          shared pool sim alloc2,1750.00 00 
          shared pool simulator116,3630.001.0000 
          sim partition latch1400.00 00 
          simulator hash latch3,150,860,2220.000.0000 
          simulator lru latch3,470,9100.040.0003,147,137,4860.00
          sort extent pool15,6490.00 00 
          space background state object latch1,5230.00 00 
          space background task latch627,0380.420.020335,5590.00
          state object free list2820.00 00 
          statistics aggregation78,4000.00 00 
          tablespace key chain2,4810.00 00 
          temp lob duration state obj allocation2820.00 00 
          temporary table state object allocation540.00 00 
          test excl. parent l01400.00 00 
          test excl. parent2 l01400.00 00 
          third spare latch1400.00 00 
          threshold alerts latch18,2540.00 00 
          transaction allocation125,7140.000.17020.00
          transaction branch allocation168,1130.00 00 
          undo global data4,754,9620.000.0000 
          virtual circuit buffers1400.00 00 
          virtual circuit holder1400.00 00 
          virtual circuit queues1400.00 00 

           

          Back to Latch Statistics
          Back to Top

           

          Latch Sleep Breakdown

          • ordered by misses desc
          Latch NameGet RequestsMissesSleepsSpin Gets
          cache buffers chains100,867,838,48660,7743660,742
          row cache objects29,151,67810,724510,720
          cache buffers lru chain5,348,9955,385135,372
          object queue header operation29,525,7703,21473,207
          space background task latch627,0382,623532,570
          shared pool5,729,9522,1901792,025
          active checkpoint queue latch1,249,1802,02622,024
          redo writing2,353,4881,69931,696
          checkpoint queue latch81,650,8127077700
          call allocation154,97721716653
          enqueue hash chains11,805,8512051204
          resmgr:schema config626,25086185
          In memory undo latch871,409301416
          active service list1,127,42420119
          transaction allocation125,714615
          resmgr:active threads101,755330
          ksuosstats global area50,635220
          shared pool simulator116,363110

           

          Back to Latch Statistics
          Back to Top

           

          Latch Miss Sources

          • only latches with sleeps are shown
          • ordered by name, sleeps desc
          Latch NameWhereNoWait Misses   SleepsWaiter Sleeps
          In memory undo latchktiFlush: child0133
          In memory undo latchkticmt: child047
          PC and Classifier lists for WLMNo latch070
          active checkpoint queue latchkcbbacq: scan active checkpoints022
          active service listkswsclstabc: scan list to return rows010
          active service listkswsite: service iterator011
          cache buffers chainskcbgcur_202513
          cache buffers chainskcbgtcr: fast path (cr pin)01116
          cache buffers chainskcbbxsv030
          cache buffers chainskcbgtcr: kslbegin shared021
          cache buffers chainskcbbic1010
          cache buffers chainskcbchg1: mod cr pin011
          cache buffers chainskcbnew: new latch again010
          cache buffers chainskcbzgb: scan from tail. nowait010
          cache buffers lru chainkcbzgws0110
          cache buffers lru chainkcbbic20211
          call allocationksuxds016122
          call allocationksudlp: top call05134
          checkpoint queue latchkcbbwthc: thread checkpoint buffers070
          enqueue hash chainsksqcnl010
          ksuosstats global areaksugetosstat022
          object queue header operationkcbo_switch_cq033
          object queue header operationkcbo_switch_q_bg031
          object queue header operationkcbo_switch_mq_bg020
          object queue header operationkcbo_link_q012
          object queue header operationkcbo_unlink_q_bg010
          redo writingkcrfw_cal_target_rba010
          redo writingkcrfw_post: rba scn pair010
          redo writingkcrfwcr0