<?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: Oracle memory problems in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099521#M74571</link>
    <description>ORA-03113 means that either someone took down the database or killed your server process.&lt;BR /&gt;&lt;BR /&gt;ORA-04031 means you need more shared pool as you have found.&lt;BR /&gt;&lt;BR /&gt;In any case, 32K is a pretty big chunk of SQL. How about storing your result() data in a temporary table, and using "select .. where exists (select ..", or a correlated subquery?&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
    <pubDate>Wed, 22 Oct 2003 10:23:17 GMT</pubDate>
    <dc:creator>Graham Cameron_1</dc:creator>
    <dc:date>2003-10-22T10:23:17Z</dc:date>
    <item>
      <title>Oracle memory problems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099520#M74570</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have RedHat 9 workstation with Oracle DB 9.2.&lt;BR /&gt;&lt;BR /&gt;I would like to execute a huge sql statement which size is larger then 32K. That's why I use a varchar2s variable to store the statement. The "where" clause of the statement is generated dinamically from the result array:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;create_stmt dbms_sql.varchar2s;&lt;BR /&gt;&amp;gt;...&lt;BR /&gt;&amp;gt;create_stmt(1) := 'select count(*) from test where ';&lt;BR /&gt;&amp;gt;FOR i in 1 .. result.count LOOP&lt;BR /&gt;&amp;gt;     create_stmt(i + 1):= result(i);&lt;BR /&gt;&amp;gt;END LOOP;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;cnum := dbms_sql.open_cursor;&lt;BR /&gt;&amp;gt;dbms_sql.parse(cnum, create_stmt, 1, result.count + 1, NULL , dbms_sql.native);&lt;BR /&gt;&amp;gt;nrows := dbms_sql.execute(cnum);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When the size of the result array is too big I get the following error:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;select count(*) from test where .....&lt;BR /&gt;&amp;gt;*&lt;BR /&gt;&amp;gt;ERROR at line 1:&lt;BR /&gt;&amp;gt;ORA-29902: error in executing ODCIIndexStart() routine&lt;BR /&gt;&amp;gt;ORA-04031: unable to allocate 68 bytes of shared memory ("shared pool","select &amp;gt;con#,obj#,rcon#,enabl...","sql area","strdef : prsstr")&lt;BR /&gt;&amp;gt;ORA-06512: at "SYS.DBMS_SYS_SQL", line 1485&lt;BR /&gt;&amp;gt;ORA-06512: at "SYS.DBMS_SQL", line 26&lt;BR /&gt;&amp;gt;ORA-06512: at "SCOTT.JC_IDXTYPE_IM", line 263&lt;BR /&gt;&amp;gt;ORA-06512: at line 1&lt;BR /&gt;&lt;BR /&gt;I increased the shared_pool_size of my database. Now I get another error:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ORA-03113: "end-of-file on communication channel"&lt;BR /&gt;&lt;BR /&gt;Do you know what couse these errors?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;fifty&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Oct 2003 07:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099520#M74570</guid>
      <dc:creator>Fifty</dc:creator>
      <dc:date>2003-10-22T07:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle memory problems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099521#M74571</link>
      <description>ORA-03113 means that either someone took down the database or killed your server process.&lt;BR /&gt;&lt;BR /&gt;ORA-04031 means you need more shared pool as you have found.&lt;BR /&gt;&lt;BR /&gt;In any case, 32K is a pretty big chunk of SQL. How about storing your result() data in a temporary table, and using "select .. where exists (select ..", or a correlated subquery?&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Wed, 22 Oct 2003 10:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099521#M74571</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-10-22T10:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle memory problems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099522#M74572</link>
      <description>You need to make sure that there is enough shared memory on the Linux box and that the init.ora file for that database allocates enough shared memory.&lt;BR /&gt;&lt;BR /&gt;Reboot after changes and try again.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 22 Oct 2003 15:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/oracle-memory-problems/m-p/3099522#M74572</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-22T15:16:29Z</dc:date>
    </item>
  </channel>
</rss>

