<?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>Question Re: Performance Problem SQL on RESB in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052885#M3621728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Problem Christian. Also, have a look on below thread,&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3469555" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Select Query taking too much time" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 10:22:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-15T10:22:11Z</dc:date>
    <item>
      <title>Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaq-p/10052881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since a few days we have a big performance impact by sql-statements on tabel RESB.&lt;/P&gt;&lt;P&gt;e.g. we have select-statements, which did take around 10 minutes and now over 3 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have already checked indizes and table consistent. Also table checks in DB02.&lt;/P&gt;&lt;P&gt;If I make the same sql on our testing system it is still fast, so only in the productive sytem we are facing this problem.&lt;/P&gt;&lt;P&gt;The table size in both systems is similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment selecting around 1000 rows in PROD systems takes more than 10 minutes.&lt;/P&gt;&lt;P&gt;In Q System it takes just a few minutes for more than 100 000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help to analyze the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaq-p/10052881</guid>
      <dc:creator>Private_Member_19084</dc:creator>
      <dc:date>2014-01-15T09:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052882#M3621725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I did also findout.&lt;/P&gt;&lt;P&gt;If I select in SE16 for&amp;nbsp; 500 rows, it is really fast (around 2 seconds).&lt;/P&gt;&lt;P&gt;But if I select for 1000 rows (same critery) it takes more minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 09:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052882#M3621725</guid>
      <dc:creator>Private_Member_19084</dc:creator>
      <dc:date>2014-01-15T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052883#M3621726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;Do you have any secondary index(assuming you are using ORA DB) on table RESB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052883#M3621726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052884#M3621727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first thx for help.&lt;/P&gt;&lt;P&gt;The select is done with the same index (I did analyze with ST12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But one thing is different in ST12.&lt;BR /&gt;For 700 entries the ST12 displays 148 "DB Interface Cursor".&lt;/P&gt;&lt;P&gt;And for 800 entires only 9 cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May this be the answer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I also try to analyze with st05&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:15:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052884#M3621727</guid>
      <dc:creator>Private_Member_19084</dc:creator>
      <dc:date>2014-01-15T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052885#M3621728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Problem Christian. Also, have a look on below thread,&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3469555" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Select Query taking too much time" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052885#M3621728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052886#M3621729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've now done also an ST05 analyse and found out something very interesting (see graphic).&lt;/P&gt;&lt;P&gt;Only for the last block it takes very long (marked line)=&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/363748" width="450" /&gt;.&lt;/P&gt;&lt;P&gt;Any idea for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052886#M3621729</guid>
      <dc:creator>Private_Member_19084</dc:creator>
      <dc:date>2014-01-15T10:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052887#M3621730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try running tx-code SAT. It gives you very detailed and perfect picture, where exactly it is taking the time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052887#M3621730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T10:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052888#M3621731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that SAT is not good for this analyse, because it is ABAP trace and would show which selects takes how long.&lt;/P&gt;&lt;P&gt;But in ST05 I did already see, that it is an SQL/DB problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know other transactions for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052888#M3621731</guid>
      <dc:creator>Private_Member_19084</dc:creator>
      <dc:date>2014-01-15T10:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052889#M3621732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say pls have a look on your secondary indices in use. I have shared a thread already, request you to please go through that, on more info regarding index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 10:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052889#M3621732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052890#M3621733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; If I make the same sql on our testing system it is still fast, so only in the productive sytem we are facing this problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please provide the execution plan of the SQL statement from both systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; If I select in SE16 for 500 rows, it is really fast (around 2 seconds). But if I select for 1000 rows (same critery) it takes more minutes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The SQL is different (keyword ROWNUM &amp;lt;= VALUE) if you limit the amount of rows via SE16. This change can easily lead to a different execution plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; Only for the last block it takes very long (marked line)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is not a block, it is a FETCH call and the amount of (database) work can vary tremendously with(in) each FETCH all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also provide the real time SQL monitoring report (for that slow SQL), if you are running on Oracle 11g R2. This report includes the most important information in first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;SET LONG 1000000&lt;/P&gt;
&lt;P&gt;SET LONGCHUNKSIZE 1000000&lt;/P&gt;
&lt;P&gt;SET LINESIZE 1000&lt;/P&gt;
&lt;P&gt;SET PAGESIZE 0&lt;/P&gt;
&lt;P&gt;SET TRIM ON&lt;/P&gt;
&lt;P&gt;SET TRIMSPOOL ON&lt;/P&gt;
&lt;P&gt;SET ECHO OFF&lt;/P&gt;
&lt;P&gt;SET FEEDBACK OFF&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SPOOL /tmp/report_sql_monitor.htm&lt;/P&gt;
&lt;P&gt;SELECT DBMS_SQLTUNE.report_sql_monitor(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; sql_id =&amp;gt; '&amp;lt;SQL_ID&amp;gt;',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; type =&amp;gt; 'HTML',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; report_level =&amp;gt; 'ALL') AS report&lt;/P&gt;
&lt;P&gt;FROM dual;&lt;/P&gt;
&lt;P&gt;SPOOL OFF&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 11:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052890#M3621733</guid>
      <dc:creator>stefan_koehler</dc:creator>
      <dc:date>2014-01-15T11:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Problem SQL on RESB</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052891#M3621734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the SQL Statments with high cost to the system.&lt;/P&gt;&lt;P&gt;Check this in ST04 or dbacockpit, &amp;gt; Performance &amp;gt; SQL Statment Analysis &amp;gt; Shared Cursor Cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On right hand screen you can filter the SQL Statments and show the cost through EXPLAIN buton and check the Source Code in 'ABAP Source" Buton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this point you have conditions to analyse whether you need to create a new Index or send the Program Code to be revised by Abap team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the table statistics in DB20 tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mauricio Montoya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 12:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-problem-sql-on-resb/qaa-p/10052891#M3621734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-15T12:13:59Z</dc:date>
    </item>
  </channel>
</rss>

