<?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: Talend ,Oracle ,tOracleOuptut , auto incrememt , sequence in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267152#M46148</link>
    <description>&lt;P&gt;This is an interesting problem and a pain that I have had in the past. When you get used to working with autoincrements and then you use a DB without them, it really can be a pain. Using an Oracle Sequence is a good way of getting round this. But I think you need to tweak your DB component's advanced settings. You have your "additional columns" configured to add your sequence BEFORE CODE. Can you change this to REPLACE to KEY_CLIENT? Then in the "field options" below, configure ALL columns (KEY_CLIENT, CODE, PRENOM, AGE) and set them up as you want them to behave for an INSERT and UPDATE. So, the only change I think you'll need is to add KEY_CLIENT and set it to not be changed on UPDATE (and maybe should the update key be this field too?).&lt;/P&gt;</description>
    <pubDate>Sun, 02 Feb 2020 16:25:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-02T16:25:17Z</dc:date>
    <item>
      <title>Talend ,Oracle ,tOracleOuptut , auto incrememt , sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267151#M46147</link>
      <description>&lt;P&gt;hello, I'am using Talend integration studio version 7.2 to implement a datawarhouse on an Oracle 11g Database&lt;BR /&gt;I will use a simple scenario to explain my 2 problems:&lt;BR /&gt;I have a source table "client " from which I'am going to create a dimension table Dim_client as you all know in a datawarhouse dimension we add an auto increment column as a surrogate key&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;since in oracle 11g, I do not have the option to create an auto increment column in the database, I found myself with these three options :&lt;/P&gt; 
