<?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] Store value of Oracle Sequence for use in data flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358089#M123247</link>
    <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I need to grab a new sequence number for each row. Which component do I use?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;On tmap. add a new column and set the expression as: 
&lt;BR /&gt;Numeric.sequence("s1",1,1) 
&lt;BR /&gt;s1 is sequence name, the first 1 is start value, the second 1 is step 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 11 Nov 2009 01:51:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-11T01:51:27Z</dc:date>
    <item>
      <title>[resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358088#M123246</link>
      <description>Hi. I have a spreadsheet with data that will go to several oracle database tables. I must grab the sequence number from oracle and use the same sequence number in each of the tables. So far I have been successful using a tOracleInput to get the next sequence number, but only once for the entire run. I need to grab a new sequence number for each row. Which component do I use? 
&lt;BR /&gt;I have tried using tOracleRow with the propagate option, but it grabs it as a resultset and I don't know how to cast that to an int. I have used the tOracleOutput Additional Rows feature, which inserts the new sequence into the table just fine but doesn't put it into the data flow. 
&lt;BR /&gt;I am desperate for some help as this project is due by Thanksgiving! 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Eileen</description>
      <pubDate>Sat, 16 Nov 2024 13:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358088#M123246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358089#M123247</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I need to grab a new sequence number for each row. Which component do I use?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;On tmap. add a new column and set the expression as: 
&lt;BR /&gt;Numeric.sequence("s1",1,1) 
&lt;BR /&gt;s1 is sequence name, the first 1 is start value, the second 1 is step 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 11 Nov 2009 01:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358089#M123247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T01:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358090#M123248</link>
      <description>Thanks for your reply. As stated in my post, I cannot use the Talend built-in sequence. I MUST grab the sequence.nextval from Oracle and store it in a context variable or put it into the data flow. 
&lt;BR /&gt;I have viewed the following post, which you seem to be pointing people with this issue to. This does not seem to address my problem, unless I'm missing something: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqWYCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Use-the-result-of-Oracle-sequence-Nextval/td-p/109452&lt;/A&gt; 
&lt;BR /&gt;I have also commented on this post, in which the developer seems to have the same issue as mine, but he has gotten no useable solution: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqTrCAK" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Inserting-into-multiple-tables/td-p/109134&lt;/A&gt; 
&lt;BR /&gt;Please help. There must be a way to do this.</description>
      <pubDate>Wed, 11 Nov 2009 18:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358090#M123248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T18:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358091#M123249</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I need to grab a new sequence number for each row. Which component do I use?&lt;BR /&gt;I MUST grab the sequence.nextval from Oracle and store it in a context variable or put it into the data flow.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Before inserting one row into table, get the last id, and after inserting one row, you can get the current seq num as last id+1, see my example, 
&lt;BR /&gt;my sequence: 
&lt;BR /&gt; 
&lt;PRE&gt;create sequence s1 &lt;BR /&gt;minvalue 1&lt;BR /&gt;maxvalue 999999999&lt;BR /&gt;start with 1&lt;BR /&gt;increment by 1&lt;BR /&gt;nocache;&lt;/PRE&gt; 
&lt;BR /&gt;About tFlowToIterate component usage, see 5827. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 12 Nov 2009 04:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358091#M123249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T04:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358092#M123250</link>
      <description>Thank you so much for your answer, Shong. I was able to get exactly what I wanted by modifying your job to issue 
&lt;BR /&gt;"Select sequence.nextval from dual" in tOracleInput. I got the next sequence number for each row, so I didn't have to create a local sequence. 
&lt;BR /&gt;While this does resolve my problem, it was an advanced solution to something that should be more simple to do. Can I request that a new feature be added to the "additional columns" of tOracleOutput that would allow you to capture the result of the SQL expression Iif it is a select) and put it on the globalMap? 
&lt;BR /&gt;Thanks again! 
&lt;BR /&gt;Eileen</description>
      <pubDate>Thu, 19 Nov 2009 22:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358092#M123250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-19T22:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358093#M123251</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Can I request that a new feature be added to the "additional columns" of tOracleOutput that would allow you to capture the result of the SQL expression Iif it is a select) and put it on the globalMap?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I think it is not neccessary, as you said, you can get the next sequence number via "Select sequence.nextval from dual" in tOracleInput, you can link tOracleInput to tJavaRow, eg 
