<?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[Netxms OracleDB errors]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">After upgrading NetXMS from 1.2.16 to 2.0-M2 I see following errors in the netxms log file:</p>
<p dir="auto">[12-Feb-2015 14:09:43.618] [ERROR] SQL query failed (Query = "INSERT INTO tdata_records_822 (record_id,row_id,instance) VALUES (?,?,?)"): ORA-00001: unique constraint (NETXMSOWNER.SYS_C0040248) violated<br />
[12-Feb-2015 14:09:43.618] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:10:43.645] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:10:48.485] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:14:17.166] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:14:18.103] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:15:43.556] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:15:48.396] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:19:18.031] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:19:19.029] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:20:43.484] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:20:48.308] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:24:18.945] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:24:19.955] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:25:43.396] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:25:48.219] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:29:19.867] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:29:20.867] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:30:43.325] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:30:48.128] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:34:20.858] [ERROR] Invalid object identifier 116 in event processing policy<br />
[12-Feb-2015 14:34:21.791] [ERROR] Invalid object identifier 116 in event processing policy</p>
<p dir="auto">and following errors when running check on the database:<br />
[root] $ /opt/netxms/bin/nxdbmgr check<br />
NetXMS Database Manager Version 2.0-M2 Build 8007</p>
<p dir="auto">Checking database (excluding collected data):<br />
* Checking zone objects...                                            [PASSED]<br />
* Checking node objects...                                            [PASSED]<br />
* Checking interface objects...                                       [PASSED]<br />
* Checking network service objects...                                 [PASSED]<br />
* Checking cluster objects...                                         [PASSED]<br />
* Checking template to node mapping...                                [PASSED]<br />
* Checking object properties...                                       [PASSED]<br />
Invalid object ID 116 used in policy. Delete it from policy? (Y/N) y<br />
* Checking event processing policy...                                 [FIXED ]<br />
* Checking network map links...                                       [PASSED]<br />
Data collection table (TDATA) for node [110] not found. Create? (Y/N)  (Y/N) y<br />
SQL query failed (ORA-02270: no matching unique or primary key for this column-list):<br />
CREATE TABLE tdata_rows_110 (row_id number(20) not null,column_id integer not null,value varchar(255) null,PRIMARY KEY(row_id,column_id),FOREIGN KEY (row_id) REFERENCES tdata_records_110(row_id) ON DELETE CASCADE)<br />
Data collection table (TDATA) for node [192] not found. Create? (Y/N)  (Y/N) y<br />
SQL query failed (ORA-02270: no matching unique or primary key for this column-list):<br />
CREATE TABLE tdata_rows_192 (row_id number(20) not null,column_id integer not null,value varchar(255) null,PRIMARY KEY(row_id,column_id),FOREIGN KEY (row_id) REFERENCES tdata_records_192(row_id) ON DELETE CASCADE)<br />
Data collection table (TDATA) for node [194] not found. Create? (Y/N)  (Y/N) y<br />
SQL query failed (ORA-02270: no matching unique or primary key for this column-list):<br />
CREATE TABLE tdata_rows_194 (row_id number(20) not null,column_id integer not null,value varchar(255) null,PRIMARY KEY(row_id,column_id),FOREIGN KEY (row_id) REFERENCES tdata_records_194(row_id) ON DELETE CASCADE)</p>
<p dir="auto">During every execution of nxdbmgr the same errors occurs (also for Invalid object ID 116).</p>
<p dir="auto">Could help in resolving this issue?</p>
<p dir="auto">Best regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/topic/3601/netxms-oracledb-errors</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:35:49 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3601.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Feb 2015 14:48:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Netxms OracleDB errors on Wed, 25 Feb 2015 09:00:29 GMT]]></title><description><![CDATA[<p dir="auto">Yes, that could happen if there was incorrect data in event processing policy. You have to manually fix or delete those rules.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16002</link><guid isPermaLink="true">https://forum.netxms.org/post/16002</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 25 Feb 2015 09:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms OracleDB errors on Tue, 24 Feb 2015 14:50:00 GMT]]></title><description><![CDATA[<p dir="auto">After UPDATE in DB I run nxdbmgr . It worked:</p>
<p dir="auto">Data collection table (TDATA) for node [816] not found. Create? (Y/N)  (Y/N) y<br />
Data collection table (TDATA) for node [819] not found. Create? (Y/N)  (Y/N) y<br />
Data collection table (TDATA) for node [822] not found. Create? (Y/N)  (Y/N) y<br />
* Checking data tables...                                             [FIXED ]<br />
33 errors was found, 33 errors was corrected<br />
All errors in database was fixed<br />
Commit changes? (Y/N) y</p>
<p dir="auto">nxdbmgr check caused some changes in NetXMS configuration. I see alarms that were not present before.<br />
For example there was an event processing policy without defined event.<br />
It was not working, now after stasrting NetMXS server it started generating alarms for every event.</p>
<p dir="auto">Thank you,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/post/15997</link><guid isPermaLink="true">https://forum.netxms.org/post/15997</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Tue, 24 Feb 2015 14:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms OracleDB errors on Mon, 23 Feb 2015 19:58:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">seems that metadata is incorrect for some reason. Try to stop server and execute the following query:</p>
<pre><code>UPDATE metadata SET var_value='CREATE TABLE tdata_records_%d (record_id number(20) not null,row_id number(20) not null,instance varchar(255) null,PRIMARY KEY(row_id),FOREIGN KEY (record_id) REFERENCES tdata_%d(record_id) ON DELETE CASCADE)' WHERE var_name='TDataTableCreationCommand_1';
</code></pre>
<p dir="auto">then drop table(s) having ORA-00001 errors and run nxdbmgr check again (it should re-create all missing tables correctly).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15973</link><guid isPermaLink="true">https://forum.netxms.org/post/15973</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 23 Feb 2015 19:58:42 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms OracleDB errors on Wed, 18 Feb 2015 15:28:50 GMT]]></title><description><![CDATA[<p dir="auto">Removing invalid object ID 116 does not solve the problem.<br />
Another nxdbmgr check few minutes later is reporting again the same issue.</p>
<p dir="auto">Regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/post/15958</link><guid isPermaLink="true">https://forum.netxms.org/post/15958</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Wed, 18 Feb 2015 15:28:50 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms OracleDB errors on Wed, 18 Feb 2015 12:48:13 GMT]]></title><description><![CDATA[<p dir="auto">Below is the output:</p>
<p dir="auto">VAR_NAME		VAR_VALUE<br />
---------------------------------------------------------------<br />
LocationHistory<br />
CREATE TABLE gps_history_%d (latitude varchar(20), longitude varchar(20), accuracy integer not null, start_timestamp integer not null, end_timestamp integer not null, PRIMARY KEY(start_timestamp))</p>
<p dir="auto">SchemaVersion<br />
344</p>
<p dir="auto">Syntax<br />
ORACLE</p>
<p dir="auto">IDataTableCreationCommand<br />
CREATE TABLE idata_%d (item_id integer not null,idata_timestamp integer not null,idata_value varchar(255) null)</p>
<p dir="auto">IDataIndexCreationCommand_0<br />
CREATE INDEX idx_idata_%d_id_timestamp ON idata_%d(item_id,idata_timestamp DESC)</p>
<p dir="auto">TDataTableCreationCommand_0<br />
CREATE TABLE tdata_%d (item_id integer not null,tdata_timestamp integer not null,record_id number(20) not null,UNIQUE(record_id))</p>
<p dir="auto">TDataTableCreationCommand_1<br />
CREATE TABLE tdata_records_%d (record_id number(20) not null,row_id number(20) not null,instance varchar(255) null,PRIMARY KEY(record_id),FOREIGN KEY(record_id) REFERENCES tdata_%d(record_id) ON DELETE CASCADE)</p>
<p dir="auto">TDataTableCreationCommand_2<br />
CREATE TABLE tdata_rows_%d (row_id number(20) not null,column_id integer not null,value varchar(255) null,PRIMARY KEY(row_id,column_id),FOREIGN KEY (row_id) REFERENCES tdata_records_%d(row_id) ON DELETE CASCADE)</p>
<p dir="auto">TDataIndexCreationCommand_0<br />
CREATE INDEX idx_tdata_%d_id_timestamp ON tdata_%d(item_id,tdata_timestamp)</p>
<p dir="auto">TDataIndexCreationCommand_1<br />
CREATE INDEX idx_tdata_rec_%d_instance ON tdata_records_%d(instance)</p>
<p dir="auto">10 rows selected.</p>
]]></description><link>https://forum.netxms.org/post/15956</link><guid isPermaLink="true">https://forum.netxms.org/post/15956</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Wed, 18 Feb 2015 12:48:13 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms OracleDB errors on Fri, 13 Feb 2015 15:37:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">please send me output of query</p>
<p dir="auto">SELECT * FROM metadata</p>
<p dir="auto">from your database. For now, try to answer y only to invalid object fix - that way it will fix at least this problem.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15933</link><guid isPermaLink="true">https://forum.netxms.org/post/15933</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 13 Feb 2015 15:37:22 GMT</pubDate></item></channel></rss>