Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to trace what is happening inside the stored procedure

Re: How to trace what is happening inside the stored procedure

From: Sami Seerangan <dba.orcl_at_gmail.com>
Date: Sat, 5 Feb 2005 09:43:29 -0500
Message-ID: <f09dd62805020506432f82d985@mail.gmail.com>


Jaffar,

The problem is that the SP is invoked by Java program which makes the database connection from the connection pool. We don't have the control of which connection will be used for each execution.

On Sat, 5 Feb 2005 17:33:53 +0300, Jaffar_DBA <sjaffarhussain_at_gmail.com> wrote:
> I would suggest to trace with 10046 event.
> The best option would be
>
> set the following in your SP with execute immediate option.
>
> set tracefile_identifier = 'SP_TRACE'
> alter session set events '10046 trace name context forever, level 8'';
> ...procedure execution.
>
> alter session set events '10046 trace name context off';
>

--
http://www.freelists.org/webpage/oracle-l
Received on Sat Feb 05 2005 - 09:46:08 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US