<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sql trace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171531#M460640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ST05 -&amp;gt; SQL Trace can be used for performing SQL statement analysis..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html" target="test_blank"&gt;http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 08:06:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-30T08:06:24Z</dc:date>
    <item>
      <title>sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171530#M460639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to use sql trace plz send me step by step?&lt;/P&gt;&lt;P&gt;what is use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 07:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171530#M460639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171531#M460640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ST05 -&amp;gt; SQL Trace can be used for performing SQL statement analysis..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html" target="test_blank"&gt;http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 08:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171531#M460640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T08:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171532#M460641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to st05&lt;/P&gt;&lt;P&gt;click on SQL trace check box&lt;/P&gt;&lt;P&gt;click on Trace On button on the right hand side&lt;/P&gt;&lt;P&gt;click om explain one SQL request and give a sql statement&lt;/P&gt;&lt;P&gt;click on explain button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it ll give you the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well using SQL trace&lt;/P&gt;&lt;P&gt;like as follows: &lt;/P&gt;&lt;P&gt;Goto transaction ST05. Press TRACE ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute your transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Come back to this screen and click TRACE OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check the trace details.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;You end up getting unnecessary details &lt;/P&gt;&lt;P&gt;Lets say you have to analyze your particular SQL query, &lt;/P&gt;&lt;P&gt;1. put a breakpoint at the select statement and execute the transaction , as it stops at your breakpoint , run SQL trace in seperate session.&lt;/P&gt;&lt;P&gt;2. Trace ON&lt;/P&gt;&lt;P&gt;3. Execute the select statement.&lt;/P&gt;&lt;P&gt;4. Trace OFF&lt;/P&gt;&lt;P&gt;5. Analyze.&lt;/P&gt;&lt;P&gt;In this way you can analyze your particular select query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check links like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/17/358df9c9fee2469105731e10756921/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/17/358df9c9fee2469105731e10756921/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html" target="test_blank"&gt;http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 08:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171532#M460641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T08:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171533#M460642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well using SQL trace&lt;/P&gt;&lt;P&gt;like as follows:&lt;/P&gt;&lt;P&gt;Goto transaction ST05. Press TRACE ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute your transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Come back to this screen and click TRACE OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check the trace details.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;You end up getting unnecessary details&lt;/P&gt;&lt;P&gt;Lets say you have to analyze your particular SQL query,&lt;/P&gt;&lt;P&gt;1. put a breakpoint at the select statement and execute the transaction , as it stops at your breakpoint , run SQL trace in seperate session.&lt;/P&gt;&lt;P&gt;2. Trace ON&lt;/P&gt;&lt;P&gt;3. Execute the select statement.&lt;/P&gt;&lt;P&gt;4. Trace OFF&lt;/P&gt;&lt;P&gt;5. Analyze.&lt;/P&gt;&lt;P&gt;In this way you can analyze your particular select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check links like:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/17/358df9c9fee2469105731e10756921/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/17/358df9c9fee2469105731e10756921/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/d1/801f89454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html" target="test_blank"&gt;http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL trace (ST05) provides the developer with the ability to analyze database select statements. Simply execute ST05 to turn on SQL trace, then execute the statement/program you want to analyze. Now turn off SQL trace using ST05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And click on list trace to view the details.&lt;/P&gt;&lt;P&gt;Authorization trace analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Open two sessions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Execute transaction ST01 in one of the sessions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Select the authorization checkbox, note the other traces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can perform (SQL, RFC, Table Buffer etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Click the 'Trace On' button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Within your other session execute the transaction/report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you want to trace or get the user in question to do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Return to the session where you turned the trace on and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click on 'Trace Off' otherwise it will continue to record all authorization checks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Click on the 'Analysis' button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Enter appropriate data into selection screen such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Username, type of trace records (i.e. Authorization check)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Click on the Execute button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. Report displaying trace results will now be displayed&lt;/P&gt;&lt;P&gt;GO THROUGH THIS&lt;/P&gt;&lt;P&gt;Tools provided for Performance Analysis&lt;/P&gt;&lt;P&gt;Following are the different tools provided by SAP for performance analysis of an ABAP object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 08:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171533#M460642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171534#M460643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sheik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ools provided for Performance Analysis&lt;/P&gt;&lt;P&gt;Following are the different tools provided by SAP for performance analysis of an ABAP object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run time analysis transaction SE30 &lt;/P&gt;&lt;P&gt;This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Trace transaction ST05 &lt;/P&gt;&lt;P&gt;The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******Rewards some points.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 09:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171534#M460643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T09:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: sql trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171535#M460644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to get the most out of the results go to trace list - combined table accesses (or summarise in previous versions) then aggregate. given any problem accesses then lookm at the detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 10:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/2171535#M460644</guid>
      <dc:creator>alison_lloyd</dc:creator>
      <dc:date>2007-05-01T10:55:29Z</dc:date>
    </item>
  </channel>
</rss>

