Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\debug_sql_trace.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Enabling SQL Tracing and Using TKPROF</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T16:11:31Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Enabling SQL Tracing and Using TKPROF" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E11947-01" /> <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface.htm" title="Home" type="text/html" /> <link rel="up" href="debug.htm" title="Debugging an Application" type="text/html" /> <link rel="up" href="debug_sql_trace.htm" title="Enabling SQL Tracing and Us..." type="text/html" /> <link rel="prev" href="debug_mode.htm" title="Previous" type="text/html" /> <link rel="next" href="debug_monitor_resource.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface.htm" title="Home">Home</a> > <a href="debug.htm" title="Debugging an Application">Debugging an Application</a> > Enabling SQL Tracing and Us...</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="debug_mode.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="debug_monitor_resource.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="BABGDGEH" name="BABGDGEH"></a></p> <div class="sect1"><!-- infolevel="all" infotype="General" --> <h1><a name="HTMDB10004|debug, enable SQL tracing"></a>Enabling SQL Tracing and Using <a id="sthref1905" name="sthref1905"></a><a id="sthref1906" name="sthref1906"></a>TKPROF</h1> <p>Tracing your session can be a very effective way to debug an application. From a database perspective, each page request is a single database session. If you enable SQL tracing, then Oracle Application Express creates a temporary file you can then analyze using the TKPROF utility.</p> <p>You enable SQL tracing in Oracle Application Express by using <code>f?p</code> syntax to set the argument <code>p_trace=YES</code>. For example, to trace the display of page 1 in application 100, you would use the syntax:</p> <pre xml:space="preserve" class="oac_no_warn"> http:/.../f?p=100:1&p_trace=YES </pre> <p>To use the TKPROF utility:</p> <ol> <li> <p>Log in to SQL*Plus as a privileged user.</p> </li> <li> <p>Execute the following statement:</p> <pre xml:space="preserve" class="oac_no_warn"> show parameter USER_DUMP_DEST </pre></li> <li> <p>Navigate to the directory in which the trace file is created.</p> </li> <li> <p>Run the TKPROF utility from the operating system prompt using the following syntax:</p> <pre xml:space="preserve" class="oac_no_warn"> tkprof filename1 filename2 [waits=yes|no] [sort=option] [print=n] [aggregate=yes|no] [insert=filename3] [sys=yes|no] [table=schema.table] [explain=user/password] [record=filename4] [width=n] </pre> <p>The input and output files are the only required arguments.</p> </li> <li> <p>To view online Help, invoke TKPROF without arguments.</p> </li> </ol> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">See Also:</p> "Using Application Tracing Tools" in <a href="http://www.oracle.com/pls/db112/lookup?id=PFGRF"><span class="italic">Oracle Database Performance Tuning Guide</span></a> for information about using the TKPROF program</td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> </div> <!-- class="sect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="debug_mode.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="debug_monitor_resource.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de