来自AskTom的关于SoftParse的解释

来源:互联网 发布:js预加载页面动画 编辑:程序博客网 时间:2024/06/01 09:03
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

Therearetwotypesofparses(well,actually"three"thesedays).

Theyare

oHARDparse--thequeryhasneverbeenseenbefore,isn'tinthesharedpool. 
Wemustparseit,hashit,lookinthesharedpoolforit,don'tfindit,
securitycheckit,optimizeit,etc(lotsofwork).

oSoftParse--thequeryhasbeenseenbefore,isinthesharedpoo. Wehave
toparseit,hashit,lookinthesharedpoolforitandfindit(lessworkthen
ahardparsebutworknonetheless)

oakinder,softerSoftParse--youareusingsession_cached_cursors(search
thissiteforthatwordforinfo). Wetakeyourquery,lookinthesessions
cursorcache--findthecursorandreuseit. Veryverylittlework.

So,after"startup",yougointosqlplusanddothis:

SQL>altersessionsetsession_cached_cursors=0;--justmakingsurethisisoff
SQL>select*fromemp; --hardparse
SQL>select*fromemp;--SoftParse
SQL>select*fromemp;--SoftParse
SQL>altersessionsetsession_cached_cursors=100;--enablethisfeature
SQL>select*fromemp; --SoftParse
SQL>select*fromemp;--kinder,gentler,SoftParse

link:

http://AskTom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:801662252143



 
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击