Parent and child cursors in the library cache
2009-10-06 11:24
411 查看
refer: http://www.ixora.com.au/q+a/0104/19005414.htm
From: | Steve Adams |
Date: | 19-Apr-2001 00:54 |
Subject: | Parent and child cursors in the library cache |
Firstly, please review the answer What are versions of an SQL statement?. For each SQL statement the library cache contains a "parent" cursor for the text of the SQL statement. The parent cursor is comprised of a "handle" that can be looked up by hash value via the library cache hash table, and an "object" that contains pointers to each of its "child" cursors. Each child cursor is also comprised of a handle and an object. The child object is comprised of two heaps numbered 0 and 6. Heap 0 contains all the identifying information for a particular version of the SQL statement and heap 6 contains the execution plan. This distinction between parent and child cursors is maintained even when there is only one version of each SQL statement. For parent cursors the convention used in the X$ tables is that the parent address is the same as the handle address. V$OPEN_CURSORS, V$SQL and so on are only interested in child cursors and so they exclude parent cursors by requiring that the two addresses are different. The columns that you mentioned are of course the two addresses. | |
I'm trying to play with X$KGLLK fixed table. But I can't understand the difference between the columns KGLLKHDL and KGLHDPAR. I've found in the view definition V$OPEN_CURSOR that to get the cursor list, Oracle selects rows where KGLLKHDL <> KGLHDPAR. But if I query all rows for particular transaction I can see 2 rows for the same cursor - first row with KGLLKHDL=KGLHDPAR and second row with KGLLKHDL <> KGLHDPAR. |
相关文章推荐
- whether the results are the same of getClass().getName() called in child class and parent class?
- How to find child controls that are located in the template of a parent control
- How to solve problem caused when the CRT library and MFC libraries are linked in the wrong order
- The most simple and easy to use Qt GUI library plug-in FTStyle (1)
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard library – the complete list with all 74 functions
- Report on Environmental Monitoring in the College Archives and Sophia Smith Collection Conducted by the Massachusetts Board of Library Commissioners, August 2001-Janaury 2002
- [转]Installing, Configuring and Using Windows Server AppFabric and the "Velocity" Memory Cache in 10 minutes
- I do not want to inherit the child opacity from the parent in CSS(不想让子元素继承父元素的透明度)
- Database Performance: How to reduce "library cache: mutex X" waits for scalability in the Oracle dat
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard libr...
- The most simple and easy to use Qt GUI library plug-in FTStyle (2)The latest version - 2017.10
- The most simple and easy to use Qt GUI library plug-in FTStyle (3)How do Qt4 and Qt5 choose
- Oracle SQL with multiple versions in the library cache
- the question regarding "Parent and Child Latches", version 11.1.0.7
- Latches and Tuning:The Library Cache
- [ReactVR] Animate Text, Images, Views, and 3D Elements Using the Animated Library in React VR
- How To Create a Child Domain in Active Directory and Delegate the DNS Namespace to the Child Domain
- Latches and Tuning:The Library Cache
- customized checkbox in child node and no checkbox in parent node in a treeview
- Analyze Library Cache Pin and 4021 Error in Oracle