Plan hash value: 1608863478
------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 82928 | 28M| | 376K (1)| 01:15:23 |
| 1 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 1 | 11 | | 2 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IND_BRANCH_002 | 1 | | | 1 (0)| 00:00:01 |
| 3 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 1 | 18 | | 2 (0)| 00:00:01 |
|* 4 | INDEX RANGE SCAN | IND_BRANCH_002 | 1 | | | 1 (0)| 00:00:01 |
| 5 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 1 | 11 | | 2 (0)| 00:00:01 |
|* 6 | INDEX RANGE SCAN | IND_BRANCH_002 | 1 | | | 1 (0)| 00:00:01 |
| 7 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 1 | 18 | | 2 (0)| 00:00:01 |
|* 8 | INDEX RANGE SCAN | IND_BRANCH_002 | 1 | | | 1 (0)| 00:00:01 |
| 9 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 1 | 11 | | 2 (0)| 00:00:01 |
|* 10 | INDEX RANGE SCAN | IND_BRANCH_002 | 1 | | | 1 (0)| 00:00:01 |
| 11 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 1 | 18 | | 2 (0)| 00:00:01 |
|* 12 | INDEX RANGE SCAN | IND_BRANCH_002 | 1 | | | 1 (0)| 00:00:01 |
| 13 | TEMP TABLE TRANSFORMATION | | | | | | |
| 14 | LOAD AS SELECT | SYS_TEMP_0FD9D6DCA_6CB3C16D | | | | | |
| 15 | HASH GROUP BY | | 1261K| 32M| 526M| 200K (1)| 00:40:10 |
| 16 | TABLE ACCESS FULL | F_AGT_SAVB_ACCTINFO_H | 15M| 391M| | 153K (1)| 00:30:46 |
| 17 | HASH GROUP BY | | 82928 | 28M| 32M| 176K (1)| 00:35:13 |
|* 18 | FILTER | | | | | | |
|* 19 | HASH JOIN RIGHT OUTER | | 82928 | 28M| | 169K (1)| 00:33:56 |
| 20 | VIEW | V_M_PTY_EMP_INFO | 7465 | 1829K| | 270 (1)| 00:00:04 |
|* 21 | HASH JOIN RIGHT OUTER | | 7465 | 1975K| | 270 (1)| 00:00:04 |
| 22 | VIEW | | 100 | 23800 | | 143 (1)| 00:00:02 |
|* 23 | HASH JOIN RIGHT OUTER | | 100 | 19800 | | 143 (1)| 00:00:02 |
|* 24 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 23 | 322 | | 3 (0)| 00:00:01 |
| 25 | VIEW | | 100 | 18400 | | 140 (1)| 00:00:02 |
|* 26 | HASH JOIN RIGHT OUTER | | 100 | 14400 | | 140 (1)| 00:00:02 |
|* 27 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 114 | 1596 | | 3 (0)| 00:00:01 |
| 28 | VIEW | | 100 | 13000 | | 137 (1)| 00:00:02 |
|* 29 | HASH JOIN RIGHT OUTER | | 28879 | 2143K| | 137 (1)| 00:00:02 |
|* 30 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 12 | 168 | | 3 (0)| 00:00:01 |
|* 31 | HASH JOIN RIGHT OUTER | | 28879 | 1748K| | 133 (0)| 00:00:02 |
| 32 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 152 | 3800 | | 3 (0)| 00:00:01 |
|* 33 | HASH JOIN RIGHT OUTER | | 28879 | 1043K| | 130 (0)| 00:00:02 |
| 34 | VIEW | M_CBS_TO_DW_ORG | 144 | 1872 | | 3 (0)| 00:00:01 |
| 35 | UNION-ALL | | | | | | |
|* 36 | TABLE ACCESS FULL | F_PTY_ORG | 129 | 2838 | | 5 (0)| 00:00:01 |
|* 37 | INDEX FULL SCAN | IND_BRANCH_001 | 15 | 105 | | 1 (0)| 00:00:01 |
|* 38 | TABLE ACCESS FULL | F_PTY_EMP_INFO | 25885 | 606K| | 127 (0)| 00:00:02 |
|* 39 | TABLE ACCESS FULL | F_PTY_EMP_INFO | 7465 | 240K| | 128 (1)| 00:00:02 |
|* 40 | HASH JOIN OUTER | | 80106 | 8761K| 6280K| 169K (1)| 00:33:53 |
| 41 | VIEW | | 77474 | 5371K| | 155K (1)| 00:31:02 |
| 42 | NESTED LOOPS OUTER | | 77474 | 8852K| | 155K (1)| 00:31:02 |
| 43 | VIEW | | 77474 | 5523K| | 155K (1)| 00:31:02 |
| 44 | UNION-ALL | | | | | | |
| 45 | NESTED LOOPS OUTER | | 380 | 64600 | | 3167 (1)| 00:00:38 |
| 46 | NESTED LOOPS OUTER | | 182 | 23660 | | 2438 (1)| 00:00:30 |
|* 47 | HASH JOIN OUTER | | 182 | 16562 | | 1892 (1)| 00:00:23 |
| 48 | INLIST ITERATOR | | | | | | |
|* 49 | TABLE ACCESS BY INDEX ROWID | F_EVT_SETR_REM_SND | 182 | 6916 | | 629 (0)| 00:00:08 |
|* 50 | INDEX RANGE SCAN | ASDFDAF | 2432 | | | 8 (0)| 00:00:01 |
| 51 | VIEW | | 1261K| 63M| | 1260 (1)| 00:00:16 |
| 52 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6DCA_6CB3C16D | 1261K| 32M| | 1260 (1)| 00:00:16 |
| 53 | TABLE ACCESS BY INDEX ROWID | F_COMR_CIFACCTNO | 1 | 39 | | 3 (0)| 00:00:01 |
|* 54 | INDEX RANGE SCAN | SYS_C0036662 | 1 | | | 2 (0)| 00:00:01 |
|* 55 | TABLE ACCESS BY INDEX ROWID | F_AGT_CADB_BOOK_H | 2 | 80 | | 4 (0)| 00:00:01 |
|* 56 | INDEX RANGE SCAN | F_AGT_CADB_BOOK_H_IDX2 | 2 | | | 2 (0)| 00:00:01 |
|* 57 | HASH JOIN OUTER | | 69758 | 11M| 4584K| 124K (1)| 00:24:58 |
|* 58 | HASH JOIN OUTER | | 33483 | 4185K| 2848K| 29937 (1)| 00:06:00 |
|* 59 | HASH JOIN OUTER | | 33483 | 2452K| | 24656 (1)| 00:04:56 |
|* 60 | TABLE ACCESS FULL | F_EVT_SETR_BEPS_SND | 33367 | 1173K| | 15733 (1)| 00:03:09 |
| 61 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1911K| 71M| | 8918 (1)| 00:01:48 |
| 62 | VIEW | | 1261K| 63M| | 1260 (1)| 00:00:16 |
| 63 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6DCA_6CB3C16D | 1261K| 32M| | 1260 (1)| 00:00:16 |
|* 64 | TABLE ACCESS FULL | F_AGT_CADB_BOOK_H | 562K| 21M| | 93268 (1)| 00:18:40 |
| 65 | NESTED LOOPS OUTER | | 7250 | 1231K| | 25554 (1)| 00:05:07 |
|* 66 | HASH JOIN OUTER | | 3521 | 460K| | 11627 (1)| 00:02:20 |
|* 67 | HASH JOIN OUTER | | 3521 | 326K| | 2704 (1)| 00:00:33 |
| 68 | TABLE ACCESS BY INDEX ROWID | F_EVT_EXTR_MID_LIST | 3521 | 144K| | 1441 (1)| 00:00:18 |
|* 69 | INDEX RANGE SCAN | EXTR_MID_LIST_IDX1 | 3535 | | | 665 (1)| 00:00:08 |
| 70 | VIEW | | 1261K| 63M| | 1260 (1)| 00:00:16 |
| 71 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6DCA_6CB3C16D | 1261K| 32M| | 1260 (1)| 00:00:16 |
| 72 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1911K| 71M| | 8918 (1)| 00:01:48 |
|* 73 | TABLE ACCESS BY INDEX ROWID | F_AGT_CADB_BOOK_H | 2 | 80 | | 4 (0)| 00:00:01 |
|* 74 | INDEX RANGE SCAN | F_AGT_CADB_BOOK_H_IDX2 | 2 | | | 2 (0)| 00:00:01 |
| 75 | NESTED LOOPS OUTER | | 86 | 14964 | | 1601 (1)| 00:00:20 |
| 76 | NESTED LOOPS OUTER | | 42 | 5628 | | 1433 (1)| 00:00:18 |
|* 77 | HASH JOIN OUTER | | 42 | 3990 | | 1307 (1)| 00:00:16 |
| 78 | TABLE ACCESS BY INDEX ROWID | F_EVT_EXTR_MID_LIST | 42 | 1764 | | 44 (0)| 00:00:01 |
|* 79 | INDEX RANGE SCAN | EXTR_MID_LIST_IDX1 | 42 | | | 34 (0)| 00:00:01 |
| 80 | VIEW | | 1261K| 63M| | 1260 (1)| 00:00:16 |
| 81 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6DCA_6CB3C16D | 1261K| 32M| | 1260 (1)| 00:00:16 |
| 82 | TABLE ACCESS BY INDEX ROWID | F_COMR_CIFACCTNO | 1 | 39 | | 3 (0)| 00:00:01 |
|* 83 | INDEX RANGE SCAN | SYS_C0036662 | 1 | | | 2 (0)| 00:00:01 |
|* 84 | TABLE ACCESS BY INDEX ROWID | F_AGT_CADB_BOOK_H | 2 | 80 | | 4 (0)| 00:00:01 |
|* 85 | INDEX RANGE SCAN | F_AGT_CADB_BOOK_H_IDX2 | 2 | | | 2 (0)| 00:00:01 |
|* 86 | TABLE ACCESS BY INDEX ROWID | F_AGT_EXTR_CUST_INFO_H | 1 | 44 | | 3 (0)| 00:00:01 |
|* 87 | INDEX RANGE SCAN | SYS_C0036172 | 1 | | | 2 (0)| 00:00:01 |
|* 88 | VIEW | | 590K| 23M| | 12408 (1)| 00:02:29 |
|* 89 | WINDOW SORT PUSHED RANK | | 590K| 23M| 31M| 12408 (1)| 00:02:29 |
|* 90 | TABLE ACCESS FULL | F_PTY_TABLE | 590K| 23M| | 6033 (1)| 00:01:13 |
|* 91 | FILTER | | | | | | |
|* 92 | CONNECT BY NO FILTERING WITH SW (UNIQUE)| | | | | | |
| 93 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 82 | 1476 | | 3 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - access("ID"=:B1)
4 - access("ID"=:B1)
6 - access("ID"=:B1)
8 - access("ID"=:B1)
10 - access("ID"=:B1)
12 - access("ID"=:B1)
18 - filter( EXISTS (SELECT 0 FROM "B_M_SYS_BRANCH" "T" WHERE "T"."ORG_ID"=:B1 AND "T"."STATUS"=1 START WITH
TO_NUMBER("T"."ORG_ID")=10000 CONNECT BY "T"."PARENT_ID"=PRIOR "T"."ID") OR TO_NUMBER("EMP"."FTH_ORG_NO")=10000)
19 - access("EMP"."PTY_ID"(+)=NVL("CC"."CUST_MAGR","AA"."CUST_MAGR"))
21 - access("T"."START_DT"="B"."START_DT"(+) AND "T"."SOURCE_CODE"="B"."SOURCE_CODE"(+) AND "T"."PTY_ID"="B"."PTY_ID"(+))
23 - access("FST"."SEC_ORG_ID"="ORG_ID"(+))
24 - filter("ORG_LEVEL"(+)=2)
26 - access("ORG_ID"(+)=NVL("SEC"."THD_ORG_ID","SEC"."ORG_ID"))
27 - filter("ORG_LEVEL"(+)=3)
29 - access("C"."ORG_ID"="ORG_ID"(+))
30 - filter("ORG_LEVEL"(+)=4)
31 - access("B"."ORG_ID"="C"."ORG_ID"(+))
33 - access("A"."ORG_NO"="B"."PTY_ID"(+))
36 - filter("END_DT"=TO_DATE(' 2999-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
37 - filter("ORG_ID" LIKE '%8888%' AND "ORG_ID" IS NOT NULL AND "ORG_ID" IS NOT NULL OR "ORG_ID" LIKE '%9999%' AND
"ORG_ID" IS NOT NULL AND "ORG_ID" IS NOT NULL)
38 - filter("A"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
39 - filter("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE('
2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
40 - access("PTY_ID"(+)="from$_subquery$_032"."PTY_ID")
47 - access("XX"."PAYER_ACCT_NO"="CC"."AGMT_ID"(+))
49 - filter("XX"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "XX"."TRANS_DATE"<=TO_DATE('
2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
50 - access("XX"."REC_OPER_NO"='99088' OR "XX"."REC_OPER_NO"='99772')
54 - access("XX"."PAYER_ACCT_NO"="CUST_ACT"."ACCT_NO"(+))
55 - filter("T"."START_DT"(+)<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
56 - access("XX"."PAYER_ACCT_NO"="T"."AGMT_ID"(+) AND "T"."END_DT"(+)>TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND "T"."END_DT"(+) IS NOT NULL)
57 - access("XX"."PAYER_ACCT_NO"="T"."AGMT_ID"(+))
58 - access("XX"."PAYER_ACCT_NO"="CC"."AGMT_ID"(+))
59 - access("XX"."PAYER_ACCT_NO"="CUST_ACT"."ACCT_NO"(+))
60 - filter("XX"."CLEAR_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND ("XX"."REC_OPER_NO"='99088'
OR "XX"."REC_OPER_NO"='99772') AND "XX"."CLEAR_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
64 - filter("T"."END_DT"(+)>TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"(+)<=TO_DATE('
2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
66 - access("AA"."PAY_ACCT_NO"="CUST_ACT"."ACCT_NO"(+))
67 - access("AA"."PAY_ACCT_NO"="CC"."AGMT_ID"(+))
69 - access("AA"."BUSINESS_CODE"='1003' AND "AA"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss')
AND "AA"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
filter("AA"."TRANS_CODE"='gw0091' OR "AA"."TRANS_CODE"='gw0092' OR "AA"."TRANS_CODE"='gw1401' OR
"AA"."TRANS_CODE"='gw1402')
73 - filter("T"."START_DT"(+)<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
74 - access("AA"."PAY_ACCT_NO"="T"."AGMT_ID"(+) AND "T"."END_DT"(+)>TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND "T"."END_DT"(+) IS NOT NULL)
77 - access("AA"."PAY_ACCT_NO"="CC"."AGMT_ID"(+))
79 - access("AA"."BUSINESS_CODE"='1012' AND "AA"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss')
AND "AA"."TRANS_CODE"='MB1019' AND "AA"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
filter("AA"."TRANS_CODE"='MB1019')
83 - access("AA"."PAY_ACCT_NO"="CUST_ACT"."ACCT_NO"(+))
84 - filter("T"."START_DT"(+)<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
85 - access("AA"."PAY_ACCT_NO"="T"."AGMT_ID"(+) AND "T"."END_DT"(+)>TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND "T"."END_DT"(+) IS NOT NULL)
86 - filter("CC"."END_DT"(+)>TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
87 - access("CC"."AGMT_ID"(+)="AA"."PTY_ID" AND "CC"."EXT_TYPE"(+)=DECODE("AA"."BUSINESS_CODE",'1003','1','1012','8') AND
"CC"."START_DT"(+)<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
filter(("CC"."EXT_TYPE"(+)='1' OR "CC"."EXT_TYPE"(+)='8') AND "CC"."START_DT"(+)<=TO_DATE(' 2014-03-31 00:00:00',
'syyyy-mm-dd hh24:mi:ss') AND "CC"."EXT_TYPE"(+)=DECODE("AA"."BUSINESS_CODE",'1003','1','1012','8'))
88 - filter("ROW_NO"(+)=1)
89 - filter(ROW_NUMBER() OVER ( PARTITION BY "B"."PTY_ID" ORDER BY "B"."CORP_ORG")<=1)
90 - filter("B"."END_DT"=TO_DATE(' 2999-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
91 - filter("T"."ORG_ID"=:B1 AND "T"."STATUS"=1)
92 - access("T"."PARENT_ID"=PRIOR "T"."ID")
filter(TO_NUMBER("T"."ORG_ID")=10000)
表大小:
5 DWM IND_BRANCH_002 0 0
12 DWM IND_BRANCH_001 0 0
15 DWF F_PTY_ORG 0 0
4 DWM B_M_SYS_BRANCH 0 0
18 DWF B_M_SYS_BRANCH 0 0
16 DWF F_PTY_EMP_INFO 4 0
13 DWF SYS_C0036172 17 2
14 DWF ASDFDAF 22 2
1 DWF F_AGT_EXTR_CUST_INFO_H 35 4
11 DWF SYS_C0036662 104 13
3 DWF F_PTY_TABLE 176 22
6 DWF F_COMR_CIFACCTNO 264 33
10 DWF F_AGT_CADB_BOOK_H_IDX2 296 37
19 DWF EXTR_MID_LIST_IDX1 355 44
9 DWF F_EVT_SETR_BEPS_SND 462 57
8 DWF F_EVT_SETR_REM_SND 606 75
17 DWF F_EVT_EXTR_MID_LIST 2178 272
7 DWF F_AGT_CADB_BOOK_H 2739 342
2 DWF F_AGT_SAVB_ACCTINFO_H 4426 553
观察到的等待事件为:
SID EVENT P1 P2 P3
1 1148 direct path read 24 1044096 128
---F_AGT_SAVB_ACCTINFO_H 全表扫描
---1 DWF F_EVT_SETR_REM_SND TABLE
单块读
先干掉F_AGT_SAVB_ACCTINFO_H的全表扫描:
with cc as
(select
c.agmt_id, min(c.cust_linkman) cust_linkman
from dWF.F_AGT_SAVB_ACCTINFO_H c
group by c.agmt_id),
创建索引:
create index F_AGT_SAVB_ACCTINFO_H_IDX3 on F_AGT_SAVB_ACCTINFO_H(agmt_id,cust_linkman);
select decode(xx.REC_OPER_NO, '99088', '1003', '99772', '1012') business_code,
-- xx.org,
xx.trans_date,
xx.remit_amt trans_amt,
xx.payer_acct_no,
-- xx.rem_acct_no,
cust_act.pty_id,
'1' qd -- '1' 大额 ,‘2’ 小额 ,‘3’ 超级网银
,
nvl(t.cust_magr, cc. cust_linkman) cust_magr
from dwf.F_EVT_SETR_REM_SND xx
left join dwf.F_COMR_CIFACCTNO cust_act
on xx.payer_acct_no = cust_act.acct_no
left join dwf.f_agt_cadb_book_h t --卡基本信息表
on xx.payer_acct_no = t.agmt_id
and t.start_dt <= to_date('2014-03-31', 'YYYY-MM-DD')
and t.end_dt > to_date('2014-03-31', 'YYYY-MM-DD')
create index F_AGT_CADB_BOOK_H_IDX2 on F_AGT_CADB_BOOK_H (AGMT_ID, END_DT, START_DT, CUST_MAGR)
SQL> SQL> select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL_ID gm4596g6twv12, child number 1
-------------------------------------
with cc as (select c.agmt_id, min(c.cust_linkman) cust_linkman
from dWF.F_AGT_SAVB_ACCTINFO_H c group by c.agmt_id), aa as (
select decode(xx.REC_OPER_NO, '99088', '1003', '99772', '1012')
business_code, xx.trans_date, xx.remit_amt trans_amt,
xx.payer_acct_no, cust_act.pty_id, '1' qd ,
nvl(t.cust_magr, cc. cust_linkman) cust_magr from
dwf.F_EVT_SETR_REM_SND xx left join dwf.F_COMR_CIFACCTNO cust_act
on xx.payer_acct_no = cust_act.acct_no left join
dwf.f_agt_cadb_book_h t on xx.payer_acct_no = t.agmt_id and
t.start_dt <= to_date('2014-03-31', 'YYYY-MM-DD') and t.end_dt >
to_date('2014-03-31', 'YYYY-MM-DD') left join cc on
xx.payer_acct_no = cc.agmt_id where (xx.REC_OPER_NO = '99088' or
xx.REC_OPER_NO = '99772') and xx.trans_date >=
to_date('2014-03-01', 'YYYY-MM-DD') and xx.trans_date <=
to_date('2014-03-31', 'YYYY-MM-DD') union all select
decode(xx.REC_OPER_NO, '99088', '1003',
Plan hash value: 1606840517
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | Writes | OMem | 1Mem | Used-Mem | Used-Tmp|
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | | 12834 |00:04:10.57 | 760K| 314K| 8528 | | | | |
| 1 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 3 | 1 | 2 |00:00:00.01 | 3 | 0 | 0 | | | | |
|* 2 | INDEX RANGE SCAN | IND_BRANCH_002 | 3 | 1 | 2 |00:00:00.01 | 2 | 0 | 0 | | | | |
| 3 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 3 | 1 | 2 |00:00:00.01 | 3 | 0 | 0 | | | | |
|* 4 | INDEX RANGE SCAN | IND_BRANCH_002 | 3 | 1 | 2 |00:00:00.01 | 2 | 0 | 0 | | | | |
| 5 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 23 | 1 | 22 |00:00:00.01 | 9 | 0 | 0 | | | | |
|* 6 | INDEX RANGE SCAN | IND_BRANCH_002 | 23 | 1 | 22 |00:00:00.01 | 3 | 0 | 0 | | | | |
| 7 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 23 | 1 | 22 |00:00:00.01 | 9 | 0 | 0 | | | | |
|* 8 | INDEX RANGE SCAN | IND_BRANCH_002 | 23 | 1 | 22 |00:00:00.01 | 3 | 0 | 0 | | | | |
| 9 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 7 | 1 | 6 |00:00:00.01 | 3 | 0 | 0 | | | | |
|* 10 | INDEX RANGE SCAN | IND_BRANCH_002 | 7 | 1 | 6 |00:00:00.01 | 2 | 0 | 0 | | | | |
| 11 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 7 | 1 | 6 |00:00:00.01 | 3 | 0 | 0 | | | | |
|* 12 | INDEX RANGE SCAN | IND_BRANCH_002 | 7 | 1 | 6 |00:00:00.01 | 2 | 0 | 0 | | | | |
| 13 | TEMP TABLE TRANSFORMATION | | 1 | | 12834 |00:04:10.57 | 760K| 314K| 8528 | | | | |
| 14 | LOAD AS SELECT | | 1 | | 0 |00:00:15.18 | 86620 | 4586 | 8528 | 530K| 530K| 530K (0)| |
| 15 | HASH GROUP BY | | 1 | 790K| 1266K|00:00:14.10 | 80978 | 4586 | 2976 | 1880M| 36M| 89M (1)| 24576 |
| 16 | INDEX FAST FULL SCAN | F_AGT_SAVB_ACCTINFO_H_IDX3 | 1 | 15M| 15M|00:00:04.38 | 80978 | 1610 | 0 | | | | |
| 17 | HASH GROUP BY | | 1 | 83930 | 12834 |00:03:55.39 | 673K| 309K| 0 | 41M| 3922K| 6113K (0)| |
|* 18 | FILTER | | 1 | | 117K|00:03:55.13 | 673K| 309K| 0 | | | | |
|* 19 | HASH JOIN RIGHT OUTER | | 1 | 83930 | 153K|00:03:54.89 | 670K| 309K| 0 | 1679K| 1120K| 2557K (0)| |
| 20 | VIEW | V_M_PTY_EMP_INFO | 1 | 7465 | 7168 |00:00:01.13 | 965 | 392 | 0 | | | | |
|* 21 | HASH JOIN RIGHT OUTER | | 1 | 7465 | 7168 |00:00:01.13 | 965 | 392 | 0 | 4140K| 1143K| 4228K (0)| |
| 22 | VIEW | | 1 | 100 | 25882 |00:00:01.07 | 515 | 392 | 0 | | | | |
|* 23 | HASH JOIN RIGHT OUTER | | 1 | 100 | 25882 |00:00:01.04 | 509 | 392 | 0 | 1393K| 1393K| 1559K (0)| |
|* 24 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 23 | 23 |00:00:00.01 | 6 | 0 | 0 | | | | |
| 25 | VIEW | | 1 | 100 | 25882 |00:00:01.01 | 503 | 392 | 0 | | | | |
|* 26 | HASH JOIN RIGHT OUTER | | 1 | 100 | 25882 |00:00:00.97 | 485 | 392 | 0 | 1483K| 1483K| 1547K (0)| |
|* 27 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 114 | 115 |00:00:00.01 | 6 | 0 | 0 | | | | |
| 28 | VIEW | | 1 | 100 | 25882 |00:00:00.94 | 479 | 392 | 0 | | | | |
|* 29 | HASH JOIN RIGHT OUTER | | 1 | 28879 | 25882 |00:00:00.92 | 473 | 392 | 0 | 1483K| 1483K| 1466K (0)| |
|* 30 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 12 | 12 |00:00:00.01 | 6 | 0 | 0 | | | | |
|* 31 | HASH JOIN RIGHT OUTER | | 1 | 28879 | 25882 |00:00:00.90 | 467 | 392 | 0 | 1245K| 1245K| 1293K (0)| |
| 32 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 152 | 153 |00:00:00.01 | 6 | 0 | 0 | | | | |
|* 33 | HASH JOIN RIGHT OUTER | | 1 | 28879 | 25882 |00:00:00.87 | 461 | 392 | 0 | 1557K| 1557K| 1583K (0)| |
| 34 | VIEW | M_CBS_TO_DW_ORG | 1 | 144 | 157 |00:00:00.24 | 11 | 9 | 0 | | | | |
| 35 | UNION-ALL | | 1 | | 157 |00:00:00.24 | 11 | 9 | 0 | | | | |
|* 36 | TABLE ACCESS FULL | F_PTY_ORG | 1 | 129 | 129 |00:00:00.24 | 10 | 9 | 0 | | | | |
|* 37 | INDEX FULL SCAN | IND_BRANCH_001 | 1 | 15 | 28 |00:00:00.01 | 1 | 0 | 0 | | | | |
|* 38 | TABLE ACCESS FULL | F_PTY_EMP_INFO | 1 | 25885 | 25882 |00:00:00.61 | 450 | 383 | 0 | | | | |
|* 39 | TABLE ACCESS FULL | F_PTY_EMP_INFO | 1 | 7465 | 7168 |00:00:00.01 | 450 | 0 | 0 | | | | |
|* 40 | HASH JOIN OUTER | | 1 | 81074 | 153K|00:03:53.56 | 669K| 309K| 0 | 12M| 2898K| 18M (0)| |
| 41 | VIEW | | 1 | 78410 | 153K|00:03:47.16 | 647K| 287K| 0 | | | | |
| 42 | NESTED LOOPS OUTER | | 1 | 78410 | 153K|00:03:47.09 | 647K| 287K| 0 | | | | |
| 43 | VIEW | | 1 | 78410 | 152K|00:03:16.15 | 461K| 280K| 0 | | | | |
| 44 | UNION-ALL | | 1 | | 152K|00:03:16.07 | 461K| 280K| 0 | | | | |
| 45 | NESTED LOOPS OUTER | | 1 | 385 | 65368 |00:02:32.33 | 193K| 99278 | 0 | | | | |
| 46 | NESTED LOOPS OUTER | | 1 | 182 | 65368 |00:01:31.24 | 156K| 93188 | 0 | | | | |
|* 47 | HASH JOIN OUTER | | 1 | 182 | 65368 |00:00:11.39 | 88677 | 82489 | 0 | 7184K| 2674K| 7831K (0)| |
| 48 | INLIST ITERATOR | | 1 | | 65368 |00:00:09.66 | 83116 | 76936 | 0 | | | | |
|* 49 | TABLE ACCESS BY INDEX ROWID | F_EVT_SETR_REM_SND | 2 | 182 | 65368 |00:00:09.64 | 83116 | 76936 | 0 | | | | |
|* 50 | INDEX RANGE SCAN | ASDFDAF | 2 | 2432 | 905K|00:00:02.30 | 2150 | 2149 | 0 | | | | |
| 51 | VIEW | | 1 | 790K| 1266K|00:00:00.81 | 5561 | 5553 | 0 | | | | |
| 52 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E1A_6CB3C16D | 1 | 790K| 1266K|00:00:00.44 | 5561 | 5553 | 0 | | | | |
| 53 | TABLE ACCESS BY INDEX ROWID | F_COMR_CIFACCTNO | 65368 | 1 | 65368 |00:01:19.78 | 67620 | 10699 | 0 | | | | |
|* 54 | INDEX RANGE SCAN | SYS_C0036662 | 65368 | 1 | 65368 |00:00:16.84 | 57541 | 2670 | 0 | | | | |
|* 55 | INDEX RANGE SCAN | F_AGT_CADB_BOOK_H_IDX2 | 65368 | 2 | 33144 |00:01:01.00 | 36774 | 6090 | 0 | | | | |
|* 56 | HASH JOIN OUTER | | 1 | 70600 | 38600 |00:00:26.83 | 146K| 135K| 0 | 6115K| 2331K| 7423K (0)| |
|* 57 | HASH JOIN OUTER | | 1 | 33483 | 38600 |00:00:13.36 | 96014 | 90649 | 0 | 5712K| 2406K| 7009K (0)| |
|* 58 | HASH JOIN OUTER | | 1 | 33483 | 38600 |00:00:12.00 | 90456 | 90452 | 0 | 3743K| 1461K| 5413K (0)| |
|* 59 | TABLE ACCESS FULL | F_EVT_SETR_BEPS_SND | 1 | 33367 | 38600 |00:00:02.35 | 57885 | 57884 | 0 | | | | |
| 60 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1 | 1911K| 1911K|00:00:08.39 | 32571 | 32568 | 0 | | | | |
| 61 | VIEW | | 1 | 790K| 1266K|00:00:00.65 | 5558 | 197 | 0 | | | | |
| 62 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E1A_6CB3C16D | 1 | 790K| 1266K|00:00:00.29 | 5558 | 197 | 0 | | | | |
|* 63 | INDEX FAST FULL SCAN | F_AGT_CADB_BOOK_H_IDX2 | 1 | 571K| 481K|00:00:12.97 | 50627 | 45029 | 0 | | | | |
| 64 | NESTED LOOPS OUTER | | 1 | 7338 | 36086 |00:00:11.50 | 79170 | 42125 | 0 | | | | |
|* 65 | HASH JOIN OUTER | | 1 | 3521 | 36086 |00:00:11.16 | 49467 | 42125 | 0 | 4322K| 1258K| 5966K (0)| |
|* 66 | HASH JOIN OUTER | | 1 | 3521 | 36086 |00:00:09.34 | 16896 | 9558 | 0 | 4131K| 1297K| 5776K (0)| |
| 67 | TABLE ACCESS BY INDEX ROWID | F_EVT_EXTR_MID_LIST | 1 | 3521 | 36086 |00:00:08.10 | 11338 | 9558 | 0 | | | | |
|* 68 | INDEX RANGE SCAN | EXTR_MID_LIST_IDX1 | 1 | 3535 | 36086 |00:00:00.46 | 1776 | 1776 | 0 | | | | |
| 69 | VIEW | | 1 | 790K| 1266K|00:00:00.57 | 5558 | 0 | 0 | | | | |
| 70 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E1A_6CB3C16D | 1 | 790K| 1266K|00:00:00.24 | 5558 | 0 | 0 | | | | |
| 71 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1 | 1911K| 1911K|00:00:00.77 | 32571 | 32567 | 0 | | | | |
|* 72 | INDEX RANGE SCAN | F_AGT_CADB_BOOK_H_IDX2 | 36086 | 2 | 31486 |00:00:00.31 | 29703 | 0 | 0 | | | | |
| 73 | NESTED LOOPS OUTER | | 1 | 87 | 12914 |00:00:05.12 | 42402 | 3589 | 0 | | | | |
| 74 | NESTED LOOPS OUTER | | 1 | 42 | 12914 |00:00:04.98 | 26454 | 3589 | 0 | | | | |
|* 75 | HASH JOIN OUTER | | 1 | 42 | 12914 |00:00:03.37 | 7984 | 1539 | 0 | 1954K| 1303K| 2006K (0)| |
| 76 | TABLE ACCESS BY INDEX ROWID | F_EVT_EXTR_MID_LIST | 1 | 42 | 12914 |00:00:02.15 | 2426 | 1539 | 0 | | | | |
|* 77 | INDEX RANGE SCAN | EXTR_MID_LIST_IDX1 | 1 | 42 | 12914 |00:00:01.68 | 221 | 347 | 0 | | | | |
| 78 | VIEW | | 1 | 790K| 1266K|00:00:00.57 | 5558 | 0 | 0 | | | | |
| 79 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E1A_6CB3C16D | 1 | 790K| 1266K|00:00:00.24 | 5558 | 0 | 0 | | | | |
| 80 | TABLE ACCESS BY INDEX ROWID | F_COMR_CIFACCTNO | 12914 | 1 | 12914 |00:00:01.60 | 18470 | 2050 | 0 | | | | |
|* 81 | INDEX RANGE SCAN | SYS_C0036662 | 12914 | 1 | 12914 |00:00:01.48 | 15907 | 222 | 0 | | | | |
|* 82 | INDEX RANGE SCAN | F_AGT_CADB_BOOK_H_IDX2 | 12914 | 2 | 12817 |00:00:00.12 | 15948 | 0 | 0 | | | | |
|* 83 | TABLE ACCESS BY INDEX ROWID | F_AGT_EXTR_CUST_INFO_H | 152K| 1 | 152K|00:00:30.81 | 186K| 6673 | 0 | | | | |
|* 84 | INDEX RANGE SCAN | SYS_C0036172 | 152K| 1 | 161K|00:00:13.76 | 146K| 2119 | 0 | | | | |
|* 85 | VIEW | | 1 | 590K| 584K|00:00:05.73 | 22014 | 22011 | 0 | | | | |
|* 86 | WINDOW SORT PUSHED RANK | | 1 | 590K| 588K|00:00:05.53 | 22014 | 22011 | 0 | 55M| 2592K| 48M (0)| |
|* 87 | TABLE ACCESS FULL | F_PTY_TABLE | 1 | 590K| 588K|00:00:01.52 | 22014 | 22011 | 0 | | | | |
|* 88 | FILTER | | 503 | | 367 |00:00:00.16 | 3018 | 6 | 0 | | | | |
|* 89 | CONNECT BY NO FILTERING WITH SW (UNIQUE)| | 503 | | 14941 |00:00:00.15 | 3018 | 6 | 0 | | | | |
| 90 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 503 | 82 | 41246 |00:00:00.07 | 3018 | 6 | 0 | | | | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - access("ID"=:B1)
4 - access("ID"=:B1)
6 - access("ID"=:B1)
8 - access("ID"=:B1)
10 - access("ID"=:B1)
12 - access("ID"=:B1)
18 - filter(( IS NOT NULL OR TO_NUMBER("EMP"."FTH_ORG_NO")=10000))
19 - access("EMP"."PTY_ID"=NVL("CC"."CUST_MAGR","AA"."CUST_MAGR"))
21 - access("T"."START_DT"="B"."START_DT" AND "T"."SOURCE_CODE"="B"."SOURCE_CODE" AND "T"."PTY_ID"="B"."PTY_ID")
23 - access("FST"."SEC_ORG_ID"="ORG_ID")
24 - filter("ORG_LEVEL"=2)
26 - access("ORG_ID"=NVL("SEC"."THD_ORG_ID","SEC"."ORG_ID"))
27 - filter("ORG_LEVEL"=3)
29 - access("C"."ORG_ID"="ORG_ID")
30 - filter("ORG_LEVEL"=4)
31 - access("B"."ORG_ID"="C"."ORG_ID")
33 - access("A"."ORG_NO"="B"."PTY_ID")
36 - filter("END_DT"=TO_DATE(' 2999-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
37 - filter((("ORG_ID" LIKE '%8888%' AND "ORG_ID" IS NOT NULL AND "ORG_ID" IS NOT NULL) OR ("ORG_ID" LIKE '%9999%' AND "ORG_ID" IS NOT NULL AND "ORG_ID" IS NOT NULL)))
38 - filter("A"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
39 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
40 - access("PTY_ID"="from$_subquery$_032"."PTY_ID")
47 - access("XX"."PAYER_ACCT_NO"="CC"."AGMT_ID")
49 - filter(("XX"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "XX"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
50 - access(("XX"."REC_OPER_NO"='99088' OR "XX"."REC_OPER_NO"='99772'))
54 - access("XX"."PAYER_ACCT_NO"="CUST_ACT"."ACCT_NO")
55 - access("XX"."PAYER_ACCT_NO"="T"."AGMT_ID" AND "T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."END_DT" IS NOT NULL)
filter("T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
56 - access("XX"."PAYER_ACCT_NO"="T"."AGMT_ID")
57 - access("XX"."PAYER_ACCT_NO"="CC"."AGMT_ID")
58 - access("XX"."PAYER_ACCT_NO"="CUST_ACT"."ACCT_NO")
59 - filter(("XX"."CLEAR_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND INTERNAL_FUNCTION("XX"."REC_OPER_NO") AND "XX"."CLEAR_DATE"<=TO_DATE(' 2014-03-31
00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
63 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
65 - access("AA"."PAY_ACCT_NO"="CUST_ACT"."ACCT_NO")
66 - access("AA"."PAY_ACCT_NO"="CC"."AGMT_ID")
68 - access("AA"."BUSINESS_CODE"='1003' AND "AA"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "AA"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00',
'syyyy-mm-dd hh24:mi:ss'))
filter(("AA"."TRANS_CODE"='gw0091' OR "AA"."TRANS_CODE"='gw0092' OR "AA"."TRANS_CODE"='gw1401' OR "AA"."TRANS_CODE"='gw1402'))
72 - access("AA"."PAY_ACCT_NO"="T"."AGMT_ID" AND "T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."END_DT" IS NOT NULL)
filter("T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
75 - access("AA"."PAY_ACCT_NO"="CC"."AGMT_ID")
77 - access("AA"."BUSINESS_CODE"='1012' AND "AA"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "AA"."TRANS_CODE"='MB1019' AND
"AA"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
filter("AA"."TRANS_CODE"='MB1019')
81 - access("AA"."PAY_ACCT_NO"="CUST_ACT"."ACCT_NO")
82 - access("AA"."PAY_ACCT_NO"="T"."AGMT_ID" AND "T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."END_DT" IS NOT NULL)
filter("T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
83 - filter("CC"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
84 - access("CC"."AGMT_ID"="AA"."PTY_ID" AND "CC"."EXT_TYPE"=DECODE("AA"."BUSINESS_CODE",'1003','1','1012','8') AND "CC"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd
hh24:mi:ss'))
filter((INTERNAL_FUNCTION("CC"."EXT_TYPE") AND "CC"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"CC"."EXT_TYPE"=DECODE("AA"."BUSINESS_CODE",'1003','1','1012','8')))
85 - filter("ROW_NO"=1)
86 - filter(ROW_NUMBER() OVER ( PARTITION BY "B"."PTY_ID" ORDER BY "B"."CORP_ORG")<=1)
87 - filter("B"."END_DT"=TO_DATE(' 2999-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
88 - filter(("T"."ORG_ID"=:B1 AND "T"."STATUS"=1))
89 - access("T"."PARENT_ID"=PRIOR NULL)
filter(TO_NUMBER("T"."ORG_ID")=10000)
180 rows selected.
最终计划:
SQL> SQL> select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL_ID 2h63vtghuy59a, child number 0
-------------------------------------
with cc as (select c.agmt_id, min(c.cust_linkman) cust_linkman
from dWF.F_AGT_SAVB_ACCTINFO_H c group by c.agmt_id), aa as (
select /*+ use_hash(xx cust_act) use_hash(xx t) */
decode(xx.REC_OPER_NO, '99088', '1003', '99772', '1012') business_code,
xx.trans_date, xx.remit_amt trans_amt,
xx.payer_acct_no, cust_act.pty_id, '1' qd ,
nvl(t.cust_magr, cc. cust_linkman) cust_magr from
dwf.F_EVT_SETR_REM_SND xx left join dwf.F_COMR_CIFACCTNO cust_act
on xx.payer_acct_no = cust_act.acct_no left join
dwf.f_agt_cadb_book_h t on xx.payer_acct_no = t.agmt_id and
t.start_dt <= to_date('2014-03-31', 'YYYY-MM-DD') and t.end_dt >
to_date('2014-03-31', 'YYYY-MM-DD') left join cc on
xx.payer_acct_no = cc.agmt_id where (xx.REC_OPER_NO = '99088' or
xx.REC_OPER_NO = '99772') and xx.trans_date >=
to_date('2014-03-01', 'YYYY-MM-DD') and xx.trans_date <=
to_date('2014-03-31', 'YYYY-MM-DD') union all sele
Plan hash value: 3650245586
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | Writes | OMem | 1Mem | Used-Mem |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | | 12834 |00:01:11.66 | 626K| 198K| 5551 | | | |
| 1 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 3 | 1 | 2 |00:00:00.01 | 3 | 0 | 0 | | | |
|* 2 | INDEX RANGE SCAN | IND_BRANCH_002 | 3 | 1 | 2 |00:00:00.01 | 2 | 0 | 0 | | | |
| 3 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 3 | 1 | 2 |00:00:00.01 | 3 | 0 | 0 | | | |
|* 4 | INDEX RANGE SCAN | IND_BRANCH_002 | 3 | 1 | 2 |00:00:00.01 | 2 | 0 | 0 | | | |
| 5 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 23 | 1 | 22 |00:00:00.01 | 9 | 0 | 0 | | | |
|* 6 | INDEX RANGE SCAN | IND_BRANCH_002 | 23 | 1 | 22 |00:00:00.01 | 3 | 0 | 0 | | | |
| 7 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 23 | 1 | 22 |00:00:00.01 | 9 | 0 | 0 | | | |
|* 8 | INDEX RANGE SCAN | IND_BRANCH_002 | 23 | 1 | 22 |00:00:00.01 | 3 | 0 | 0 | | | |
| 9 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 7 | 1 | 6 |00:00:00.01 | 3 | 0 | 0 | | | |
|* 10 | INDEX RANGE SCAN | IND_BRANCH_002 | 7 | 1 | 6 |00:00:00.01 | 2 | 0 | 0 | | | |
| 11 | TABLE ACCESS BY INDEX ROWID | B_M_SYS_BRANCH | 7 | 1 | 6 |00:00:00.01 | 3 | 0 | 0 | | | |
|* 12 | INDEX RANGE SCAN | IND_BRANCH_002 | 7 | 1 | 6 |00:00:00.01 | 2 | 0 | 0 | | | |
| 13 | TEMP TABLE TRANSFORMATION | | 1 | | 12834 |00:01:11.66 | 626K| 198K| 5551 | | | |
| 14 | LOAD AS SELECT | | 1 | | 0 |00:00:24.35 | 86618 | 715 | 5551 | 530K| 530K| 530K (0)|
| 15 | HASH GROUP BY | | 1 | 790K| 1266K|00:00:22.24 | 80978 | 715 | 0 | 1880M| 36M| 125M (0)|
| 16 | INDEX FAST FULL SCAN | F_AGT_SAVB_ACCTINFO_H_IDX3 | 1 | 15M| 15M|00:00:07.44 | 80978 | 715 | 0 | | | |
| 17 | HASH GROUP BY | | 1 | 83930 | 12834 |00:00:46.94 | 540K| 197K| 0 | 41M| 3922K| 6122K (0)|
|* 18 | FILTER | | 1 | | 117K|00:00:46.54 | 540K| 197K| 0 | | | |
|* 19 | HASH JOIN RIGHT OUTER | | 1 | 83930 | 153K|00:00:46.25 | 537K| 197K| 0 | 1679K| 1120K| 2549K (0)|
| 20 | VIEW | V_M_PTY_EMP_INFO | 1 | 7465 | 7168 |00:00:00.45 | 965 | 0 | 0 | | | |
|* 21 | HASH JOIN RIGHT OUTER | | 1 | 7465 | 7168 |00:00:00.44 | 965 | 0 | 0 | 4140K| 1143K| 4234K (0)|
| 22 | VIEW | | 1 | 100 | 25882 |00:00:00.35 | 515 | 0 | 0 | | | |
|* 23 | HASH JOIN RIGHT OUTER | | 1 | 100 | 25882 |00:00:00.30 | 509 | 0 | 0 | 1393K| 1393K| 1586K (0)|
|* 24 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 23 | 23 |00:00:00.01 | 6 | 0 | 0 | | | |
| 25 | VIEW | | 1 | 100 | 25882 |00:00:00.25 | 503 | 0 | 0 | | | |
|* 26 | HASH JOIN RIGHT OUTER | | 1 | 100 | 25882 |00:00:00.20 | 485 | 0 | 0 | 1483K| 1483K| 1585K (0)|
|* 27 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 114 | 115 |00:00:00.01 | 6 | 0 | 0 | | | |
| 28 | VIEW | | 1 | 100 | 25882 |00:00:00.16 | 479 | 0 | 0 | | | |
|* 29 | HASH JOIN RIGHT OUTER | | 1 | 28879 | 25882 |00:00:00.12 | 473 | 0 | 0 | 1483K| 1483K| 1463K (0)|
|* 30 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 12 | 12 |00:00:00.01 | 6 | 0 | 0 | | | |
|* 31 | HASH JOIN RIGHT OUTER | | 1 | 28879 | 25882 |00:00:00.10 | 467 | 0 | 0 | 1245K| 1245K| 1261K (0)|
| 32 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 1 | 152 | 153 |00:00:00.01 | 6 | 0 | 0 | | | |
|* 33 | HASH JOIN RIGHT OUTER | | 1 | 28879 | 25882 |00:00:00.06 | 461 | 0 | 0 | 1557K| 1557K| 1583K (0)|
| 34 | VIEW | M_CBS_TO_DW_ORG | 1 | 144 | 157 |00:00:00.01 | 11 | 0 | 0 | | | |
| 35 | UNION-ALL | | 1 | | 157 |00:00:00.01 | 11 | 0 | 0 | | | |
|* 36 | TABLE ACCESS FULL | F_PTY_ORG | 1 | 129 | 129 |00:00:00.01 | 10 | 0 | 0 | | | |
|* 37 | INDEX FULL SCAN | IND_BRANCH_001 | 1 | 15 | 28 |00:00:00.01 | 1 | 0 | 0 | | | |
|* 38 | TABLE ACCESS FULL | F_PTY_EMP_INFO | 1 | 25885 | 25882 |00:00:00.02 | 450 | 0 | 0 | | | |
|* 39 | TABLE ACCESS FULL | F_PTY_EMP_INFO | 1 | 7465 | 7168 |00:00:00.01 | 450 | 0 | 0 | | | |
|* 40 | HASH JOIN OUTER | | 1 | 81074 | 153K|00:00:45.52 | 536K| 197K| 0 | 12M| 2898K| 18M (0)|
| 41 | VIEW | | 1 | 78410 | 153K|00:00:35.71 | 514K| 197K| 0 | | | |
|* 42 | HASH JOIN OUTER | | 1 | 78410 | 153K|00:00:35.66 | 514K| 197K| 0 | 13M| 2853K| 18M (0)|
| 43 | VIEW | | 1 | 78410 | 152K|00:00:34.66 | 509K| 194K| 0 | | | |
| 44 | UNION-ALL | | 1 | | 152K|00:00:34.57 | 509K| 194K| 0 | | | |
|* 45 | HASH JOIN OUTER | | 1 | 385 | 65368 |00:00:09.38 | 171K| 38743 | 0 | 10M| 2251K| 10M (0)|
|* 46 | HASH JOIN OUTER | | 1 | 182 | 65368 |00:00:06.46 | 121K| 38743 | 0 | 8127K| 2478K| 8795K (0)|
|* 47 | HASH JOIN OUTER | | 1 | 182 | 65368 |00:00:03.29 | 88676 | 6176 | 0 | 7184K| 2674K| 7824K (0)|
| 48 | INLIST ITERATOR | | 1 | | 65368 |00:00:01.91 | 83116 | 625 | 0 | | | |
|* 49 | TABLE ACCESS BY INDEX ROWID | F_EVT_SETR_REM_SND | 2 | 182 | 65368 |00:00:01.90 | 83116 | 625 | 0 | | | |
|* 50 | INDEX RANGE SCAN | ASDFDAF | 2 | 2432 | 905K|00:00:00.28 | 2150 | 20 | 0 | | | |
| 51 | VIEW | | 1 | 790K| 1266K|00:00:00.68 | 5560 | 5551 | 0 | | | |
| 52 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E38_6CB3C16D | 1 | 790K| 1266K|00:00:00.35 | 5560 | 5551 | 0 | | | |
| 53 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1 | 1911K| 1911K|00:00:01.36 | 32571 | 32567 | 0 | | | |
|* 54 | INDEX FAST FULL SCAN | F_AGT_CADB_BOOK_H_IDX2 | 1 | 571K| 481K|00:00:02.17 | 50627 | 0 | 0 | | | |
|* 55 | HASH JOIN OUTER | | 1 | 70600 | 38600 |00:00:08.71 | 146K| 90450 | 0 | 6115K| 2331K| 7487K (0)|
|* 56 | HASH JOIN OUTER | | 1 | 33483 | 38600 |00:00:06.23 | 96013 | 90450 | 0 | 5712K| 2406K| 7013K (0)|
|* 57 | HASH JOIN OUTER | | 1 | 33483 | 38600 |00:00:04.41 | 90456 | 90450 | 0 | 3743K| 1461K| 5418K (0)|
|* 58 | TABLE ACCESS FULL | F_EVT_SETR_BEPS_SND | 1 | 33367 | 38600 |00:00:00.85 | 57885 | 57883 | 0 | | | |
| 59 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1 | 1911K| 1911K|00:00:01.47 | 32571 | 32567 | 0 | | | |
| 60 | VIEW | | 1 | 790K| 1266K|00:00:00.83 | 5557 | 0 | 0 | | | |
| 61 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E38_6CB3C16D | 1 | 790K| 1266K|00:00:00.36 | 5557 | 0 | 0 | | | |
|* 62 | INDEX FAST FULL SCAN | F_AGT_CADB_BOOK_H_IDX2 | 1 | 571K| 481K|00:00:01.91 | 50627 | 0 | 0 | | | |
|* 63 | HASH JOIN OUTER | | 1 | 7338 | 36086 |00:00:08.55 | 100K| 32567 | 0 | 6292K| 2263K| 7307K (0)|
|* 64 | HASH JOIN OUTER | | 1 | 3521 | 36086 |00:00:06.06 | 49465 | 32567 | 0 | 4322K| 1258K| 5993K (0)|
|* 65 | HASH JOIN OUTER | | 1 | 3521 | 36086 |00:00:02.50 | 16894 | 0 | 0 | 4131K| 1297K| 5766K (0)|
| 66 | TABLE ACCESS BY INDEX ROWID | F_EVT_EXTR_MID_LIST | 1 | 3521 | 36086 |00:00:00.37 | 11337 | 0 | 0 | | | |
|* 67 | INDEX RANGE SCAN | EXTR_MID_LIST_IDX1 | 1 | 3535 | 36086 |00:00:00.25 | 1776 | 0 | 0 | | | |
| 68 | VIEW | | 1 | 790K| 1266K|00:00:00.96 | 5557 | 0 | 0 | | | |
| 69 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E38_6CB3C16D | 1 | 790K| 1266K|00:00:00.40 | 5557 | 0 | 0 | | | |
| 70 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1 | 1911K| 1911K|00:00:01.48 | 32571 | 32567 | 0 | | | |
|* 71 | INDEX FAST FULL SCAN | F_AGT_CADB_BOOK_H_IDX2 | 1 | 571K| 481K|00:00:01.92 | 50627 | 0 | 0 | | | |
|* 72 | HASH JOIN OUTER | | 1 | 87 | 12914 |00:00:07.71 | 91181 | 33048 | 0 | 2418K| 1138K| 3009K (0)|
|* 73 | HASH JOIN OUTER | | 1 | 42 | 12914 |00:00:05.41 | 40554 | 33048 | 0 | 1998K| 1279K| 2021K (0)|
|* 74 | HASH JOIN OUTER | | 1 | 42 | 12914 |00:00:02.43 | 7983 | 481 | 0 | 1954K| 1303K| 2048K (0)|
| 75 | TABLE ACCESS BY INDEX ROWID | F_EVT_EXTR_MID_LIST | 1 | 42 | 12914 |00:00:00.08 | 2426 | 481 | 0 | | | |
|* 76 | INDEX RANGE SCAN | EXTR_MID_LIST_IDX1 | 1 | 42 | 12914 |00:00:00.03 | 221 | 183 | 0 | | | |
| 77 | VIEW | | 1 | 790K| 1266K|00:00:01.13 | 5557 | 0 | 0 | | | |
| 78 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6E38_6CB3C16D | 1 | 790K| 1266K|00:00:00.47 | 5557 | 0 | 0 | | | |
| 79 | TABLE ACCESS FULL | F_COMR_CIFACCTNO | 1 | 1911K| 1911K|00:00:01.28 | 32571 | 32567 | 0 | | | |
|* 80 | INDEX FAST FULL SCAN | F_AGT_CADB_BOOK_H_IDX2 | 1 | 571K| 481K|00:00:01.83 | 50627 | 0 | 0 | | | |
|* 81 | TABLE ACCESS FULL | F_AGT_EXTR_CUST_INFO_H | 1 | 155K| 153K|00:00:00.40 | 4410 | 2560 | 0 | | | |
|* 82 | VIEW | | 1 | 590K| 584K|00:00:08.90 | 22021 | 0 | 0 | | | |
|* 83 | WINDOW SORT PUSHED RANK | | 1 | 590K| 588K|00:00:08.58 | 22021 | 0 | 0 | 55M| 2592K| 48M (0)|
|* 84 | TABLE ACCESS FULL | F_PTY_TABLE | 1 | 590K| 588K|00:00:01.08 | 22021 | 0 | 0 | | | |
|* 85 | FILTER | | 501 | | 365 |00:00:00.17 | 3006 | 0 | 0 | | | |
|* 86 | CONNECT BY NO FILTERING WITH SW (UNIQUE)| | 501 | | 14929 |00:00:00.17 | 3006 | 0 | 0 | | | |
| 87 | TABLE ACCESS FULL | B_M_SYS_BRANCH | 501 | 82 | 41082 |00:00:00.04 | 3006 | 0 | 0 | | | |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - access("ID"=:B1)
4 - access("ID"=:B1)
6 - access("ID"=:B1)
8 - access("ID"=:B1)
10 - access("ID"=:B1)
12 - access("ID"=:B1)
18 - filter(( IS NOT NULL OR TO_NUMBER("EMP"."FTH_ORG_NO")=10000))
19 - access("EMP"."PTY_ID"=NVL("CC"."CUST_MAGR","AA"."CUST_MAGR"))
21 - access("T"."START_DT"="B"."START_DT" AND "T"."SOURCE_CODE"="B"."SOURCE_CODE" AND "T"."PTY_ID"="B"."PTY_ID")
23 - access("FST"."SEC_ORG_ID"="ORG_ID")
24 - filter("ORG_LEVEL"=2)
26 - access("ORG_ID"=NVL("SEC"."THD_ORG_ID","SEC"."ORG_ID"))
27 - filter("ORG_LEVEL"=3)
29 - access("C"."ORG_ID"="ORG_ID")
30 - filter("ORG_LEVEL"=4)
31 - access("B"."ORG_ID"="C"."ORG_ID")
33 - access("A"."ORG_NO"="B"."PTY_ID")
36 - filter("END_DT"=TO_DATE(' 2999-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
37 - filter((("ORG_ID" LIKE '%8888%' AND "ORG_ID" IS NOT NULL AND "ORG_ID" IS NOT NULL) OR ("ORG_ID" LIKE '%9999%' AND "ORG_ID" IS NOT NULL AND "ORG_ID" IS NOT NULL)))
38 - filter("A"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
39 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
40 - access("PTY_ID"="from$_subquery$_032"."PTY_ID")
42 - access("CC"."EXT_TYPE"=DECODE("AA"."BUSINESS_CODE",'1003','1','1012','8') AND "CC"."AGMT_ID"="AA"."PTY_ID")
45 - access("XX"."PAYER_ACCT_NO"="T"."AGMT_ID")
46 - access("XX"."PAYER_ACCT_NO"="CUST_ACT"."ACCT_NO")
47 - access("XX"."PAYER_ACCT_NO"="CC"."AGMT_ID")
49 - filter(("XX"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "XX"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd
hh24:mi:ss')))
50 - access(("XX"."REC_OPER_NO"='99088' OR "XX"."REC_OPER_NO"='99772'))
54 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
55 - access("XX"."PAYER_ACCT_NO"="T"."AGMT_ID")
56 - access("XX"."PAYER_ACCT_NO"="CC"."AGMT_ID")
57 - access("XX"."PAYER_ACCT_NO"="CUST_ACT"."ACCT_NO")
58 - filter(("XX"."CLEAR_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND INTERNAL_FUNCTION("XX"."REC_OPER_NO") AND "XX"."CLEAR_DATE"<=TO_DATE('
2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
62 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
63 - access("AA"."PAY_ACCT_NO"="T"."AGMT_ID")
64 - access("AA"."PAY_ACCT_NO"="CUST_ACT"."ACCT_NO")
65 - access("AA"."PAY_ACCT_NO"="CC"."AGMT_ID")
67 - access("AA"."BUSINESS_CODE"='1003' AND "AA"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "AA"."TRANS_DATE"<=TO_DATE(' 2014-03-31
00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
filter(("AA"."TRANS_CODE"='gw0091' OR "AA"."TRANS_CODE"='gw0092' OR "AA"."TRANS_CODE"='gw1401' OR "AA"."TRANS_CODE"='gw1402'))
71 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
72 - access("AA"."PAY_ACCT_NO"="T"."AGMT_ID")
73 - access("AA"."PAY_ACCT_NO"="CUST_ACT"."ACCT_NO")
74 - access("AA"."PAY_ACCT_NO"="CC"."AGMT_ID")
76 - access("AA"."BUSINESS_CODE"='1012' AND "AA"."TRANS_DATE">=TO_DATE(' 2014-03-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "AA"."TRANS_CODE"='MB1019' AND
"AA"."TRANS_DATE"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
filter("AA"."TRANS_CODE"='MB1019')
80 - filter(("T"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "T"."START_DT"<=TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
81 - filter((INTERNAL_FUNCTION("CC"."EXT_TYPE") AND "CC"."END_DT">TO_DATE(' 2014-03-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "CC"."START_DT"<=TO_DATE(' 2014-03-31
00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
82 - filter("ROW_NO"=1)
83 - filter(ROW_NUMBER() OVER ( PARTITION BY "B"."PTY_ID" ORDER BY "B"."CORP_ORG")<=1)
84 - filter("B"."END_DT"=TO_DATE(' 2999-12-31 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
85 - filter(("T"."ORG_ID"=:B1 AND "T"."STATUS"=1))
86 - access("T"."PARENT_ID"=PRIOR NULL)
filter(TO_NUMBER("T"."ORG_ID")=10000)
176 rows selected.