<?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: Calling an Oracle stored procedure to insert multiple rows into multiple tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Calling-an-Oracle-stored-procedure-to-insert-multiple-rows-into/m-p/2212169#M9902</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;One of the important aspect of the evolution of ETL is to move away from complex codes within scripts of stored procedures as it might be difficult to traverse in due course. So why don't you replicate the logic within Stored Proc using a series of normal tDBOutput components in a controlled fashion?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; That will be the most optimal way as you can still send the data to underlying table as a block of records instead of one at a time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you still want to go by Stored Proc route, could you please check below link? But my personal preference is to do the same logic within ETL itself.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqV9CAK" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Using-Stored-Procedures-in-Talend/td-p/109276&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2019 07:05:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-01T07:05:01Z</dc:date>
    <item>
      <title>Calling an Oracle stored procedure to insert multiple rows into multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-an-Oracle-stored-procedure-to-insert-multiple-rows-into/m-p/2212168#M9901</link>
      <description>&lt;P&gt;My requirement is to design a job that would call an Oracle stored procedure (tOracleSP) to insert rows into multiple tables. Details are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Business identifies some new items, so they create a csv file which has the basic information for new items. Let's say they create 3 new items on the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. My Talend job is to read this csv file and then call a stored procedure "Create_New_Item" to insert new rows for many tables: UPC_ID_Xref, New_Product, UPC_ID_Desc, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The link I found &lt;A title="TalendHelpCenter:Calling a stored procedure or function" href="https://help.talend.com/reader/Q9vaxgWJukCTTBvQLU1sYA/1YRfa8jzKBb5GYYBOQsEHg" target="_self" rel="nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;TalendHelpCenter:Calling a stored procedure or function&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;is not much helpful, because all of the given examples only have one row going to the tOracleSP component. So my questions is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If I read in new items info from csv file and call the SP, I have to read the new items one by one&lt;/P&gt;
&lt;P&gt;and call the SP for each one: tFlowToIterate --iterate--&amp;gt; tFixedFlowInput -- iterate--&amp;gt; tOracleSP, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If I use a database staging table to store the new items, and read new items from the staging table and call the SP, should I use "Main" or "Iterate"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If there is error on the csv file for the 2nd item, how the tOracleSP will behave? Will the 1st new item be created into the tables? I think knowing this will be very important for designing for debugging and rerunning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;TM&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-an-Oracle-stored-procedure-to-insert-multiple-rows-into/m-p/2212168#M9901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling an Oracle stored procedure to insert multiple rows into multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-an-Oracle-stored-procedure-to-insert-multiple-rows-into/m-p/2212169#M9902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;One of the important aspect of the evolution of ETL is to move away from complex codes within scripts of stored procedures as it might be difficult to traverse in due course. So why don't you replicate the logic within Stored Proc using a series of normal tDBOutput components in a controlled fashion?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; That will be the most optimal way as you can still send the data to underlying table as a block of records instead of one at a time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you still want to go by Stored Proc route, could you please check below link? But my personal preference is to do the same logic within ETL itself.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqV9CAK" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Using-Stored-Procedures-in-Talend/td-p/109276&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 07:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-an-Oracle-stored-procedure-to-insert-multiple-rows-into/m-p/2212169#M9902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-01T07:05:01Z</dc:date>
    </item>
  </channel>
</rss>

