soft parse(軟解析),hard parse(硬解析)
link:
hard parse:在share pool中沒找到該SQL,則進行一次hard parse。
soft parse: 在share pool中可以找到該SQL,則進行一次soft parse。
還有一種softer soft parse....
There are two types of parses (well, actually "three" these days).
They are
o HARD parse -- the query has never been seen before, isn't in the shared pool.
We must parse it, hash it, look in the shared pool for it, don't find it,
security check it, optimize it, etc (lots of work).
o SOFT parse -- the query has been seen before, is in the shared poo. We have
to parse it, hash it, look in the shared pool for it and find it (less work then
a hard parse but work none the less)
o a kinder, softer SOFT parse -- you are using session_cached_cursors (search
this site for that word for info). We take your query, look in the sessions
cursor cache -- find the cursor and reuse it. Very very little work.
So, after "startup", you go into sqlplus and do this:
SQL> alter session set session_cached_cursors=0; -- just making sure this is off
SQL> select * from emp; -- hard parse
SQL> select * from emp; -- soft parse
SQL> select * from emp; -- soft parse
SQL> alter session set session_cached_cursors=100; -- enable this feature
SQL> select * from emp; -- soft parse
SQL> select * from emp; -- kinder, gentler, soft parse
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-84498/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於軟解析(soft parse)與硬解析(hard parse),以及session cached cursors (asktom)Session
- fast parse,soft parse,hard parse的區別!AST
- oracle實驗記錄 (分析oracle硬解析&軟解析&fast soft parse)OracleAST
- oracle實驗記錄 (分析oracle硬解析&軟解析&fast soft parse(2))OracleAST
- Oracle的軟解析(soft prase)和硬解析(hard prase)Oracle
- 小議解析parse
- flutter_parse_sdk解析Flutter
- PHP carbon :日期解析 Carbon::parsePHP
- Vue原始碼解析之parseVue原始碼
- AWR Execute to Parse引數解析
- Sql最佳化(六)程式可擴充套件性:soft parse/hard parse,以及為什麼要使用繫結變數SQL套件變數
- oracle breakable parse lock 易碎解析鎖Oracle
- What is a Parse Tree? 什麼是解析樹
- ORACLE 硬解析和軟解析 軟軟解析Oracle
- 軟解析和硬解析
- NPM酷庫049:csv-parse,解析csv檔案NPM
- 徹底弄懂oracle硬解析、軟解析、軟軟解析Oracle
- Oracle 硬解析與軟解析Oracle
- 快應用如何避免JSON.parse()解析出錯JSON
- ORACLE SQL解析之硬解析和軟解析OracleSQL
- Parse CPU to Parse Elapsd %: 指標太低指標
- Oracle的硬解析和軟解析Oracle
- How to Identify Hard Parse Failures (文件 ID 1353015.1)IDEAI
- Oracle中的遊標、硬解析、軟解析、軟軟解析、解析失敗Oracle
- Oracle SQL的硬解析和軟解析OracleSQL
- 草稿 - 遊標,硬解析,軟解析 等
- 軟解析、硬解析的一個小測試
- JavaScript Date.parse()JavaScript
- parse-jsonJSON
- Execute to Parse 指標指標
- Parse CSV file with Groovy
- dbms_sql.parseSQL
- python parse timePython
- SQL大致流程、SPM、軟軟、軟、硬解析SQL
- PHP函式之parse_str()和parse_url()函式PHP函式
- 硬解析物理讀VS軟解析邏輯讀 測試
- JSON.parse() 方法JSON
- JSON.parse()方法JSON