国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答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&SoftParse

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

HardParse&SoftParse

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

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

DDL每次執行都需要進行硬解析。

SQL 解析過程

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

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

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

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

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

5個執行步驟:

1:語法分析

2:權限與對象檢查

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

4:選擇執行計劃

5:產生執行計劃

3的解釋:

Oracle將會對傳遞進來的SQL語句使用HASH函數運算得出HASH值,再與共享池中現有語句的HASH值進行比較看是否一一對應。現有數據庫中SQL語句的HASH值我們可以通過訪問v$sql、v$sqlarea、v$sqltext等數據字典中的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.

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

文檔

HardParse&SoftParse

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

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 在线色站| 亚洲另类天堂 | 国产精品视频福利一区二区 | 亚洲精品在线免费观看 | 国产 日韩 欧美 在线 | 国产精品视频自拍 | 国产日韩在线播放 | 久久精品无遮挡一级毛片 | 国产淫语打电话对白在线播放 | 91大神在线精品视频一区 | 日韩在线视频免费观看 | 国产精品 视频一区 二区三区 | 亚洲qvod图片区电影 | 国产一区二区三区欧美 | 么公的又大又深又硬想要 | 欧美一区二区三区不卡免费 | 欧美日韩亚洲综合另类ac | 国产高清视频免费在线观看 | 亚洲原创区 | 色婷婷综合久久久久中文一区二区 | 婷婷国产 | 欧美日韩专区 | 欧美不卡二区 | 在线永久免费观看的毛片 | 欧美我不卡 | 欧美高清一区二区 | 一区在线免费观看 | 99久久99这里只有免费的精品 | 精品久久久久久久久中文字幕 | 日韩视频观看 | 欧美人一级淫片a免费播放 欧美精品专区免费观看 | 一区二区三区高清不卡 | 亚洲欧洲另类 | 国产一级淫 | 欧美a一| 精品欧美一区二区在线观看 | 国产1页 | 欧美日韩在线第一页 | 日韩欧美色图 | 日韩在线视频精品 | 久久91精品国产91 |