&lt;P&gt;option 1: create a Java sequence in tmap&lt;BR /&gt;option 2: creating a sequence in the oracle database with a trigger&lt;BR /&gt;option 3: create a sequence in the database and use it in tOralceOutput&lt;/P&gt; 
&lt;P&gt;my problem is with the third scenario&lt;/P&gt; 
&lt;P&gt;i have a :&lt;BR /&gt;***client as source table with three columns (code, prenom, age).&lt;BR /&gt;code prenom age&lt;BR /&gt;c1 mehdi 26&lt;BR /&gt;c2 raed 24&lt;BR /&gt;c3 nada 25&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="senario.PNG" style="width: 883px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8qv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143927i8178F2D7D8B7E6D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8qv.png" alt="0683p000009M8qv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M86j.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139532iECE1D0F52E752935/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M86j.png" alt="0683p000009M86j.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;***the dimension table will be Dim_client with 4 columns (key_client, code, prenom, age)&lt;/P&gt; 
&lt;P&gt;I want to insert or update data from the source table to the dimension table based on the column &lt;STRONG&gt;code as my business key,&lt;/STRONG&gt; so I did it using &lt;STRONG&gt;toracleOutput&lt;/STRONG&gt; component.&lt;BR /&gt;-I created an &lt;STRONG&gt;oracle sequence&lt;/STRONG&gt; for the surrogate key:&lt;STRONG&gt; &lt;EM&gt;creates sequence seq_dim_client minvalue 1 start with 1 increment by 1;&lt;/EM&gt; &lt;/STRONG&gt;&lt;BR /&gt;-I'm using two Java components to check the number of inserted and updated rows&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8py.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141576iD337C9079C526769/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8py.png" alt="0683p000009M8py.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8r5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155040i2C2740548F9AD84D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8r5.png" alt="0683p000009M8r5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;-in the first exectution everythinhg is going fine&amp;nbsp; and dim_client is populated with three rows .&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;key_client code prenom age&lt;BR /&gt;1 c1 mehdi 26&lt;BR /&gt;2 c2 raed 24&lt;BR /&gt;3 c3 nada 25&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8rA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157917i21860C9ED66181BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8rA.png" alt="0683p000009M8rA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but when I re-execute the same job without changing anything something weird happened, the numbers of the key_client changes from 1,2,3 to 4,5,6 and the number of updated lines = to 3 .&lt;/P&gt; 
&lt;P&gt;I understand that even when nothing is changed in the source table tOracleOutptut is doing an updated, which explain the changes on the key_client&lt;/P&gt; 
&lt;P&gt;key_client code prenom age&lt;BR /&gt;4 c1 mehdi 26&lt;BR /&gt;5 c2 raed 24&lt;BR /&gt;6 c3 nada 25&lt;/P&gt; 
&lt;P&gt;can&amp;nbsp; someone validate my hypothesis and tell me what is the solution for this specific case ?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;THX&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267151#M46147</guid>
      <dc:creator>Mehdi_Mhedhbi2</dc:creator>
      <dc:date>2024-11-16T03:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ,Oracle ,tOracleOuptut , auto incrememt , sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267152#M46148</link>
      <description>&lt;P&gt;This is an interesting problem and a pain that I have had in the past. When you get used to working with autoincrements and then you use a DB without them, it really can be a pain. Using an Oracle Sequence is a good way of getting round this. But I think you need to tweak your DB component's advanced settings. You have your "additional columns" configured to add your sequence BEFORE CODE. Can you change this to REPLACE to KEY_CLIENT? Then in the "field options" below, configure ALL columns (KEY_CLIENT, CODE, PRENOM, AGE) and set them up as you want them to behave for an INSERT and UPDATE. So, the only change I think you'll need is to add KEY_CLIENT and set it to not be changed on UPDATE (and maybe should the update key be this field too?).&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 16:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267152#M46148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-02T16:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ,Oracle ,tOracleOuptut , auto incrememt , sequence</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267153#M46149</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp;very much for your&amp;nbsp;&lt;SPAN class="s-bl-t"&gt;help&lt;/SPAN&gt;&lt;SPAN class="s-bl-t"&gt;&amp;nbsp;,&lt;/SPAN&gt;your&amp;nbsp;solution&amp;nbsp;works fine for me,&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;i&lt;/SPAN&gt;&amp;nbsp;had&amp;nbsp;just&amp;nbsp;to&amp;nbsp;add&amp;nbsp;the&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;key_client&lt;/SPAN&gt;&amp;nbsp;in the&amp;nbsp;schema&amp;nbsp;and&amp;nbsp;use&amp;nbsp;it&amp;nbsp;&lt;SPAN class="s-bl-t"&gt;replace&lt;/SPAN&gt;&lt;SPAN class="s-bl-t"&gt;&amp;nbsp;&amp;nbsp;like&lt;/SPAN&gt;&amp;nbsp;you&amp;nbsp;said&amp;nbsp;and&amp;nbsp;make&amp;nbsp;it not updatable.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actially&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;i&lt;/SPAN&gt;&amp;nbsp;tried&amp;nbsp;many&amp;nbsp;things&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;i&lt;/SPAN&gt;&amp;nbsp;used&amp;nbsp;triggers&amp;nbsp;with&amp;nbsp;sequence.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;sequence&amp;nbsp;only&amp;nbsp;(your solution)&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;tOracleSCD&lt;/SPAN&gt;&amp;nbsp;type 1 since&amp;nbsp;I'm familiar with the&amp;nbsp;concept&amp;nbsp;of&amp;nbsp;slowly&amp;nbsp;changing the&amp;nbsp;dimension&amp;nbsp;and a&amp;nbsp;sequence.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem&amp;nbsp;I&amp;nbsp;am&amp;nbsp;facing&amp;nbsp;with your&amp;nbsp;solution&amp;nbsp;and the&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;tSCD&lt;/SPAN&gt;&amp;nbsp;one&amp;nbsp;is&amp;nbsp;the&amp;nbsp;performance, my&amp;nbsp;job&amp;nbsp;is&amp;nbsp;not&amp;nbsp;very&amp;nbsp;complicated&amp;nbsp;i am&amp;nbsp;dowing two joins in&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;tmap&lt;/SPAN&gt;&amp;nbsp;but when executing I'm&amp;nbsp;only&amp;nbsp;getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;200&amp;nbsp;rows&amp;nbsp;per&amp;nbsp;second&amp;nbsp;with your&amp;nbsp;solution&amp;nbsp;which&amp;nbsp;keeps&amp;nbsp;getting smaller every&amp;nbsp;time&amp;nbsp;until 15&amp;nbsp;rows/s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="s-rg-t"&gt;and&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="s-bl-t"&gt;10&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s-bl-t"&gt;rows&lt;/SPAN&gt;/s&amp;nbsp;with&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;tSCd&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I&amp;nbsp;tried&amp;nbsp;to&amp;nbsp;play&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;XMS&lt;/SPAN&gt;&amp;nbsp;and XMX&amp;nbsp;values but with no&amp;nbsp;result&amp;nbsp;knowing&amp;nbsp;that my&amp;nbsp;dimension&amp;nbsp;is big 400 000&amp;nbsp;&lt;SPAN class="s-bl-t"&gt;rows&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do you&amp;nbsp;have&amp;nbsp;any&amp;nbsp;suggestion&amp;nbsp;please?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;i&lt;/SPAN&gt;'m&amp;nbsp;using&amp;nbsp;&lt;SPAN class="s-rg-t"&gt;Talend&lt;/SPAN&gt;&amp;nbsp;Enterprise&amp;nbsp;&lt;SPAN class="s-bl-t"&gt;edition&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9YJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155816i00312E0FC4E9DF26/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9YJ.png" alt="0683p000009M9YJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 19:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Oracle-tOracleOuptut-auto-incrememt-sequence/m-p/2267153#M46149</guid>
      <dc:creator>Mehdi_Mhedhbi2</dc:creator>
      <dc:date>2020-03-25T19:13:47Z</dc:date>
    </item>
  </channel>
</rss>

