<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
        主站蜘蛛池模板: 男女作爱免费网站| 亚洲另类无码专区丝袜| 免费手机在线看片| 免费h黄肉动漫在线观看| 曰批免费视频播放在线看片二| 在线v片免费观看视频| 中文日韩亚洲欧美制服| 四虎成人免费观看在线网址| 亚洲熟女精品中文字幕| 啊灬啊灬别停啊灬用力啊免费看| 特级aaaaaaaaa毛片免费视频| 精品国产亚洲一区二区在线观看| 国产va免费观看| 久久精品国产精品亚洲毛片| 免费精品国产自产拍在| 亚洲av中文无码乱人伦在线观看| 亚洲国产成人乱码精品女人久久久不卡| 免费看一级一级人妻片| 亚洲精品乱码久久久久久蜜桃不卡 | 日韩免费无码一区二区视频| 国内精品久久久久影院亚洲| 国产青草视频免费观看97| 色网站在线免费观看| 国产v亚洲v天堂无码网站| 91精品全国免费观看含羞草| 国产精品亚洲综合五月天| 国产免费观看黄AV片| a级毛片高清免费视频| 亚洲女人18毛片水真多| 国产小视频免费观看| 国产在线国偷精品免费看| 亚洲成人黄色在线| 免费一级做a爰片性色毛片| 国产精成人品日日拍夜夜免费| 亚洲视频免费播放| 无码欧精品亚洲日韩一区夜夜嗨| 免费无码黄网站在线看| 国产亚洲精aa在线看| 亚洲精品少妇30p| 青草草在线视频永久免费| 两个人的视频www免费|