Re: Trying to locate a cursor with very little information

From: Chen Shapira <>
Date: Tue, 7 Jul 2009 16:04:27 -0700
Message-ID: <>

I don't have the sql text in the trace file, but Oracle still have the cursor in the shared pool.
And Oracle knows that cursor #2 from a specific process is related to a specific open cursor in the pool (otherwise exec and fetch calls would fail). So there must be a way to find the sql text from Oracle's SGA. I was hoping someone already figured it out...


On Tue, Jul 7, 2009 at 3:51 PM, Daniel Fink<> wrote:
> If you don't have the PARSE or PARSING lines, you won't have the sql text.
> However, if the STAT lines were written, you might be able to reverse
> engineer the statement from the plan. Use the STAT lines to see what plans
> use those operations and what statements use those plans.

Received on Tue Jul 07 2009 - 18:04:27 CDT

Original text of this message