<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Enable/disable database reading/writing]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=335&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=335"/>
	<updated>2017-07-11T17:54:02Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=335</id>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1685#p1685"/>
		<content type="html"><![CDATA[<p>Hi everybody,</p><p>I am running my rex project with new DB__Connect flag for a few days now, and it seems to work exactly as supposed.</p><p>I noticed some DB errors (probably during backup tasks), but everything got back to working state, just as it supposed.</p><p>So I can say that my problem is solved!<br />Thanks!</p><p>Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-07-11T17:54:02Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1685#p1685</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1684#p1684"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,</p><p>I&#039;m happy to hear that!<br />Already updated my rex and put some rule to monitor DB__Time_Age flag.</p><p>I&#039;ll let you know if that will solve my issues!</p><p>Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-07-06T12:08:18Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1684#p1684</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1669#p1669"/>
		<content type="html"><![CDATA[<p>Hi Hubert,<br />yes, since version 2.50.4 the database driver supports &quot;DB__Connect&quot; output flag which you can use to reinitialize connection to the database server. Bring it to OFF and after a while back to ON and it will reconnect.</p><p>The &quot;DB__Connected&quot; input flag tells you the status of the connection to the server.</p><p>Hope this helps, let me know.</p><p>Kind regards<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-06-26T12:53:45Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1669#p1669</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1667#p1667"/>
		<content type="html"><![CDATA[<p>Hello Jaroslav,</p><p>any updates on this topic? <img src="http://www.rexygen.com/oldforum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-06-21T06:15:09Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1667#p1667</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1542#p1542"/>
		<content type="html"><![CDATA[<p>Hi Hubert,<br />no specific date can be provided at the moment. Thanks for understanding and patience.</p><p>Best regards<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-03-13T12:15:22Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1542#p1542</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1532#p1532"/>
		<content type="html"><![CDATA[<p>Hello Jaroslav,</p><p>I&#039;m glad to hear that!<br />When do you plan this release?</p><p>Regards<br />Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-03-09T11:36:32Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1532#p1532</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1529#p1529"/>
		<content type="html"><![CDATA[<p>Hi Hubert,<br />thanks for the information. I cannot tell what is the problem. We have added the possibility to monitor database connection status and force reinitialization of the connection from the algorithm. Both will be available in nearest release.</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-03-09T07:03:54Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1529#p1529</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1511#p1511"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,</p><p>My RexCore device is connected by wire (ethernet) to the same local network as the MS SQL server. They are on different subnets, so traffic goes through router and that&#039;s all.</p><p>I have no idea what is the cause of this issue. Is it possible to tell something from RexCore Errors?<br />Error messages always looks the same:</p><div class="codebox"><pre><code>SQL error detail (code=0, state=&#039;08S01&#039;, string=&#039;[FreeTDS][SQL Server]Communication link failure&#039;)</code></pre></div><p>Regards<br />Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-03-01T11:53:44Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1511#p1511</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1502#p1502"/>
		<content type="html"><![CDATA[<p>Hi Hubert,<br />I&#039;m sorry to hear you are having such troubles.</p><p>At the moment the EPC block is the only mechanism to restart RexCore from your algorithm.</p><p>No general DB__ flag is available in the current version. The only workaround I can think of is to add some auxiliary signal to write to the database. If you write it directly from the algorithm, not through the archiving subsystem, you can use special flags, e.g. _Fresh, as described in section 3.2 of the <a href="https://www.rexcontrols.com/media/2.50.1/doc/PDF/ENGLISH/DbDrv_ENG.pdf" rel="nofollow">DbDrv manual</a>. This is quite similar to the special flags of the Modbus driver you are already using.</p><p>What type of connection to the database server are you using. Is it some potentially unstable connection (wifi, 3G cellular etc.)? I&#039;d like to investigate the root cause of this issue.</p><p>Hope this helps, let me know.</p><p>With kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-02-24T09:39:19Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1502#p1502</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1495#p1495"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,</p><p>OK, thank you for info. I&#039;m waiting for improvements <img src="http://www.rexygen.com/oldforum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Regarding restarting RexCore - is there some other way doing it (from the project level) than using &#039;External program call&#039;?</p><p>Regards<br />Hubert</p><p>edit:</p><p>Is there some general DB__ flag for checking for any errors? Right now I can&#039;t find any way to detect that there is some problem with database writing.</p><p>AND unfortunately previous error happened again - so it was not just one time issue.</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-02-21T13:11:40Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1495#p1495</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1492#p1492"/>
		<content type="html"><![CDATA[<p>Hi Hubert,<br />thanks for the update. I checked this with our developers and I have no workaround for you other than restarting RexCore in such a case. </p><p>This is a serious problem and we&#039;ll improve that. Thanks for pointing it out!</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-02-17T06:34:55Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1492#p1492</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1483#p1483"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,</p><p>reason is the same like with me previous topic - disable modbus reading and enable them again.</p><p>It happened once for now, some errors shows up:</p><div class="codebox"><pre><code>severity	message
Warning	DBDRV: Archive read underflow(idx=0, arcID=1)
Error	DBDRV: SQL request failed (idx=0, result=-1, sql=&#039;INSERT INTO TrndArchiveInstant (Time, GroupID, Value1, Value2, Value3) VALUES(&quot;2017-02-06 08:50:00.309934&quot;, 1206, -25.5349, -157.562, 672.131)&#039;)
Error	DBDRV: SQL error detail (code=0, state=&#039;08S01&#039;, string=&#039;[FreeTDS][SQL Server]Communication link failure&#039;)
Error	DBDRV: SQL request failed (idx=0, result=-1, sql=&#039;INSERT INTO TrndArchiveInstant (Time, GroupID, Value1, Value2, Value3) VALUES(&quot;2017-02-06 08:50:00.309934&quot;, 1209, 7.38731, 11.8283, 10.3945)&#039;)
Error	DBDRV: SQL error detail (code=0, state=&#039;08S01&#039;, string=&#039;[FreeTDS][SQL Server]Communication link failure&#039;)
Error	DBDRV: SQL request failed (idx=0, result=-1, sql=&#039;INSERT INTO TrndArchiveInstant (Time, GroupID, Value1, Value2, Value3) VALUES(&quot;2017-02-06 08:50:00.309934&quot;, 1208, 0, 0, 0)&#039;)
Error	DBDRV: SQL error detail (code=0, state=&#039;08S01&#039;, string=&#039;[FreeTDS][SQL Server]Communication link failure&#039;)</code></pre></div><p>and nothing is stored in my database. No archives no alarms.<br />I would like to monitor for such issues and in case of errors restart saving to db to fix this.</p><p>And I&#039;m using TRND and ALNI blocks.</p><p>Regards<br />Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-02-14T14:25:11Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1483#p1483</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1480#p1480"/>
		<content type="html"><![CDATA[<p>Hi Hubert,<br />thanks for the explanation, now I understand. In this mode the database driver copies all the contents of the archives to the database as soon as the connection is established. Therefore in this case it is necessary to prevent data from being stored in the archives. </p><p>Can you please describe your application in more detail? Why do you need to disable database writing? What function blocks are you using (ALB, ACD, TRND)? I should be able to give you some hints then.</p><p>Kind regards<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-02-14T08:48:26Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1480#p1480</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1477#p1477"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,</p><p>problem is, that I don&#039;t have any groups with name like &#039;DB__temperature&#039; - I only save data from archives.<br />So in ODBC config window I have set up only &#039;Archives&#039; tab - there are columns: &#039;mode&#039;, &#039;archiveID&#039;, &#039;Items&#039; - there is no name of the signal..</p><br /><p>Regards<br />Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2017-02-09T11:53:35Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1477#p1477</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Enable/disable database reading/writing]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1469#p1469"/>
		<content type="html"><![CDATA[<p>If the signal is &quot;DB__temperature&quot;, then the signal to disable reading/writing is &quot;DB__temeperature_Disable&quot;. Bring TRUE to its input and reading/writing will stop. See the <a href="https://www.rexcontrols.com/media/2.50.1/doc/PDF/ENGLISH/DbDrv_ENG.pdf" rel="nofollow">database driver manual</a>.</p><p>Best regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-02-07T14:01:33Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1469#p1469</id>
	</entry>
</feed>
