<?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 Database Reconnect/Refresh in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372500#M135331</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have set up the job below, but the issue is the database disconnects after a period of time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 779px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsm4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152479i3D09958599B10719/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsm4.png" alt="0683p000009Lsm4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to reconnect/referesh the connection to ensure that everything is executed.&lt;/P&gt; 
&lt;P&gt;Error code below:&lt;/P&gt; 
&lt;PRE&gt;Starting job CashTransAllnewQuery at 08:46 21/02/2018.

[statistics] connecting to socket on port 3417
[statistics] connected
Exception in component tOracleInput_1 (CashTransAllnewQuery)
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:673)
      at oracle.jdbc.driver.PhysicalConnection.&amp;lt;init&amp;gt;(PhysicalConnection.java:715)
      at oracle.jdbc.driver.T4CConnection.&amp;lt;init&amp;gt;(T4CConnection.java:385)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:564)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at terecero.cashtransallnewquery_0_1.CashTransAllnewQuery.tFileInputDelimited_1Process(CashTransAllnewQuery.java:2152)
      at terecero.cashtransallnewquery_0_1.CashTransAllnewQuery.runJobInTOS(CashTransAllnewQuery.java:3141)
      at terecero.cashtransallnewquery_0_1.CashTransAllnewQuery.main(CashTransAllnewQuery.java:2990)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
[statistics] disconnected
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:445)
      at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:464)
      at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:594)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:229)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1360)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:486)
      ... 9 more
Caused by: java.net.ConnectException: Connection timed out: connect
      at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:162)
      at oracle.net.nt.ConnOption.connect(ConnOption.java:133)
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:411)
      ... 14 more
Job CashTransAllnewQuery ended at 09:24 21/02/2018. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;Please could anyone help with this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kind regards,&lt;/P&gt; 
&lt;P&gt;K&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2018 10:32:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-21T10:32:28Z</dc:date>
    <item>
      <title>Database Reconnect/Refresh</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372500#M135331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have set up the job below, but the issue is the database disconnects after a period of time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 779px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsm4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152479i3D09958599B10719/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsm4.png" alt="0683p000009Lsm4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to reconnect/referesh the connection to ensure that everything is executed.&lt;/P&gt; 
&lt;P&gt;Error code below:&lt;/P&gt; 
&lt;PRE&gt;Starting job CashTransAllnewQuery at 08:46 21/02/2018.

[statistics] connecting to socket on port 3417
[statistics] connected
Exception in component tOracleInput_1 (CashTransAllnewQuery)
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:673)
      at oracle.jdbc.driver.PhysicalConnection.&amp;lt;init&amp;gt;(PhysicalConnection.java:715)
      at oracle.jdbc.driver.T4CConnection.&amp;lt;init&amp;gt;(T4CConnection.java:385)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:564)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at java.sql.DriverManager.getConnection(Unknown Source)
      at terecero.cashtransallnewquery_0_1.CashTransAllnewQuery.tFileInputDelimited_1Process(CashTransAllnewQuery.java:2152)
      at terecero.cashtransallnewquery_0_1.CashTransAllnewQuery.runJobInTOS(CashTransAllnewQuery.java:3141)
      at terecero.cashtransallnewquery_0_1.CashTransAllnewQuery.main(CashTransAllnewQuery.java:2990)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
[statistics] disconnected
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:445)
      at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:464)
      at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:594)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:229)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1360)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:486)
      ... 9 more
Caused by: java.net.ConnectException: Connection timed out: connect
      at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
      at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:162)
      at oracle.net.nt.ConnOption.connect(ConnOption.java:133)
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:411)
      ... 14 more
Job CashTransAllnewQuery ended at 09:24 21/02/2018. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;Please could anyone help with this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kind regards,&lt;/P&gt; 
&lt;P&gt;K&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 10:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372500#M135331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T10:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Database Reconnect/Refresh</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372501#M135332</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please describe what the job should do? I don't understand it. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lojdr&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372501#M135332</guid>
      <dc:creator>lojdr</dc:creator>
      <dc:date>2018-02-21T14:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Database Reconnect/Refresh</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372502#M135333</link>
      <description>&lt;P&gt;At the moment the job picks a number from the input file (one at a time/iterates) as a global variable and passes the number to the query, the data is then mapped accordingly to the table schema using tmap and the output is appended to a csv file on every iteration.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is, the database connection is typically only live for 30 minutes,&amp;nbsp;therefore the complete list of numbers from the input file arent processed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to be able to refresh the database connection somehow so it completes the query against all the input rows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372502#M135333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T14:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Database Reconnect/Refresh</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372503#M135334</link>
      <description>&lt;P&gt;Does the job still processing queries or waits for some time?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372503#M135334</guid>
      <dc:creator>lojdr</dc:creator>
      <dc:date>2018-02-21T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Database Reconnect/Refresh</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372504#M135335</link>
      <description>It processes one after another whilst the connection is still live.&lt;BR /&gt;&lt;BR /&gt;The connection dies after around 30 minutes which is the problem.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372504#M135335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Database Reconnect/Refresh</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372505#M135336</link>
      <description>&lt;P&gt;Would be possible that the firewall between the Talend and Oracle database kill the connection after 30 minutes? Do you have any firewall there?&lt;/P&gt;&lt;P&gt;What is the operating system you run the job? Is it Red Hat?&lt;/P&gt;&lt;P&gt;I would also check the database log if is there any reason why the session was interrupted.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 16:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Reconnect-Refresh/m-p/2372505#M135336</guid>
      <dc:creator>lojdr</dc:creator>
      <dc:date>2018-02-21T16:59:24Z</dc:date>
    </item>
  </channel>
</rss>

