<?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/1868598#M365914</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;SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05 to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05 &lt;/P&gt;&lt;P&gt;and click on list trace to view the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2007 09:40:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-05T09:40:26Z</dc:date>
    <item>
      <title>SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868595#M365911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me in detail what is SQL Trace? how it will be useful related with performace tuning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868595#M365911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868596#M365912</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;Tcode is ST05.&lt;/P&gt;&lt;P&gt;You select sto5 and select Trace on.....&lt;/P&gt;&lt;P&gt;then execute ur program&lt;/P&gt;&lt;P&gt;then come and select trace off and list trace&lt;/P&gt;&lt;P&gt;it will give you list of summary of select statements ...like what index is being used and sum of execution time of sql individual select statements etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868596#M365912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868597#M365913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once your program is up.&lt;/P&gt;&lt;P&gt;If you notice performance issue, you can perform an SQL trace :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - ST05&lt;/P&gt;&lt;P&gt;2 - Activate trace&lt;/P&gt;&lt;P&gt;3 - Run your prog.&lt;/P&gt;&lt;P&gt;4 - Deactivate trace &amp;amp; display it !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll see accessed tables, with runtime, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868597#M365913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868598#M365914</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;SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05 to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05 &lt;/P&gt;&lt;P&gt;and click on list trace to view the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868598#M365914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868599#M365915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL-Trace, available in ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you can trace the real DataBase data-flow.&lt;/P&gt;&lt;P&gt;you can see what table he uses to get the info (sometimes needed).&lt;/P&gt;&lt;P&gt;you can see what command takes how much time. means what commands you better improve.&lt;/P&gt;&lt;P&gt;you can see if there´s an array-fetch done or if there are a lot of (non-performant) select singles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868599#M365915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868600#M365916</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;Tcode is ST05.&lt;/P&gt;&lt;P&gt;You select sto5 and select Trace on.....&lt;/P&gt;&lt;P&gt;then execute ur program&lt;/P&gt;&lt;P&gt;then come and select trace off and list trace&lt;/P&gt;&lt;P&gt;it will give you list of summary of select statements ...like what index is being used and sum of execution time of sql individual select statements etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868600#M365916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868601#M365917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&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 analyse database select statements. Simply execute ST05 &lt;/P&gt;&lt;P&gt;to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05 &lt;/P&gt;&lt;P&gt;and click on list trace to view the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also perform traces on other items such as authorisation objects.&lt;/P&gt;&lt;P&gt;Authorisation trace analysis 1. Open two sessions&lt;/P&gt;&lt;P&gt;2. Execute transaction ST01 in one of the sessions&lt;/P&gt;&lt;P&gt;3. Select the authorisation checkbox, note the other traces &lt;/P&gt;&lt;P&gt;   you can perform (SQL, RFC, Table Buffer etc)  &lt;/P&gt;&lt;P&gt;4. Click the 'Trace On' button&lt;/P&gt;&lt;P&gt;5. Within your other session execte the transaction/report &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;6. Return to the session where you turned the trace on and &lt;/P&gt;&lt;P&gt;   click on 'Trace Off' otherwise it will continue to record &lt;/P&gt;&lt;P&gt;   all athorisation checks&lt;/P&gt;&lt;P&gt;7. Click on the 'Analysis' button&lt;/P&gt;&lt;P&gt;8. Enter appropriate data into selection screen such as &lt;/P&gt;&lt;P&gt;   Username, type of trace records (i.e. Authorization check)&lt;/P&gt;&lt;P&gt;9. Click on the Execute button. &lt;/P&gt;&lt;P&gt;10. Report displaying trace results will now be displayed  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868601#M365917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868602#M365918</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;Using this you can evaluate the query performance . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some useful transaction related to this are ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ST01 SAP system trace &lt;/P&gt;&lt;P&gt;ST02 Buffer statistics. &lt;/P&gt;&lt;P&gt;ST03 Workload analysis. &lt;/P&gt;&lt;P&gt;ST04 Database performance analysis. &lt;/P&gt;&lt;P&gt;ST05 SQL trace . &lt;/P&gt;&lt;P&gt;ST06 Operating system monitor ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;From the recorded SQL trace you can deduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Which SQL statements your application carries out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Which values the system uses for specific database accesses and changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        How the system translates ABAP OPEN SQL commands (such as &lt;/P&gt;&lt;P&gt;         SELECT) into standard SQL commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Where your application positions COMMIT statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Where your application makes repeated database accesses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        What database accesses or changes occur in the update section of your &lt;/P&gt;&lt;P&gt;         application&lt;/P&gt;&lt;P&gt;&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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renjith Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868602#M365918</guid>
      <dc:creator>RenjithKumar</dc:creator>
      <dc:date>2007-02-05T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868603#M365919</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;goto transection code ST05 and click on Activate Trace button then execute ur program&lt;/P&gt;&lt;P&gt;then click on Deactivate Trace button and click on Display Trace button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shall see accessed tables with runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 10:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-trace/m-p/1868603#M365919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T10:36:18Z</dc:date>
    </item>
  </channel>
</rss>

