<?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: [resolved] Capturing data using RETURNING clause of an UPDATE stmnt (tOracleRow) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328419#M97704</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello Dave&lt;BR /&gt;Create a procedure to process your request on tOracleRow, and then run the procedure on tOracleSP which you get the output parameters and pass them into Talend vars.&lt;BR /&gt;Best regards&lt;BR /&gt; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;One requirement is no stored procs - has to be a more portable solution, with SQL only. 
&lt;BR /&gt;Here is what I did: 
&lt;BR /&gt;A (1) tOracle Connection, then a (2) tOracle Row with a (3) SELECT for UPDATE (locks the record, whe available for lock) into a (4) tLoadContext, then a conditional branch to an Exit (and tOracleRollback) or a (5) tOracleRow for an UPDATE, then a (6) tOracleCommit. 
&lt;BR /&gt;That worked. 
&lt;BR /&gt;It can definatly be argued that my solution is actually LESS portable due to all the Oracle specific components 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Dave</description>
    <pubDate>Mon, 28 Sep 2009 16:06:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-28T16:06:34Z</dc:date>
    <item>
      <title>[resolved] Capturing data using RETURNING clause of an UPDATE stmnt (tOracleRow)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328417#M97702</link>
      <description>I need to perform a SQL update to a row in a metadata table, in my job process (NOT within the data pipeline). I have done this using tOracleRow in the past.
&lt;BR /&gt;HOwever, in addition, I need to return a couple of values back to Talend, as a result of the SQL update to that row in the table. These are SQL%ROWCOUNT (oracle reserved word that returns a count of records affected by the DML statement), and MaxRowsToExtract (to throttle the extraction process)
&lt;BR /&gt;Example:
&lt;BR /&gt;UPDATE ETLProcess SET IsRunningFlag = 1 
&lt;BR /&gt;WHERE ProcessName = 'DimCustomer' 
&lt;BR /&gt;and IsRunningFlag = 0 
&lt;BR /&gt;RETURNING SQL%ROWCOUNT into :IsRowUpdated, MaxRowsToProcess into :MaxRows
&lt;BR /&gt;Assuming tOracleRow (or another option), how can I get these back into Talend variables?
&lt;BR /&gt;Dave</description>
      <pubDate>Sat, 16 Nov 2024 13:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328417#M97702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Capturing data using RETURNING clause of an UPDATE stmnt (tOracleRow)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328418#M97703</link>
      <description>Hello Dave 
&lt;BR /&gt;Create a procedure to process your request on tOracleRow, and then run the procedure on tOracleSP which you get the output parameters and pass them into Talend vars. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Sun, 27 Sep 2009 17:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328418#M97703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-27T17:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Capturing data using RETURNING clause of an UPDATE stmnt (tOracleRow)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328419#M97704</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello Dave&lt;BR /&gt;Create a procedure to process your request on tOracleRow, and then run the procedure on tOracleSP which you get the output parameters and pass them into Talend vars.&lt;BR /&gt;Best regards&lt;BR /&gt; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;One requirement is no stored procs - has to be a more portable solution, with SQL only. 
&lt;BR /&gt;Here is what I did: 
&lt;BR /&gt;A (1) tOracle Connection, then a (2) tOracle Row with a (3) SELECT for UPDATE (locks the record, whe available for lock) into a (4) tLoadContext, then a conditional branch to an Exit (and tOracleRollback) or a (5) tOracleRow for an UPDATE, then a (6) tOracleCommit. 
&lt;BR /&gt;That worked. 
&lt;BR /&gt;It can definatly be argued that my solution is actually LESS portable due to all the Oracle specific components 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 28 Sep 2009 16:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Capturing-data-using-RETURNING-clause-of-an-UPDATE/m-p/2328419#M97704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-28T16:06:34Z</dc:date>
    </item>
  </channel>
</rss>

