<?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 cursor issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574630#M858232</link>
    <description>According to Oracle, even when you explicitly close the cursor, in the background, it's cancelled or put on hold not actually closed. Unless you set the parameter I mentioned previously. Your other choice is to increase open_cursors and make sure you have enough memory to handle the new number. Flushing the shared pool is another idea but it may not be an option for you. That's Oracle for you.</description>
    <pubDate>Wed, 05 Sep 2001 14:25:31 GMT</pubDate>
    <dc:creator>Osa Jousou_1</dc:creator>
    <dc:date>2001-09-05T14:25:31Z</dc:date>
    <item>
      <title>Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574622#M858224</link>
      <description>Hi All&lt;BR /&gt;   I know this is not the correct place to post this question, but i am hopeful that i can get some lead.&lt;BR /&gt;  We are running oracle 8.0.5 on HPUX1100 with June 2001 Patch Bundle. We have an java application that uses JDBC Thin driver 1.1 to connect to the database.&lt;BR /&gt;  When the application is performing some batch jobs we get the error&lt;BR /&gt;java.sql.SQLException: ORA-01000: maximum open cursors exceeded&lt;BR /&gt;    When checked in v$open_cursor view the maximum cursors any session is using is 58 and we have configured the values of OPEN_CURSOR as 250. I am confused why this is happening. &lt;BR /&gt;   What is going wrong...&lt;BR /&gt;Thanks in advance&lt;BR /&gt;...BPK...</description>
      <pubDate>Tue, 04 Sep 2001 09:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574622#M858224</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-09-04T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574623#M858225</link>
      <description>Hello,&lt;BR /&gt;The closing of the cursor change based on the tool you use: &lt;BR /&gt;In JDBC, preparedStatement.close() does closes the cursor.&lt;BR /&gt;Please check whether you have this in your application.&lt;BR /&gt;For ex;&lt;BR /&gt;Original Code:&lt;BR /&gt;// Detect lost or closed connection&lt;BR /&gt;        rtmp.connection.sqlconn.prepareCall("select * from dual");&lt;BR /&gt;.....&lt;BR /&gt;Replaced by:&lt;BR /&gt;// Detect lost or closed connection&lt;BR /&gt;        PreparedStatement st = rtmp.connection.sqlconn.prepareStatement("select * from dual");&lt;BR /&gt;        st.execute();&lt;BR /&gt;        st.close();&lt;BR /&gt;Thanks&lt;BR /&gt;G Manikandan</description>
      <pubDate>Tue, 04 Sep 2001 10:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574623#M858225</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2001-09-04T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574624#M858226</link>
      <description>Hi there.&lt;BR /&gt;Try to set the open_cursors in the init.ora to 2000. This should help you.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2001 10:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574624#M858226</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-09-04T10:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574625#M858227</link>
      <description>Hi&lt;BR /&gt;  I am positive that we are closing the prep statements.&lt;BR /&gt;    I am wondering if there is another parameter apart from open_cursor which decides the number of cursors that can be opened.</description>
      <pubDate>Tue, 04 Sep 2001 10:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574625#M858227</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-09-04T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574626#M858228</link>
      <description>Hi Alexander,&lt;BR /&gt;     Increasing open_cursor may help but I want to know what all these cursor are. If there is some kind of leak then even 1000 may not be enough....&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2001 10:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574626#M858228</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-09-04T10:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574627#M858229</link>
      <description>Hi&lt;BR /&gt;This is from Oracle:&lt;BR /&gt;&lt;BR /&gt;OPEN_CURSORS specifies the maximum number of open cursors (handles to private SQL areas) a session can have at once. You can use this parameter to prevent a session from opening an excessive number of cursors. This parameter also constrains the size of the PL/SQL cursor cache which PL/SQL uses to avoid having to reparse as statements are reexecuted by a user. &lt;BR /&gt;&lt;BR /&gt;It is important to set the value of OPEN_CURSORS high enough to prevent your application from running out of open cursors. The number will vary from one application to another. Assuming that a session does not open the number of cursors specified by OPEN_CURSORS, there is no added overhead to setting this value higher than actually needed. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Andreas</description>
      <pubDate>Wed, 05 Sep 2001 05:14:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574627#M858229</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2001-09-05T05:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574628#M858230</link>
      <description>If you increase open cursors you will consume more memory. Perhaps you want to include the parameter: close_cached_open_cursors = true in the init file. It can help you to close the used cursors. This parameter controls whether cursors opened and cached in memory by PL/SQL are automatically closed at each COMMIT. A value of FALSE signifies that cursors opened by PL/SQL are held open so that subsequent executions need not open a new cursor. If PL/SQL cursors are reused frequently, setting the parameter to FALSE can cause subsequent executions to be faster.&lt;BR /&gt;A value of TRUE causes open cursors to be closed at each COMMIT or ROLLBACK. The cursor can then be reopened as needed. If cursors are rarely reused, setting the parameter to TRUE frees memory used by the cursor when the cursor is no longer in use. &lt;BR /&gt;</description>
      <pubDate>Wed, 05 Sep 2001 13:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574628#M858230</guid>
      <dc:creator>Osa Jousou_1</dc:creator>
      <dc:date>2001-09-05T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574629#M858231</link>
      <description>Hi Jousou,&lt;BR /&gt;    We cannot set &lt;BR /&gt;close_cached_open_cursors to true as this would cause the sql's to open a new cursor every time it gets executed. This would be severely degrade the performance of our application. We have stick to false.&lt;BR /&gt;   I have one question..&lt;BR /&gt;Can we be 100% sure that the values shown in v$open_cursor are correct. ??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Sep 2001 14:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574629#M858231</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-09-05T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle cursor issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574630#M858232</link>
      <description>According to Oracle, even when you explicitly close the cursor, in the background, it's cancelled or put on hold not actually closed. Unless you set the parameter I mentioned previously. Your other choice is to increase open_cursors and make sure you have enough memory to handle the new number. Flushing the shared pool is another idea but it may not be an option for you. That's Oracle for you.</description>
      <pubDate>Wed, 05 Sep 2001 14:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-cursor-issue/m-p/2574630#M858232</guid>
      <dc:creator>Osa Jousou_1</dc:creator>
      <dc:date>2001-09-05T14:25:31Z</dc:date>
    </item>
  </channel>
</rss>

