Cursors and SQL Areas (99)
The application developer of an Oracle precompiler program or
OCI program can explicitly open cursors, or handles to specific private SQL areas, and
use them as a named resource throughout the execution of the program. Recursive
cursors that Oracle issues implicitly for some SQL statements also use shared SQL
areas.
The management of private SQL areas is the responsibility of the user process. The
allocation and deallocation of private SQL areas depends largely on which application
tool you are using, although the number of private SQL areas that a user process can
allocate is always limited by the initialization parameter OPEN_CURSORS. The default
value of this parameter is 50.
A private SQL area continues to exist until the corresponding cursor is closed or the
statement handle is freed. Although Oracle frees the runtime area after the statement
completes, the persistent area remains waiting. Application developers close all open
cursors that will not be used again to free the persistent area and to minimize the
amount of memory required for users of the application.
遊標與SQL區
1. 使用者程式可分配的最大私有SQL區受初始化引數OPEN_CURSORS的限制
2. 當相應的遊標被關閉或者語句控制程式碼被釋放時, 私有SQL區才消失
3. runtime area在SQL語句結束後釋放, persistent area則繼續等待(什麼?)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-978527/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Shared SQL Areas和Private SQL AreasSQL
- Shared SQL Areas and Private SQL Areas (87)SQL
- Shared SQL Areas (88)SQL
- SQL Work Areas(101)SQL
- 正確設定open_cursors和'session_cached_cursors' 可以減少sql解析SessionSQL
- open_cursors與session_cached_cursorsSession
- Overview of the Program Global Areas (97)View
- Software Code Areas (105)
- sql 99 語法SQL
- Execute to Parse% 及open_cursors,session_cached_cursorsSession
- Oracle檢視已被使用的open_cursors&session_cached_cursorsOracleSession
- 引數 session_cached_cursors 與 open_cursors詳解Session
- examples for oracle ref cursorsOracle
- Oracle:open_cursorsOracle
- session_cached_cursorsSession
- It is worth mentioning it is also one of the main areasAI
- 修改open_cursors和session_cached_cursors的引數值Session
- 關於open_cursors和session_cached_cursors的引數值Session
- Monitoring Open and Cached Cursors
- zt_oracle cursor_open cursors_session_cached_cursors管理及優化OracleSession優化
- How to find Current open Cursors in OracleOracle
- SESSION_CACHED_CURSORS詳解Session
- Monitoring Open and Cached Cursors(zt)
- 引數SESSION_CACHED_CURSORSSession
- session_cached_cursors的研究Session
- 用SQL實現99乘法表SQL
- 6.4 滾動區域(Scrolling Areas)
- Oracle discoverer中exp/imp Business Areas (BAs) 和foldersOracle
- SESSION_CURSOR_CACHE open_cursorsSession
- Monitoring Open and Cached Cursors(轉載)
- css23 CSS Links, CursorsCSS
- session_cached_cursors,cursor_space_for_timeSession
- 主題test999999
- open_cursor session_cached_cursors 優化Session優化
- dbms_session.set_close_cached_open_cursors(true)Session
- 多版本cursor,與session_cached_cursors關係Session
- ActiveMQ 中的訊息遊標(Message cursors)MQ
- 組成原理|為什麼計算機中0.3 + 0.6 等於 0.899999999...?計算機