这个AWR 报告似乎有些问题:
Elapsed: 103.41 (mins)
DB Time: 4,903.54 (mins)
DB TIME非常高
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 601 .2
latch: library cache 703,527 31 0 .0 Concurrency
cursor: pin S wait on X 2,449 10 4 .0 Concurrency
latch: library cache lock 42,916 6 0 .0 Concurrency
latch free 77 0 6 .0 Other
但是CPU TIME+ foreground wait time 只有不到1000s
Parse CPU to Parse Elapsd %: 这栏是空的
Statistic Name Time (s) % of DB Time
sql execute elapsed time 292,090.05 99.28
parse time elapsed 790.93 0.27
DB CPU 600.92 0.20
PL/SQL execution elapsed time 4.18 0.00
hard parse elapsed time 2.08 0.00
hard parse (sharing criteria) elapsed time 1.47 0.00
hard parse (bind mismatch) elapsed time 1.47 0.00
connection management call elapsed time 0.25 0.00
sequence load elapsed time 0.03 0.00
failed parse elapsed time 0.02 0.00
repeated bind elapsed time 0.00 0.00
DB time 294,212.63
background elapsed time 13,234.98
background cpu time 0.26
解析时间仅占790.93 s
可能的一种情况 是 发生了严重的 cpu queue 队列等待, 建议你查验以下这个OS上是否有其他应用消耗了大量CPU TIME。
建议你上传 该时段的ASH
另你的问题
该语句 存在过多的绑定变量,可能导致sql因为bind mismatch而无法共享游标
INSERT INTO tbl_ctjs (gsdm,xzdm,gappno,bdh,ryxh,datasrc,rowid_from,flag,bbrxb,bdzt,jffs,jfqx,sjjfqx,bxqx,lqfs,lqnl,tbnl,cbrq,ksrq,tzrq,bdztbhrq,xcjfqx,zjqx,cjrq,jfcs,jfl,jfbz,fs,ljjnbf,dqje,yjbf,cbzjf,zhye,swrq,swgfje,dqtbje,sum_dispay,sum_surpay,sum_mq,xsqd,bdjgnf,dnbf,dnpgbf,prem_flag,kqx,sxsjbf,basres,pdres,cv,zbj,sxminus,swzbj,tbzbj,zbjjsbzw,ylwlje,ypwpje,wjzbj,wjzbjbzw,pvpension,initialpay,njjs_flag,dqjnbf,dqjfzrqq,zjjfrq,xbbf,dnjfcs,dnjfbf,ydfy,zjyj,jjyj,glf,fyjsbzw,fy_adjust,fy_adjust_flag,zrswbe,ywswbe,ywscbe,yxbe,bejsbzw,living_p1,death_p1,living_p2,death_p2,living_p3,death_p3,living_fp,living_flag,jfxbe,yqswgf,cfnled,dqyn,yqswjsbzw,lqnx,lpgfrq,dnlqje,int_expect,expect_flag,snwzbj,dqylje,yqswgfcb,sum_sc,sum_medpay,gpolicyno,tb_cv,snmbdztbhrq,bmdm,ibnr,dnlpje,dntbje,dqmqje,dqnjlqje,dqqtje,deptno_cw,kxqydfy,kxqdnpgbf,pgfy,yqscgf,fa_sp,snmbdzt,errortype,estres,recalcflag,div_add,xcjfrq,res0,bdzt0,stopdate,begdate,zjfxrq,reljfqx,xzdm8,grace_bf) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,:19,:20,:21,:22,:23,:24,:25,:26,:27,:28,:29,:30,:31,:32,:33,:34,:35,:36,:37,:38,:39,:40,:41,:42,:43,:44,:45,:46,:47,:48,:49,:50,:51,:52,:53,:54,:55,:56,:57,:58,:59,:60,:61,:62,:63,:64,:65,:66,:67,:68,:69,:70,:71,:72,:73,:74,:75,:76,:77,:78,:79,:80,:81,:82,:83,:84,:85,:86,:87,:88,:89,:90,:91,:92,:93,:94,:95,:96,:97,:98,:99,:100,:101,:102,:103,:104,:105,:106,:107,:108,:109,:110,:111,:112,:113,:114,:115,:116,:117,:118,:119,:120,:121,:122,:123,:124,:125,:126,:127,:128,:129,:130,:131,:132) |