<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Maximum open cursors exceeded]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Since upgrading NetXMS server on Solaris from RC version to 2.0.2 I observe following frequently problem:</p>
<p dir="auto">[24-Feb-2016 10:33:53.520] [ERROR] SQL query failed (Query = "UPDATE raw_dci_values SET raw_value=?,transformed_value=?,last_poll_time=? WHERE item_id=?"): ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01000: maximum open cursors exceeded<br />
ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01000: maximum open cursors exceeded<br />
ORA-01000: maximum open cursors exceeded<br />
[24-Feb-2016 10:33:53.520] [ERROR] SQL query failed (Query = "INSERT INTO idata_1899 (item_id,idata_timestamp,idata_value) VALUES (?,?,?)"): ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01000: maximum open cursors exceeded<br />
ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01000: maximum open cursors exceeded<br />
ORA-01000: maximum open cursors exceeded</p>
<p dir="auto">On the Oracle Db side my observation is following:</p>
<p dir="auto">       SID SQL_TEXT                                                     OPEN_CURSORS USER_NAME<br />
---------- ------------------------------------------------------------ ------------ ------------------------------<br />
       213 INSERT INTO dct_threshold_conditions (threshold_id,group_id,          299 NETXMSOWNER<br />
       202 INSERT INTO dct_threshold_conditions (threshold_id,group_id,          299 NETXMSOWNER<br />
       203 INSERT INTO dct_threshold_conditions (threshold_id,group_id,          299 NETXMSOWNER<br />
       211 INSERT INTO dct_threshold_conditions (threshold_id,group_id,          299 NETXMSOWNER<br />
       201 INSERT INTO dct_threshold_conditions (threshold_id,group_id,          299 NETXMSOWNER<br />
       203 insert into sys.aud$( sessionid,entryid,statement,ntimestamp            1 NETXMSOWNER<br />
       203 SELECT item_id FROM raw_dci_values WHERE item_id=223                    1 NETXMSOWNER<br />
       203 SELECT threshold_id FROM thresholds WHERE item_id=126                   1 NETXMSOWNER<br />
       202 SELECT threshold_id FROM thresholds WHERE item_id=21                    1 NETXMSOWNER<br />
       202 INSERT INTO dct_thresholds (id,table_id,sequence_number,acti            1 NETXMSOWNER<br />
       203 SELECT threshold_id FROM thresholds WHERE item_id=123                   1 NETXMSOWNER<br />
       203 DELETE FROM dc_table_columns WHERE table_id=:1                          1 NETXMSOWNER<br />
       203 SELECT item_id FROM raw_dci_values WHERE item_id=222                    1 NETXMSOWNER<br />
       202 DELETE FROM dci_schedules WHERE item_id=9                               1 NETXMSOWNER<br />
       202 DELETE FROM dci_schedules WHERE item_id=48                              1 NETXMSOWNER<br />
       203 UPDATE dc_tables SET node_id=:1,template_id=:2,template_item            1 NETXMSOWNER<br />
       203 DELETE FROM dci_schedules WHERE item_id=121                             1 NETXMSOWNER<br />
       203 DELETE FROM dci_schedules WHERE item_id=218                             1 NETXMSOWNER<br />
       203 UPDATE items SET node_id=:1,template_id=:2,name=:3,source=:4            1 NETXMSOWNER<br />
       203 INSERT INTO dc_table_columns (table_id,sequence_number,colum            1 NETXMSOWNER<br />
       203 SELECT threshold_id FROM thresholds WHERE item_id=219                   1 NETXMSOWNER<br />
       202 SELECT item_id FROM raw_dci_values WHERE item_id=21                     1 NETXMSOWNER<br />
       203 SELECT item_id FROM raw_dci_values WHERE item_id=117                    1 NETXMSOWNER<br />
       202 DELETE FROM dci_schedules WHERE item_id=73                              1 NETXMSOWNER</p>
<p dir="auto">SQL_FULLTEXT<br />
--------------------------------------------------------------------------------<br />
INSERT INTO dct_threshold_conditions (threshold_id,group_id,sequence_number,column_name,check_operation,check_value) VALUES (:1,:2,:3,:4,:5,:6)</p>
<p dir="auto">"INSERT INTO dct_threshold_conditions" is opening maximum allowed number of cursors and blocking further operations.<br />
This seems to be cursor memory leak. Application is opening a cursor and not closing it when it's done.</p>
<p dir="auto">How to solve this issue? This problem is blocking connections (login-in) from Management Console few hours after restart of NetXMS server.</p>
<p dir="auto">Regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/topic/4319/maximum-open-cursors-exceeded</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:25:19 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4319.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Feb 2016 09:41:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Maximum open cursors exceeded on Thu, 10 Mar 2016 08:31:30 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Victor.<br />
Library was replaced and this solved the problem.</p>
<p dir="auto">Best regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/post/19389</link><guid isPermaLink="true">https://forum.netxms.org/post/19389</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Thu, 10 Mar 2016 08:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to Maximum open cursors exceeded on Wed, 09 Mar 2016 21:26:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">please try to replace existing libnxcore.so.2.0.0 with this one: <a href="https://cloud.netxms.org/index.php/s/XzmBjTnJ0E0zlDV" rel="nofollow ugc">https://cloud.netxms.org/index.php/s/XzmBjTnJ0E0zlDV</a></p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19384</link><guid isPermaLink="true">https://forum.netxms.org/post/19384</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 09 Mar 2016 21:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to Maximum open cursors exceeded on Wed, 09 Mar 2016 10:39:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I plan to make 2.0.3 release this Friday. I'll try to build patched binary later today.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19372</link><guid isPermaLink="true">https://forum.netxms.org/post/19372</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 09 Mar 2016 10:39:03 GMT</pubDate></item><item><title><![CDATA[Reply to Maximum open cursors exceeded on Wed, 09 Mar 2016 08:47:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Thank you very much for fixing the issue.<br />
When release 2.0.3 will be available?<br />
It would be nice to have a patched build for Solaris. We will replace binary file immediately.</p>
<p dir="auto">As a workaround we disabled most of the DCI where thresholds were used and this slowed down the process of using cursors on dct_threshold_conditions table.<br />
Now NetXMS server is usable for 6-8 hours after restart.</p>
<p dir="auto">Best regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/post/19370</link><guid isPermaLink="true">https://forum.netxms.org/post/19370</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Wed, 09 Mar 2016 08:47:52 GMT</pubDate></item><item><title><![CDATA[Reply to Maximum open cursors exceeded on Tue, 08 Mar 2016 20:25:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've fixed the issue. Fix will be included into 2.0.3 release, or I can build patched 2.0.2 for you.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19351</link><guid isPermaLink="true">https://forum.netxms.org/post/19351</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Mar 2016 20:25:40 GMT</pubDate></item><item><title><![CDATA[Reply to Maximum open cursors exceeded on Fri, 04 Mar 2016 07:25:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">NetXMS server 2.0.2 is not usable. It's blocked few hours after every restart:</p>
<p dir="auto">[04-Mar-2016 08:19:47.926] [ERROR] SQL query failed (Query = "INSERT INTO idata_280 (item_id,idata_timestamp,idata_value) VALUES (?,?,?)"): ORA-00604: error occurred at recursive SQL level 1<br />
ORA-01000: maximum open cursors exceeded<br />
ORA-01000: maximum open cursors exceeded</p>
<p dir="auto">As a result of ORA-01000 it's not possible to login using NetXMS console or if this is possible, other actions are blocked, for example checking details of Alarm (see attached screenshot).</p>
<p dir="auto">Increasing number open cursors from 300 to 400 does not help.</p>
<p dir="auto">Best regards,<br />
Marcin</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002885-db_error.jpg" alt="db_error.jpg" class="img-markdown  img-fluid" width="393" height="279" /></p>
]]></description><link>https://forum.netxms.org/post/19333</link><guid isPermaLink="true">https://forum.netxms.org/post/19333</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Fri, 04 Mar 2016 07:25:33 GMT</pubDate></item></channel></rss>