<?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 Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444485#M827233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an Open SQL statement to query the Oracle database that supports&lt;/P&gt;&lt;P&gt;our R3 system.  The query runs very slow, and I would be interested in seeing&lt;/P&gt;&lt;P&gt;the actual query that is executed on the database ( the one that the database&lt;/P&gt;&lt;P&gt;utility creates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Feb 2008 17:32:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-17T17:32:44Z</dc:date>
    <item>
      <title>Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444485#M827233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an Open SQL statement to query the Oracle database that supports&lt;/P&gt;&lt;P&gt;our R3 system.  The query runs very slow, and I would be interested in seeing&lt;/P&gt;&lt;P&gt;the actual query that is executed on the database ( the one that the database&lt;/P&gt;&lt;P&gt;utility creates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2008 17:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444485#M827233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-17T17:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444486#M827234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the EXPLAIN function in ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2008 19:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444486#M827234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-17T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444487#M827235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. &lt;/P&gt;&lt;P&gt;Go to ST05.&lt;/P&gt;&lt;P&gt;There you can either do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACTIVATE the trace;&lt;/P&gt;&lt;P&gt;RUN your report'&lt;/P&gt;&lt;P&gt;DEACTIVATE the trace;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then DISPLAY trace....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other option that is easier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on ENTER SQL STATEMENT.&lt;/P&gt;&lt;P&gt;There you can cut and paste the statement as shown on SM50 (while running your report, you should go to SM50 and see the workprocess you are using, It should show something like SEQUENTIAL READ... etc). Double click on the work process and you should have a screen with more details, there you will see the SQL statement (the arguments are different than in code). &lt;/P&gt;&lt;P&gt;Copy it all and past on the ENTER SQL STATEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run and you will get a result showing which indexes used, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo De Araujo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2008 19:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444487#M827235</guid>
      <dc:creator>LeonardoAraujo</dc:creator>
      <dc:date>2008-02-17T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444488#M827236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use also ST04 for that. It shows the ORACLE database sessions (If you don't know the Oaracle session that belongs to the work process you have the "Client PID" column in ST04 wich is the "PID" in the SM50 monitor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open ST04:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Look for Status ACTIVE . &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Under SQL Statement you see the plain statement text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;doubleclick the line&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You get the statement dialog&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Click Execution plan button (the tool button)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You get the execution plan where you can click the tables or indexes for further information&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 09:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3444488#M827236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T09:06:47Z</dc:date>
    </item>
  </channel>
</rss>

