<?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: how to execute a PLSQL block in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297783#M70321</link>
    <description>Is that the right syntax for including single quotes in the middle of a string? I don't have an Oracle system to test on, but I thought it should look something like:&lt;BR /&gt;( queue_name =&amp;gt; ''TESTQ'', enqueue_options...);</description>
    <pubDate>Thu, 19 Oct 2017 15:21:53 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-10-19T15:21:53Z</dc:date>
    <item>
      <title>how to execute a PLSQL block in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297780#M70318</link>
      <description>&lt;P&gt;I am trying to execute a plsql block using tOracleRow component as shown below. But it doesn't like that. Could anyone help me with this? Thanks&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;"BEGIN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;EXECUTE IMMEDIATE 'declare&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;l_enqueue_options dbms_aq.enqueue_options_t;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;l_message_properties dbms_aq.message_properties_t;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;l_message sys.aq$_jms_text_message;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;.....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;commit;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;end;"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 20:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297780#M70318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-18T20:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute a PLSQL block in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297781#M70319</link>
      <description>Hi,&lt;BR /&gt;What is the error message?&lt;BR /&gt;What if you try the same PL/SQL block using SQL*Plus?</description>
      <pubDate>Wed, 18 Oct 2017 22:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297781#M70319</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-18T22:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute a PLSQL block in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297782#M70320</link>
      <description>&lt;P&gt;Thanks for your response. Yes, the plsql code works in SQLPLUS. Here is the error I get:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;Exception in component tOracleRow_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;java.sql.SQLException: ORA-06550: line 2, column 19:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;PLS-00382: expression is of wrong type&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;ORA-06550: line 2, column 1:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;PL/SQL: Statement ignored&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:936)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1770)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1739)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:298)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;[statistics] disconnected&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Here is my test plsql code used in tOracleRow:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;"BEGIN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;EXECUTE IMMEDIATE 'declare&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;l_enqueue_options dbms_aq.enqueue_options_t;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;l_message_properties dbms_aq.message_properties_t;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;l_message sys.aq$_jms_text_message;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;l_msgid raw(16);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;begin&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;l_message := sys.aq$_jms_text_message.construct;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;l_message.set_text(xmltype('+'&amp;lt;emp&amp;gt;&amp;lt;ename&amp;gt;Test&amp;lt;/ename&amp;gt;&amp;lt;/emp&amp;gt;'+').getClobVal());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;dbms_aq.enqueue&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;( queue_name =&amp;gt; '+'TESTQ' +&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;' , enqueue_options =&amp;gt; l_enqueue_options&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;, message_properties =&amp;gt; l_message_properties&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;, payload =&amp;gt; l_message&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;, msgid =&amp;gt; l_msgid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;commit;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;end';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;end;"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297782#M70320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute a PLSQL block in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297783#M70321</link>
      <description>Is that the right syntax for including single quotes in the middle of a string? I don't have an Oracle system to test on, but I thought it should look something like:&lt;BR /&gt;( queue_name =&amp;gt; ''TESTQ'', enqueue_options...);</description>
      <pubDate>Thu, 19 Oct 2017 15:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297783#M70321</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-10-19T15:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute a PLSQL block in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297784#M70322</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same code works fine in SQLPLUS with single quote (e.g.&amp;nbsp;'AQ_STEP_INBOUND_PV'). Talend doesn't like double single quotes (e.g.&amp;nbsp;''AQ_STEP_INBOUND_PV''). So I tried with three single quotes (e.g.&amp;nbsp;'''AQ_STEP_INBOUND_PV'''), but I get the same runtime error:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;Exception in component tOracleRow_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;java.sql.SQLException: ORA-06550: line 2, column 20:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;PLS-00382: expression is of wrong type&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;ORA-06550: line 2, column 2:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;PL/SQL: Statement ignored&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 16:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-execute-a-PLSQL-block-in-Talend/m-p/2297784#M70322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T16:42:03Z</dc:date>
    </item>
  </channel>
</rss>

