<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can not connect to oracle database "Connection reset by peer"</title><link>https://answers.axonivy.com/questions/3592/can-not-connect-to-oracle-database-connection-reset-by-peer</link><description>&lt;p&gt;I'm not able to connect ivy with an oracle database. Ivy is installed on CentOS.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Caused by: ch.ivyteam.ivy.persistence.PersistencyException: java.sql.SQLRecoverableException: IO Error: Connection reset by peer, Authentication lapse 295094 ms.
&lt;/code&gt;&lt;/pre&gt;</description><atom:link href="https://answers.axonivy.com/questions/3592/can-not-connect-to-oracle-database-connection-reset-by-peer" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 19 Dec 2018 09:31:21 -0500</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/3592/can-not-connect-to-oracle-database-connection-reset-by-peer/3593</link><description>&lt;p&gt;The oracle jdbc driver needs some random numbers. For this it uses java to access &lt;em&gt;/dev/random&lt;/em&gt;. &lt;em&gt;/dev/random&lt;/em&gt; is run by the system and requires hardware interactions like mouse clicks. On highly virtualized systems this can be difficult. There are two possibilities:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1) Use /dev/urandom&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Add the following line in &lt;em&gt;AxonIvyEngine.conf&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:///dev/urandom"
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;2) Install entropy daemon&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Install an entropy daemon like &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-setup-additional-entropy-for-cloud-servers-using-haveged"&gt;haveged&lt;/a&gt; which feeds &lt;em&gt;/dev/random&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Further ressources:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/6110395/sqlrecoverableexception-i-o-exception-connection-reset"&gt;https://stackoverflow.com/questions/6110395/sqlrecoverableexception-i-o-exception-connection-reset&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Wed, 19 Dec 2018 09:31:21 -0500</pubDate><guid>https://answers.axonivy.com/questions/3592/can-not-connect-to-oracle-database-connection-reset-by-peer/3593</guid></item></channel></rss>