<?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: Oracle SP with OUT parameter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346829#M114181</link>
    <description>Hi,
&lt;BR /&gt;Have you already checked document about:
&lt;A href="https://help.talend.com/search/all?query=Calling+a+stored+procedure+or+function" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Calling a stored procedure or function&lt;/A&gt;?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
    <pubDate>Tue, 08 Mar 2016 06:57:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-08T06:57:50Z</dc:date>
    <item>
      <title>Oracle SP with OUT parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346828#M114180</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have to invoke a SP written on Oracle that takes 1 IN parameter and 1 OUT parameter.&lt;BR /&gt;The IN parameter is of type int and simple to configure.&lt;BR /&gt;The OUT parameter however is a table of number. Is there a way to configure this OUT parameter using tOracleSP component?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346828#M114180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T15:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SP with OUT parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346829#M114181</link>
      <description>Hi,
&lt;BR /&gt;Have you already checked document about:
&lt;A href="https://help.talend.com/search/all?query=Calling+a+stored+procedure+or+function" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:Calling a stored procedure or function&lt;/A&gt;?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Mar 2016 06:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346829#M114181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SP with OUT parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346830#M114182</link>
      <description>Hi, 
&lt;BR /&gt;I had already checked the link you shared. I also created a job as detailed in the link as follows: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH9u.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152416i380F803F4937D812/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH9u.png" alt="0683p000009MH9u.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Here the tFixedFlowInput component's schema has 1 int field called as p_In which will be the IN parameter for the stored procedure. 
&lt;BR /&gt;The tOracleSP component is configured as follows: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH7a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138262iB6332DF04E988824/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH7a.png" alt="0683p000009MH7a.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;And the schema is defined as follows: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH6I.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135687iBC4B76835BE222F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH6I.png" alt="0683p000009MH6I.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Now when I run the job, I get the following error in the Talend console: 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;Exception in component tOracleSP_1&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;java.sql.SQLException: ORA-06550: line 1, column 7:&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;PLS-00306: wrong number or types of arguments in call to 'SP_PROCESS_SPSSTOGARNET2'&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;ORA-06550: line 1, column 7:&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;PL/SQL: Statement ignored&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If the Type of the p_Out parameter in the schema is set to Object or byte[] the error is given as 
&lt;FONT color="#ff3333"&gt;java.sql.SQLException: Invalid column type&lt;/FONT&gt;. 
&lt;BR /&gt; 
&lt;BR /&gt;Any idea how to resolve this error?</description>
      <pubDate>Tue, 08 Mar 2016 10:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346830#M114182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T10:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SP with OUT parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346831#M114183</link>
      <description>Hi,&lt;BR /&gt;Can you successfully call your stores procedure &lt;FONT color="#ff3333"&gt;'SP_PROCESS_SPSSTOGARNET2' &lt;/FONT&gt;in oracle DB?&lt;BR /&gt;Could you please show us your stores procedure?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 09 Mar 2016 10:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346831#M114183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T10:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SP with OUT parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346832#M114184</link>
      <description>&lt;BLOCKQUOTE&gt;
  xdshi wrote: 
 &lt;BR /&gt;Hi, 
 &lt;BR /&gt;Can you successfully call your stores procedure 
 &lt;FONT color="#ff3333"&gt;'SP_PROCESS_SPSSTOGARNET2' &lt;/FONT&gt;in oracle DB? 
 &lt;BR /&gt;Could you please show us your stores procedure? 
 &lt;BR /&gt; 
 &lt;BR /&gt;Best regards 
 &lt;BR /&gt;Sabrina 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, I can successfully call the stored proc in Oracle client. 
&lt;BR /&gt;The stored procedure is actually very big to include here. 
&lt;BR /&gt;This is how the stored procedure is declared: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;CREATE OR REPLACE PACKAGE "RDFM_PROD"."TABLETSPSSTOGARNETPACK"&amp;nbsp;&lt;BR /&gt;&amp;nbsp; IS&lt;BR /&gt;&amp;nbsp; &amp;nbsp;type numTbl is table of number&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; index by binary_integer;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Procedure SP_PROCESS_SPSStoGARNET2(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; p_In &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IN number,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; p_Out &amp;nbsp; &amp;nbsp; &amp;nbsp; OUT numTbl);&lt;BR /&gt;END;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And this is how I executed the stored procedure from Oracle client 
&lt;BR /&gt; 
&lt;PRE&gt;DECLARE&lt;BR /&gt;	P_IN NUMBER := 1;&lt;BR /&gt;	P_OUT RDFM_PROD.TABLETSPSSTOGARNETPACK.NUMTBL;&lt;BR /&gt;BEGIN&lt;BR /&gt;	RDFM_PROD.TABLETSPSSTOGARNETPACK.SP_PROCESS_SPSSTOGARNET2(P_IN, P_OUT);&lt;BR /&gt;	DBMS_OUTPUT.PUT('P_IN: ');&lt;BR /&gt;	DBMS_OUTPUT.PUT_LINE(P_IN);&lt;BR /&gt;	DBMS_OUTPUT.PUT('P_OUT: ');&lt;BR /&gt;	DBMS_OUTPUT.PUT_LINE(P_OUT(1));&lt;BR /&gt;END;&lt;BR /&gt;GO&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Mar 2016 12:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-SP-with-OUT-parameter/m-p/2346832#M114184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T12:31:42Z</dc:date>
    </item>
  </channel>
</rss>

