Вот часть трассы этого запроса, но возвращает 400 тысяч записей.
Code: Select all
*** 2018-09-03 17:41:46.428
FETCH #139868340145904:c=3613450,e=3621363,p=0,cr=44795,cu=0,mis=0,r=1,dep=1,og=1,plh=543621469,tim=1535985706428819
STAT #139868340145904 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=44797 pr=0 pw=0 time=3621383 us)'
STAT #139868340145904 id=2 cnt=420002 pid=1 pos=1 obj=0 op='FILTER (cr=44797 pr=0 pw=0 time=3431799 us)'
STAT #139868340145904 id=3 cnt=420002 pid=2 pos=1 obj=0 op='HASH JOIN (cr=44795 pr=0 pw=0 time=3367405 us cost=2452 size=2185662 card=24558)'
STAT #139868340145904 id=4 cnt=18 pid=3 pos=1 obj=266194 op='TABLE ACCESS FULL MOP_STANS_DICT (cr=6 pr=0 pw=0 time=51 us cost=3 size=72 card=18)'
STAT #139868340145904 id=5 cnt=420002 pid=3 pos=2 obj=0 op='HASH JOIN RIGHT OUTER (cr=44789 pr=0 pw=0 time=3045028 us cost=2448 size=2087430 card=24558)'
STAT #139868340145904 id=6 cnt=67 pid=5 pos=1 obj=379242 op='TABLE ACCESS FULL MOP_AGENT (cr=6 pr=0 pw=0 time=17 us cost=3 size=396 card=66)'
STAT #139868340145904 id=7 cnt=420002 pid=5 pos=2 obj=0 op='HASH JOIN RIGHT OUTER (cr=44783 pr=0 pw=0 time=2874147 us cost=2445 size=1940082 card=24558)'
STAT #139868340145904 id=8 cnt=67 pid=7 pos=1 obj=379242 op='TABLE ACCESS FULL MOP_AGENT (cr=6 pr=0 pw=0 time=22 us cost=3 size=396 card=66)'
STAT #139868340145904 id=9 cnt=420002 pid=7 pos=2 obj=0 op='NESTED LOOPS (cr=44777 pr=0 pw=0 time=2672792 us cost=2442 size=1792734 card=24558)'
STAT #139868340145904 id=10 cnt=420002 pid=9 pos=1 obj=0 op='MERGE JOIN CARTESIAN (cr=8733 pr=0 pw=0 time=547912 us cost=2438 size=27140100 card=417540)'
STAT #139868340145904 id=11 cnt=1 pid=10 pos=1 obj=308350 op='TABLE ACCESS FULL MOP_BANK (cr=6 pr=0 pw=0 time=58 us cost=3 size=7 card=1)'
STAT #139868340145904 id=12 cnt=420002 pid=10 pos=2 obj=0 op='BUFFER SORT (cr=8727 pr=0 pw=0 time=483495 us cost=2435 size=24217320 card=417540)'
STAT #139868340145904 id=13 cnt=420002 pid=12 pos=1 obj=0 op='PARTITION LIST SINGLE PARTITION: KEY KEY (cr=8727 pr=0 pw=0 time=244590 us cost=2435 size=24217320 card=417540)'
STAT #139868340145904 id=14 cnt=420002 pid=13 pos=1 obj=265962 op='TABLE ACCESS FULL MOP_D_ PARTITION: KEY KEY (cr=8727 pr=0 pw=0 time=183793 us cost=2435 size=24217320 card=417540)'
STAT #139868340145904 id=15 cnt=420002 pid=9 pos=2 obj=0 op='PARTITION LIST SINGLE PARTITION: KEY(AP) KEY(AP) (cr=36044 pr=0 pw=0 time=1912465 us cost=1 size=8 card=1)'
STAT #139868340145904 id=16 cnt=420002 pid=15 pos=1 obj=266845 op='INDEX UNIQUE SCAN U_MOP_Z_ZID PARTITION: KEY(AP) KEY(AP) (cr=36044 pr=0 pw=0 time=751422 us cost=1 size=8 card=1)'
STAT #139868340145904 id=17 cnt=1 pid=16 pos=1 obj=0 op='NESTED LOOPS (cr=4 pr=0 pw=0 time=21 us cost=2 size=20 card=1)'
STAT #139868340145904 id=18 cnt=1 pid=17 pos=1 obj=296734 op='TABLE ACCESS BY INDEX ROWID MOP_ATOM_ (cr=2 pr=0 pw=0 time=12 us cost=1 size=9 card=1)'
STAT #139868340145904 id=19 cnt=1 pid=18 pos=1 obj=391149 op='INDEX UNIQUE SCAN P_MOP_ATOM_ (cr=1 pr=0 pw=0 time=3 us cost=1 size=0 card=1)'
STAT #139868340145904 id=20 cnt=1 pid=17 pos=2 obj=296736 op='INDEX UNIQUE SCAN P_USER_RIGHT (cr=2 pr=0 pw=0 time=7 us cost=1 size=11 card=1)'
STAT #139868340145904 id=21 cnt=1 pid=2 pos=2 obj=296736 op='INDEX UNIQUE SCAN P_USER_RIGHT (cr=2 pr=0 pw=0 time=20 us cost=1 size=11 card=1)'
CLOSE #139868340145904:c=0,e=2,dep=1,type=3,tim=1535985706429826
EXEC #139868339903768:c=3810421,e=3859817,p=13,cr=44952,cu=0,mis=0,r=1,dep=0,og=1,plh=0,tim=1535985706429869
XCTEND rlbk=0, rd_only=1, tim=1535985706429903
CLOSE #139868339903768:c=0,e=18,dep=0,type=3,tim=1535985706434283
PARSE #139868339774328:c=0,e=17,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706436538
EXEC #139868339774328:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706436614
FETCH #139868339774328:c=0,e=20,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706436656
CLOSE #139868339774328:c=0,e=10,dep=1,type=3,tim=1535985706436686
PARSE #139868339774328:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706437053
EXEC #139868339774328:c=0,e=12,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706437100
FETCH #139868339774328:c=0,e=12,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706437153
CLOSE #139868339774328:c=0,e=8,dep=1,type=3,tim=1535985706437180
PARSE #139868339774328:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706437454
EXEC #139868339774328:c=0,e=12,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706437500
FETCH #139868339774328:c=0,e=10,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706437530
CLOSE #139868339774328:c=0,e=9,dep=1,type=3,tim=1535985706437560
PARSE #139868339774328:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706437761
EXEC #139868339774328:c=0,e=12,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706437807
FETCH #139868339774328:c=0,e=10,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706437837
CLOSE #139868339774328:c=0,e=9,dep=1,type=3,tim=1535985706437863
PARSE #139868339774328:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706438106
EXEC #139868339774328:c=0,e=12,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706438152
FETCH #139868339774328:c=0,e=10,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706438182
CLOSE #139868339774328:c=0,e=8,dep=1,type=3,tim=1535985706438207
=====================
PARSING IN CURSOR #139868339775376 len=994 dep=0 uid=153 oct=3 lid=204 tim=1535985706440915 hv=3963136235 ad='1de1ce180' sqlid='2bz65hrq3ja7b'
select t.CLIENT_ID,
t.FULL_NAME,
t.ID_CODE,
t.DOC_NUM,
t.DOC_DATE,
t.DOC_AUTH,
t.ADR_REGION,
t.ADR_DISTR,
t.ADR_CITY,
t.ADR_ADR,
t.BANK_N,
t.BANK_NAME,
t.ACN_N,
t.ACN_ID,
t.Z_NO,
t.D_NO,
t.SUM_FULL,
t.SUM_DEPO,
t.SUM_BLOCK,
t.SUM_NOT,
t.WHY_NAME,
t.WHY_NOT,
t.UPDATE_ST,
t.STAN_D,
t.TR_ID,
t.CF_ID,
t.BANK_REE,
t.BANK_PAY,
t.DATE_PAY,
t.SUM_PAY,
t.DEAL_END,
t.DEAL_NUM,
t.ACN_NUM,
t.ACN_SUM,
t.PROC_NUM,
t.PROC_SUM,
t.VIRT,
t.Z_NO_OLD,
t.D_NO_OLD,
t.TMP_BLCK,
t.DEAL_START,
t.PROC,
t.CURR,
t.ZOB,
t.SUM_FULL_K,
t.SUM_DEPO_K,
t.SUM_BLOCK_K,
t.SUM_NOT_K,
t.SUM_PAY_K,
t.ACN_SUM_K,
t.PROC_SUM_K
from fgv0.mop_205_d t
where t.bank_n = :doa_bankn
END OF STMT
PARSE #139868339775376:c=3999,e=4798,p=0,cr=10,cu=0,mis=1,r=0,dep=0,og=1,plh=0,tim=1535985706440914
PARSE #139868339774328:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706441515
EXEC #139868339774328:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706441567
FETCH #139868339774328:c=0,e=11,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706441599
CLOSE #139868339774328:c=0,e=10,dep=1,type=3,tim=1535985706441630
PARSE #139868339774328:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706441909
EXEC #139868339774328:c=0,e=11,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706441954
FETCH #139868339774328:c=0,e=11,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706442011
CLOSE #139868339774328:c=0,e=9,dep=1,type=3,tim=1535985706442042
PARSE #139868339774328:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706442299
EXEC #139868339774328:c=0,e=12,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706442344
FETCH #139868339774328:c=0,e=10,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706442373
CLOSE #139868339774328:c=0,e=8,dep=1,type=3,tim=1535985706442399
PARSE #139868339774328:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706442568
EXEC #139868339774328:c=0,e=11,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706442613
FETCH #139868339774328:c=0,e=10,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706442647
CLOSE #139868339774328:c=0,e=9,dep=1,type=3,tim=1535985706442673
PARSE #139868339774328:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706442894
EXEC #139868339774328:c=0,e=12,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,plh=3684871272,tim=1535985706442939
FETCH #139868339774328:c=0,e=9,p=0,cr=2,cu=0,mis=0,r=1,dep=1,og=4,plh=3684871272,tim=1535985706442968
CLOSE #139868339774328:c=0,e=9,dep=1,type=3,tim=1535985706443024
*** 2018-09-03 17:41:46.688
EXEC #139868339775376:c=245962,e=247132,p=0,cr=12,cu=0,mis=1,r=0,dep=0,og=1,plh=55685339,tim=1535985706688354
*** 2018-09-03 17:41:51.289
WARNING:io_submit failed due to kernel limitations MAXAIO for process=128 pending aio=111
WARNING:asynch I/O kernel limits is set at AIO-MAX-NR=1048576 AIO-NR=43264
*** 2018-09-03 17:41:55.393
FETCH #139868339775376:c=6884953,e=8698914,p=36585,cr=121849,cu=0,mis=0,r=300,dep=0,og=1,plh=55685339,tim=1535985715393801