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

Home -> Community -> Mailing Lists -> Oracle-L -> 10046 tracing in PRO C programs?

10046 tracing in PRO C programs?

From: Glenn Stauffer <stauffer_at_swarthmore.edu>
Date: Thu, 22 May 2003 09:07:11 -0800
Message-ID: <F001.005A01C6.20030522090711@fatcity.com>


We're examining performance of a PRO*C program supplied by our software vendor and I'm looking at how I can get it to generate a 10046 trace file. There is a section in the code that allows the program to be executed with a trace flag set and this code section then runs:

    EXEC SQL ALTER SESSION SET SQL_TRACE TRUE; I replaced this with these statements to setup the session for a 10046, level 8 trace:

    EXEC SQL ALTER SESSION SET TIMED_STATISTICS=TRUE;     EXEC SQL ALTER SESSION SET MAX_DUMP_FILE_SIZE=UNLIMITED;     EXEC SQL ALTER SESSION SET TRACEFILE_IDENTIFIER='APPCODE';     EXEC SQL ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER,     LEVEL 8'; The program compiles and runs and the program execution produces a trace file, however, the trace file contains only the text:

No other information appears after this.

What's this all about? And, what is the best way to run a 10046 trace on a proC program? This program runs in a nightly batch job, so I really want to start the tracing within the program rather than start tracing from another session.

Thanks for any tips,

Glenn Stauffer

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Glenn Stauffer
  INET: stauffer_at_swarthmore.edu

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 22 2003 - 12:07:11 CDT

Original text of this message

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