<?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 Re: Support QueryTimeout in Oracle database components in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328528#M97801</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Because the query timeout is related to the Statement object itself.&lt;/P&gt;&lt;P&gt;According to the documentation it offers this functionality:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int)" alt="https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int)" target="_blank"&gt;https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It would be a feature request as setting this timeout requires access to the Statement object.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 08:51:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-04T08:51:01Z</dc:date>
    <item>
      <title>Support QueryTimeout in Oracle database components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328525#M97798</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an issue with Talend Oracle database components. For data manipulation components (such as tDbRow, tDbInput) we would like to be able to use the underlying's Java sql Statement instance options such as setQueryTimeout.&lt;/P&gt;&lt;P&gt;At the moment, we have to construct our own components using the tDbConnection and write the logic from scratch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple example in a tJavaRow: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output_row.errorCode = null;&lt;/P&gt;&lt;P&gt;output_row.queryErrorMessage = null;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;java.sql.Connection conn_tJavaRow = (java.sql.Connection)globalMap.get("conn_tDBConnection_1");&lt;/P&gt;&lt;P&gt;java.sql.Statement stmt_tJavaRow = conn_tJavaRow.createStatement();&lt;/P&gt;&lt;P&gt;stmt_tJavaRow.setQueryTimeout(context.query_timeout != null ? ((Long)context.query_timeout).intValue() : 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String query = "...";&lt;/P&gt;&lt;P&gt;try {&lt;/P&gt;&lt;P&gt;	stmt_tJavaRow.execute(query);&lt;/P&gt;&lt;P&gt;	log.info("tJavaRow - Execute the query: '" + query + "' has finished.");&lt;/P&gt;&lt;P&gt;} catch (java.lang.Exception e) {&lt;/P&gt;&lt;P&gt;	log.error("tJavaRow - " + e.getMessage());&lt;/P&gt;&lt;P&gt;	output_row.errorCode = ((java.sql.SQLException) e).getSQLState();&lt;/P&gt;&lt;P&gt;	output_row.queryErrorMessage = e.getMessage();&lt;/P&gt;&lt;P&gt;} finally {&lt;/P&gt;&lt;P&gt;	stmt_tJavaRow.close();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility to support this inside the components themselves?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328525#M97798</guid>
      <dc:creator>IBuruleanu1666252610</dc:creator>
      <dc:date>2024-11-15T22:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Support QueryTimeout in Oracle database components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328526#M97799</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If querytimeout is implemented via the connection string in oracle, you could try to add the parameter queryTimeout=X to the addtional JDBC parameter field in the advanced settings panel of tOracleInput component. eg:&lt;/P&gt;&lt;P&gt;"noDatetimeStringSync=true;queryTimeout=10".&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&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>Fri, 21 Oct 2022 08:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328526#M97799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-21T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Support QueryTimeout in Oracle database components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328527#M97800</link>
      <description>&lt;P&gt;Hi xdshi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I cannot find such option for tDbRow (with Oracle connection):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YCZsXAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153909i2A67376DE4AB4355/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YCZsXAAX.png" alt="0695b00000YCZsXAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is only visible in tDbConnection by the option additional JDBC Params, but we tested this out already and it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YCZuOAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129548iA4D202DA775BC05E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YCZuOAAX.png" alt="0695b00000YCZuOAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 09:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328527#M97800</guid>
      <dc:creator>IBuruleanu1666252610</dc:creator>
      <dc:date>2022-10-21T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Support QueryTimeout in Oracle database components</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328528#M97801</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Because the query timeout is related to the Statement object itself.&lt;/P&gt;&lt;P&gt;According to the documentation it offers this functionality:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int)" alt="https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int)" target="_blank"&gt;https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It would be a feature request as setting this timeout requires access to the Statement object.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 08:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Support-QueryTimeout-in-Oracle-database-components/m-p/2328528#M97801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-04T08:51:01Z</dc:date>
    </item>
  </channel>
</rss>

