Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Trace file Anomolies
> But add "alter system flush shared_pool;" in another session just
> before exiting (the cursor is open at that point - sqlplus keeps open
> the last cursor and closes it only when another statement is submitted
> or on exit of course) and the STAT line is missing.
>
> My guess is that the (recreatable) chunk(s) containing the plan in the
> library cache got flushed out, and since the STAT lines contain
> nothing more than the plan, they got simply skipped.
>
> If that's correct, all it takes is a stressed library cache (eg no
> bind variables) that is trapped in the vicious loop fill/flush
> partially/fill again/etc and you are very likely to observe missing
> STAT lines.
>
This sounds like a perfectly viable answer - my shared pool is overworked as a result of some SQL using literals so this could very well be the case.
Cheers
Matt Received on Fri Nov 12 2004 - 02:09:29 CST