![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In older versions of Oracle, there was a rule saying that V$SQLAREA is evil because queries against it will hit library cache latch once for every row. I was unable to confirm this in 11.2.0.3. The only latch it seems to be hitting is SQL memory manager workarea list latch. Did anyone else notice that? If my findings are right, that would make V$SQLAREA view much more useful for monitoring and querying purposes. |
#3
| |||
| |||
|
|
On Wed, 14 Dec 2011 20:47:02 +0000, Mladen Gogala wrote: In older versions of Oracle, there was a rule saying that V$SQLAREA is evil because queries against it will hit library cache latch once for every row. I was unable to confirm this in 11.2.0.3. The only latch it seems to be hitting is SQL memory manager workarea list latch. Did anyone else notice that? If my findings are right, that would make V$SQLAREA view much more useful for monitoring and querying purposes. BTW, here is an old discussion from the Oracle-l mentioning V$SQLAREA: http://www.freelists.org/post/oracle...out-VSQLAREA,1 Another text is here:https://netfiles.uiuc.edu/jstrode/www/oraview/V$SQLAREA.html --http://mgogala.byethost5.com |
#4
| |||
| |||
|
|
You have to remember that the whole latch/locking mechanisms changed with 11.1 and even more in 11.2 Here is a quote from Tanel Poder: "In Oracle 11g even more library cache operations have been changed to use KGX mutexes instead of latches." |
#5
| |||||||
| |||||||
|
|
On Wed, 14 Dec 2011 17:46:18 -0800, onedbguru wrote: You have to remember that the whole latch/locking mechanisms changed with 11.1 and even more in 11.2 Here is a quote from Tanel Poder: "In Oracle 11g even more library cache operations have been changed to use KGX mutexes instead of latches." I am aware of that. Jonathan Lewis also writes about that in his latest book. I only wanted to stress the fact that the old recommendation for V$SQLAREA no longer holds true and that the steep price tag connected to that table has been removed. |
|
Id | Operation | Name | Rows | Bytes | Cost (%CPU |
|
0 | SELECT STATEMENT | | 1 | 26 | 0 (0 |
|
1 | SORT AGGREGATE | | 1 | 26 | | * 2 | FIXED TABLE FULL| X$KGLCURSOR_CHILD_SQLID | 1 | 26 | 0 (0 |
|
Id | Operation | Name | Rows | Bytes | Cost (% CPU)| Tim |
|
0 | SELECT STATEMENT | | 1 | 13 | 0 (0)| 00: |
|
1 | SORT AGGREGATE | | 1 | 13 | * 2 | FIXED TABLE FULL| X$KGLCURSOR_CHILD | 1 | 13 | 0 (0)| 00: |
#6
| |||
| |||
|
|
In older versions of Oracle, there was a rule saying that V$SQLAREA is evil because queries against it will hit library cache latch once for every row. I was unable to confirm this in 11.2.0.3. The only latch it seems to be hitting is SQL memory manager workarea list latch. Did anyone else notice that? If my findings are right, that would make V$SQLAREA view much more useful for monitoring and querying purposes. -- http://mgogala.byethost5.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |