<?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: Reg Open Cursor Concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292815#M1634935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your dump shows that SAP work process does not have enough memory to store the complete result of your query.&lt;/P&gt;&lt;P&gt;Your first question should be "why do I need 20 mln records in memory"? What are you going to do with all of them?&lt;/P&gt;&lt;P&gt;"Open cursor" and the subsequent "fetch ... package size ..." may help you reading data in packages thus reducing the amount of memory needed. This is working if you do not need all data at once and can process it in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 11:54:25 GMT</pubDate>
    <dc:creator>yuri_ziryukin</dc:creator>
    <dc:date>2011-09-29T11:54:25Z</dc:date>
    <item>
      <title>Reg Open Cursor Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292814#M1634934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly help me to analyse this dump.&lt;/P&gt;&lt;P&gt;In BI end routine select * query has been written to fetch values from active dso . They are using non primary key in the where condition.&lt;/P&gt;&lt;P&gt;More than &lt;DEL&gt;2 crore&lt;/DEL&gt; 20 million records were avaialble in that DSo for that condtion. While executing this query its going to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i move ahead with Open cursor set Hold will this query work fine and using open cursor set hold can i fetch  &lt;DEL&gt;2 crore&lt;/DEL&gt; 20 million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dump its shwoing to check the parameters : ztta/roll_area  ,ztta/roll_extension and abap/heap_area_total . Even i checked those parametrs in RZ11. The curent val is sufficient.&lt;/P&gt;&lt;P&gt;Please kindly advice me for this dump and will open cursor set hold avoid the dump for  &lt;DEL&gt;2 crore&lt;/DEL&gt; 20 million  records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Sep 29, 2011 1:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 07:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292814#M1634934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Open Cursor Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292815#M1634935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your dump shows that SAP work process does not have enough memory to store the complete result of your query.&lt;/P&gt;&lt;P&gt;Your first question should be "why do I need 20 mln records in memory"? What are you going to do with all of them?&lt;/P&gt;&lt;P&gt;"Open cursor" and the subsequent "fetch ... package size ..." may help you reading data in packages thus reducing the amount of memory needed. This is working if you do not need all data at once and can process it in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292815#M1634935</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2011-09-29T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Open Cursor Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292816#M1634936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OPEN CURSOR construct is used to enable you to have two or more different cursors open on a table at the same time. It doesn't look like that this is what you want here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the PACKAGE SIZE option of the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292816#M1634936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Open Cursor Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292817#M1634937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OPEN CURSOR construct is used to enable you to have two or more different cursors open on a table at the same time. It doesn't look like that this is what you want here.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Look at the PACKAGE SIZE option of the SELECT statement.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Rob&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, SELECT ... PACKAGE SIZE ... + ENDSELECT is an easier alternative to the OPEN CURSOR + FETCH ... PACKAGE SIZE + CLOSE CURSOR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 06:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292817#M1634937</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2011-09-30T06:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Open Cursor Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292818#M1634938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not only easier, correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 13:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292818#M1634938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-30T13:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Open Cursor Concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292819#M1634939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not completely convinced:  the difference depends on the task which has to be done with the records of a package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the records are processed and the result must be written to the database into another table, then it will be necessary to COMMIT the changes, otherwise the 20.000.000 records will cause an overflow in the redo-logs of the database.&lt;/P&gt;&lt;P&gt;=&amp;gt; Only the OPEN CURSOR WITH HOLD will survive the DB-Commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT ... PACKAGE SIZE is simpler and can be used, if the result is further processed and reduced in size, which makes it possible to keep all data in memory (no intermediate DB-COMMITs are necessary) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume that case is the less frequent use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 08:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-open-cursor-concept/m-p/8292819#M1634939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T08:45:17Z</dc:date>
    </item>
  </channel>
</rss>

