繫結變數分級導致共享池佔用過大

wei-xh發表於2011-07-06
select * from v$version where rownum=1;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production


INSERT INTO BPM_PROCINST ( ID, GMT_MODIFIED, MODIFIER, IS_DELETED, VERSION, PROCDEF, STATE, PROCSTART_TIME, PROCEND_TIME, OLD_PROCINST, SUPER_PROCINST, SUPER_NODENAME, SAVE_SIGN, LINE_NOTE, REQUEST_PERSONID, REQUEST_PERSONNAME, REQUEST_ROLE, REQUEST_ORGID, REQUEST_ORGPATH, DOC_NO, SYSTEM_TYPE, DOC_TYPE, SUB_DOCTYPE, DOC_OBJTYPE, DOC_OBJID, CUST_MEMBER, CUST_ID, CUST_NAME, FLAG, COL1, COL2, COL3 ) VALUES ( :1, sysdate, :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 )


select BIND_MISMATCH,count(*) from v$sql_shared_cursor where sql_id='576c1s91gua19' group by BIND_MISMATCH;

BIND_MISMATCH          COUNT(*)
-------------------- ----------
Y                          2635
N                             1
select sum(SHARABLE_MEM)/1024/1024 M from v$sql where sql_id='576c1s91gua19';

         M
----------
120.423182

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22034023/viewspace-701489/,如需轉載,請註明出處,否則將追究法律責任。

相關文章