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

Home -> Community -> Mailing Lists -> Oracle-L -> using dbms_system.set_ev instead of alter session - how to indica

using dbms_system.set_ev instead of alter session - how to indica

From: Jacques Kilchoer <Jacques.Kilchoer_at_quest.com>
Date: Tue, 23 Jan 2001 14:31:03 -0800
Message-Id: <10750.127330@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0858C.2B319800
Content-Type: text/plain;

        charset="iso-8859-1"

The Oracle FAQ mentioned at the end of the list e-mails has the following hint for tracing:

# Trace SQL statements and show bind variables in trace output event = "10046 trace name context forever, level 12"

I want to do this for a session started by a program. So instead of alter session I need to use dbms_system.set_ev However, I don't see how I can specify a length of time (in this case "forever") to that procedure. It looks like the syntax should be (from inside SQL*Plus) execute sys.dbms_system.set_ev (sid, serial#, 10046, 15, 'context') ; where 10046 is the event for "enable SQL statement timing"

How do I indicate to set_ev the length of time for which tracing for that event should be enabled. If the default is forever, then I would guess that the only way to terminate the tracing is to end the session?



any ignorant comments made are the sole responsibility of J. R. Kilchoer and should not reflect adversely upon my employer.  

Jacques R. Kilchoer
(949) 754-8816
Quest Software, Inc.
8001 Irvine Center Drive
Irvine, California 92618
U.S.A.
http://www.quest.com

------_=_NextPart_001_01C0858C.2B319800
Content-Type: text/html;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>using dbms_system.set_ev instead of alter session - how to =
indicate length of tracing?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>The Oracle FAQ mentioned at the end of the list =
e-mails has the following hint for tracing:</FONT>
</P>

<P><FONT SIZE=3D2># Trace SQL statements and show bind variables in =
trace output</FONT>
<BR><FONT SIZE=3D2>event =3D &quot;10046 trace name context forever, =
level 12&quot;</FONT>
</P>

<P><FONT SIZE=3D2>I want to do this for a session started by a program. =
So instead of alter session I need to use dbms_system.set_ev&nbsp; = However, I don't see how I can specify a length of time (in this case = &quot;forever&quot;) to that procedure.</FONT></P>

<P><FONT SIZE=3D2>It looks like the syntax should be (from inside =
SQL*Plus)</FONT>
<BR><FONT SIZE=3D2>execute sys.dbms_system.set_ev (sid, serial#, 10046, =
15, 'context') ;</FONT>
<BR><FONT SIZE=3D2>where 10046 is the event for &quot;enable SQL =
statement timing&quot;</FONT>
</P>

<P><FONT SIZE=3D2>How do I indicate to set_ev the length of time for =
which tracing for that event should be enabled. If the default is = forever, then I would guess that the only way to terminate the tracing = is to end the session?</FONT></P>

<P><FONT SIZE=3D2>------</FONT>
<BR><FONT SIZE=3D2>any ignorant comments made are the sole =
responsibility of J. R. Kilchoer and should not reflect adversely upon = my employer.</FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>Jacques R. Kilchoer</FONT>
<BR><FONT SIZE=3D2>(949) 754-8816</FONT>
<BR><FONT SIZE=3D2>Quest Software, Inc.</FONT>
<BR><FONT SIZE=3D2>8001 Irvine Center Drive</FONT>
<BR><FONT SIZE=3D2>Irvine, California 92618</FONT>
<BR><FONT SIZE=3D2>U.S.A.</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.quest.com" =
TARGET=3D"_blank">http://www.quest.com</A></FONT> Received on Tue Jan 23 2001 - 16:31:03 CST

Original text of this message

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