<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        HardParse&amp;amp;amp;SoftParse

        來源:懂視網 責編:小采 時間:2020-11-09 14:57:59
        文檔

        HardParse&amp;amp;SoftParse

        HardParse&amp;SoftParse:DDL每次執(zhí)行都需要進行硬解析。 SQL 解析過程 Oracle對此SQL將進行幾個步驟的處理過程: 1、語法檢查(syntax check): 檢查此sql的拼寫是否語法。 2、語義檢查(semantic check): 諸如檢查sql語句中的訪問對象是否存在及該用戶是否具備相應的權限。 3、對sq
        推薦度:
        導讀HardParse&amp;SoftParse:DDL每次執(zhí)行都需要進行硬解析。 SQL 解析過程 Oracle對此SQL將進行幾個步驟的處理過程: 1、語法檢查(syntax check): 檢查此sql的拼寫是否語法。 2、語義檢查(semantic check): 諸如檢查sql語句中的訪問對象是否存在及該用戶是否具備相應的權限。 3、對sq

        DDL每次執(zhí)行都需要進行硬解析。 SQL 解析過程 Oracle對此SQL將進行幾個步驟的處理過程: 1、語法檢查(syntax check): 檢查此sql的拼寫是否語法。 2、語義檢查(semantic check): 諸如檢查sql語句中的訪問對象是否存在及該用戶是否具備相應的權限。 3、對sql語

        DDL每次執(zhí)行都需要進行硬解析。

        SQL 解析過程

        Oracle對此SQL將進行幾個步驟的處理過程:

        1、語法檢查(syntax check): 檢查此sql的拼寫是否語法。

        2、語義檢查(semantic check): 諸如檢查sql語句中的訪問對象是否存在及該用戶是否具備相應的權限。

        3、對sql語句進行解析(prase): 利用內部算法對sql進行解析,生成解析樹(parse tree)及執(zhí)行計劃(execution plan)。

        4、執(zhí)行sql,返回結果(execute and return)

        5個執(zhí)行步驟:

        1:語法分析

        2:權限與對象檢查

        3: 在共享池中檢查是否有完全相同的之前完全解析好的. 如果存在,直接跳過4和5,運行Sql, 此時算soft parse.

        4:選擇執(zhí)行計劃

        5:產生執(zhí)行計劃

        3的解釋:

        Oracle將會對傳遞進來的SQL語句使用HASH函數(shù)運算得出HASH值,再與共享池中現(xiàn)有語句的HASH值進行比較看是否一一對應。現(xiàn)有數(shù)據(jù)庫中SQL語句的HASH值我們可以通過訪問v$sql、v$sqlarea、v$sqltext等數(shù)據(jù)字典中的HASH_VALUE列查詢得出。

        如果SQL語句的HASH值一致,那么ORACLE事實上還需要對SQL語句的語義進行再次檢測,以決定是否一致。那么為什么Oracle需要再次對語句文本進行檢測呢?不是SQL語句的HASH值已經對應上了?事實上就算是SQL語句的HASH值已經對應上了,并不能說明這兩條SQL語句就已經可以共享了。

        Dictionary Cache

        The data dictionary is a collection of database tables and views containing reference information about the database, its structures, and its users. Oracle accesses the data dictionary frequently during SQL statement parsing. This access is essential to the continuing operation of Oracle.

        The data dictionary is accessed so often by Oracle that two special locations in memory are designated to hold dictionary data. One area is called the data dictionary cache, also known as the row cache because it holds data as rows instead of buffers (which hold entire blocks of data). The other area in memory to hold dictionary data is the library cache. All Oracle user processes share these two caches for access to data dictionary information.

        Parsing

        Parsing is one stage in the processing of a SQL statement. When an application issues a SQL statement, the application makes a parse call to Oracle. During the parse call, Oracle:

        Checks the statement for syntactic and semantic validity

        Determines whether the process issuing the statement has privileges to run it

        Allocates a private SQL area for the statement

        Oracle also determines whether there is an existing shared SQL area containing the parsed representation of the statement in the library cache. If so, the user process uses this parsed representation and runs the statement immediately. If not, Oracle generates the parsed representation of the statement, and the user process allocates a shared SQL area for the statement in the library cache and stores its parsed representation there.

        Note the difference between an application making a parse call for a SQL statement and Oracle actually parsing the statement. A parse call by theapplication associates a SQL statement with a private SQL area. After a statement has been associated with a private SQL area, it can be run repeatedly without your application making a parse call. A parse operation by Oracle allocates a shared SQL area for a SQL statement. Once a shared SQL area has been allocated for a statement, it can be run repeatedly without being reparsed.

        Both parse calls and parsing can be expensive relative to execution, so perform them as seldom as possible.

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        HardParse&amp;amp;SoftParse

        HardParse&amp;SoftParse:DDL每次執(zhí)行都需要進行硬解析。 SQL 解析過程 Oracle對此SQL將進行幾個步驟的處理過程: 1、語法檢查(syntax check): 檢查此sql的拼寫是否語法。 2、語義檢查(semantic check): 諸如檢查sql語句中的訪問對象是否存在及該用戶是否具備相應的權限。 3、對sq
        推薦度:
        標簽: 每次 amp ddl
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 国产亚洲中文日本不卡二区| 99精品国产免费久久久久久下载| 免费国产在线观看不卡| 亚洲日韩精品无码专区加勒比☆| 99无码人妻一区二区三区免费 | 91黑丝国产线观看免费 | 久久综合亚洲色HEZYO国产| 狼人大香伊蕉国产WWW亚洲| 免费看AV毛片一区二区三区| 国产亚洲一卡2卡3卡4卡新区| 国产婷婷高清在线观看免费| 视频一区二区三区免费观看| 免费在线观看污网站| 亚洲精品视频免费观看| 亚洲国产精品无码一线岛国| 久久aⅴ免费观看| 亚洲日本视频在线观看| 亚洲人成网站免费播放| 蜜桃传媒一区二区亚洲AV| 亚洲日韩乱码中文无码蜜桃| 亚洲人成免费电影| 中国亚洲呦女专区| 日韩精品电影一区亚洲| 亚洲国产成人久久| 日韩人妻无码免费视频一区二区三区 | 四虎免费久久影院| 一级午夜a毛片免费视频| 亚色九九九全国免费视频| 亚洲中文字幕日本无线码| 国产特级淫片免费看| 国产免费网站看v片在线| 亚洲欧洲国产视频| 免费在线观看黄网| 久久aa毛片免费播放嗯啊| 亚洲中文字幕无码mv| 久久精品国产亚洲AV不卡| 91福利免费视频| 美女免费精品高清毛片在线视| 亚洲va久久久噜噜噜久久狠狠| 一本岛高清v不卡免费一三区| 精品在线免费视频|