Query plans in SGA Trace and Session Browser

Matt Birchall <[email protected]>
Newsgroups gmane.comp.db.oracle.toad.free
Message-ID <12907003.539491321462116718.JavaMail.SYSTEM@alvqcfw02>
 Message from: Matt Birchall

I&#39;m confused! I have a query running on a 11gr2 server and I can see the SGA Trace and Session Browser displays in Toad. The Cached Explain Plan in the session browser is different to the one shown in SGA trace!
I thought that both displays should be based on V$SQL_PLAN and should be identical. The IO stats in the session browser match the stats in the SGA trace so I am persuaded that both truly refer to the same query.
(Same behaviour in Toad 10 and Toad 11)
It may be that both query plans are in the cache since the client (Business Objects) does not use bind variables and different plans seem to be produced when there is a change in a numeric value used for a query filter..
The SGA Trace reports a &quot;Version Count&quot; of 2 - does this suggest that there are two versions in the SGA cache and that the SGA trace picks one whilst the Session Browser picks the other?
The Session Browser plan appears to be the one that is being executed.


_______________________________________

Historical Messages 


Author: Matt Birchall
Date: Wed Nov 16 08:48:06 PST 2011
I&#39;m confused! I have a query running on a 11gr2 server and I can see the SGA Trace and Session Browser displays in Toad. The Cached Explain Plan in the session browser is different to the one shown in SGA trace!
I thought that both displays should be based on V$SQL_PLAN and should be identical. The IO stats in the session browser match the stats in the SGA trace so I am persuaded that both truly refer to the same query.
(Same behaviour in Toad 10 and Toad 11)
It may be that both query plans are in the cache since the client (Business Objects) does not use bind variables and different plans seem to be produced when there is a change in a numeric value used for a query filter..
The SGA Trace reports a &quot;Version Count&quot; of 2 - does this suggest that there are two versions in the SGA cache and that the SGA trace picks one whilst the Session Browser picks the other?
The Session Browser plan appears to be the one that is being executed.

__
_______________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.