Shared SQL Areas (88)
A shared SQL area contains the parse tree and execution plan for a
given SQL statement. Oracle saves memory by using one shared SQL area for SQL
statements run multiple times, which often happens when many users run the same
application.
Oracle allocates memory from the shared pool when a new SQL statement is parsed, to
store in the shared SQL area. The size of this memory depends on the complexity of
the statement. If the entire shared pool has already been allocated, Oracle can
deallocate items from the pool using a modified LRU (least recently used) algorithm
until there is enough free space for the new statement’s shared SQL area. If Oracle
deallocates a shared SQL area, the associated SQL statement must be reparsed and
reassigned to another shared SQL area at its next execution.
共享SQL區域
1. 包括一個SQL語句的解析樹, 執行計劃.
2. Oracle為共享記憶體區域分配記憶體是在一個新的SQL語句被解析時並被儲存在該區域時.分配的記憶體大小視SQL語
句的複雜性來定
3. 如果該區域全被分配, Oracle使用LRU演算法來回收各條款直到有足夠的空閒空間for新的SQL.
4. 如果回收了一個共享記憶體區域, 則相應的SQL在下次執行時會誒重新解析並被指定到另一塊共享SQL區域
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-978365/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Shared SQL Areas和Private SQL AreasSQL
- Shared SQL Areas and Private SQL Areas (87)SQL
- Cursors and SQL Areas (99)SQL
- SQL Work Areas(101)SQL
- sql_shared_cursor (轉)SQL
- Shared SQL Dependency Management (249)SQL
- shared_pool_spare_free.sqlSQL
- shared SQL,parent cursor,child cursorSQL
- Overview of the Program Global Areas (97)View
- Software Code Areas (105)
- 【Shared Pool】使用DBMS_SHARED_POOL包將PL/SQL大物件儲存到Shared PoolSQL物件
- PL/SQL Program Units and the Shared Pool (89)SQL
- shared_pool的sql命中率SQL
- v$sql v$sqlarea v$sql_shared_cursor及遊標SQL
- It is worth mentioning it is also one of the main areasAI
- 使用DBMS_SHARED_POOL包將PL/SQL大物件儲存到Shared PoolSQL物件
- sql執行計劃_v$sqlarea_v$sql_v$sql_shared_cursorSQL
- 【PL/SQL】在PL/SQL中執行重新整理Shared Pool命令SQL
- v$sql_shared_cursor中的BIND_MISMATCHSQL
- V$SQL_SHARED_CURSOR檢視硬解析的原因SQL
- SQL在shared pool中的解析過程問題SQL
- 11G can flush one SQL Cursor out of shared poolSQL
- SpringCloud-88SpringGCCloud
- 每日導數88
- cursor_sharing與v$sqlarea_v$sql_v$sql_shared_cursorSQL
- v$sql v$sqlarea v$sql_shared_cursor及父遊標,子游標SQL
- 6.4 滾動區域(Scrolling Areas)
- Oracle discoverer中exp/imp Business Areas (BAs) 和foldersOracle
- 清除shared pool中某條sql的執行計劃SQL
- 共享SQL區在shared pool中釋放的條件SQL
- SQL Plan Baseline與Shared Cursor機制研究(一)SQL
- SQL Plan Baseline與Shared Cursor機制研究(二)SQL
- SQL Plan Baseline與Shared Cursor機制研究(三)SQL
- 88 EFCore遇到問題
- dbms_shared_pool.purge 清理某個SQL執行計劃SQL
- v$sql_shared_cursor檢視記錄多版本的資訊SQL
- 檢視v$sql_shared_cursor檢視獲取sql語句為什麼不能共享?SQL
- DB_DOMAIN Initialization Parameter (88)AI