&lt;BR /&gt;tOracleInput --&amp;gt;tJavaRow 
&lt;BR /&gt;on tJavaRow, set it to globalMap, globalMap.put("nextseq",input_row.nextseq) //nextseq is column name. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 20 Nov 2009 02:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358093#M123251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-20T02:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358094#M123252</link>
      <description>I agree this should be much simpler.  It is not intuitive.</description>
      <pubDate>Wed, 10 Mar 2010 18:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358094#M123252</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-03-10T18:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358095#M123253</link>
      <description>Hi Shong,
&lt;BR /&gt;I have a requirement where in I have input from flat file, it needs to be loaded to say 10 tables.
&lt;BR /&gt;There is 1 column which needs to be unique but generated through Talend as a sequence ( as my DB is not Oracle but Amazon redshift). 
&lt;BR /&gt;This column value must be fetched from the last max value of this column and then incremented by 1. 
&lt;BR /&gt;Also, same column value needs to be inserted to multiple tables. e.g. 1 row inserted into 10 tables with this column value being the same in all 10 tables.
&lt;BR /&gt;Can you please help me out as urgent.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Atul</description>
      <pubDate>Wed, 24 Jul 2013 13:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358095#M123253</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-24T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358096#M123254</link>
      <description>Hi, 
&lt;BR /&gt;I am working on a project . My task is to load data incrementally from MS Sql to MY Sql. I am using talend 5.3. I am facing an issue to get the data incrementally. My scenario is i have Date modified , Date created , Date Deleted columns in my tables. Whenever a row is created or update datemodified column is updated. i am working on finding a way to get max date modified from my destination i.e Mysql and store it in a variable. Use that variable in my source query to filter records based on maxdatemodified which i got from mysql. Please help me with this with some screen shotes. Appreciate your help. 
&lt;BR /&gt;Sravanthi.</description>
      <pubDate>Tue, 13 Aug 2013 23:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358096#M123254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-13T23:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358097#M123255</link>
      <description>Create a new topic for a new question and if you want more people to help, I suggest you don't ask for screenshots. Most people don't have time to build example jobs for you but are happy to give you pointers on your design.</description>
      <pubDate>Wed, 14 Aug 2013 02:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358097#M123255</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-08-14T02:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Store value of Oracle Sequence for use in data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358098#M123256</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;I have a requirement where in I have input from flat file, it needs to be loaded to say 10 tables.&lt;BR /&gt;There is 1 column which needs to be unique but generated through Talend as a sequence ( as my DB is not Oracle but Amazon redshift). &lt;BR /&gt;This column value must be fetched from the last max value of this column and then incremented by 1. &lt;BR /&gt;Also, same column value needs to be inserted to multiple tables. e.g. 1 row inserted into 10 tables with this column value being the same in all 10 tables.&lt;BR /&gt;Can you please help me out as urgent.&lt;BR /&gt;Thanks&lt;BR /&gt;Atul&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Atul/ Shong - 
&lt;BR /&gt;Any update on the above question - 
&lt;BR /&gt;does talend have any reusable sequence generator like in Informatica. 
&lt;BR /&gt;Even I have the above scenario - and I have used tmap to generate seq.id's. but since its not reusable - all the targets are getting different sequence number. 
&lt;BR /&gt;Pls do lmk as soon as possible. 
&lt;BR /&gt;Thanks in advance 
&lt;BR /&gt;Rose</description>
      <pubDate>Thu, 21 Nov 2013 10:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Store-value-of-Oracle-Sequence-for-use-in-data-flow/m-p/2358098#M123256</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-21T10:17:57Z</dc:date>
    </item>
  </channel>
</rss>

