<?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 Database Tables into Csv files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199750#M2525</link>
    <description>You need to convert rows to columns before to push the header to the final file. Here a good article about this subject 
&lt;A href="http://bekwam.blogspot.fr/2011/01/tutorial-turning-column-into-rows-with.html?m=1" target="_blank" rel="nofollow noopener noreferrer"&gt;http://bekwam.blogspot.fr/2011/01/tutorial-turning-column-into-rows-with.html?m=1&lt;/A&gt;
&lt;BR /&gt;Let me know if you need more help.</description>
    <pubDate>Fri, 19 May 2017 18:54:16 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-05-19T18:54:16Z</dc:date>
    <item>
      <title>Oracle Database Tables into Csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199747#M2522</link>
      <description>&lt;P&gt;Hello, I am trying to retrieve data from tables to registre it into csv files. Here are the components i am using :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tOracleInput_1 -&amp;gt; tFlowIterate_1 -&amp;gt; tOracleInput_2 -&amp;gt; tFileOutputDelimited_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In tOracleInput_1 i am doing this query : "SELECT table_name FROM user_tables"&lt;/P&gt;&lt;P&gt;In tOracleInput_1 : "select * from "+((String)globalMap.get("table_name"))"&lt;/P&gt;&lt;P&gt;In tFileOutputDelimited_1 :&amp;nbsp; context.directory_output + ((String)globalMap.get("table_name")) + ".csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I gave the schema of tables like column1, column2, ... up to 50 because i don't know how many columns i have in each table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The job is working, I am retrieving data in csv files. But my issue is that I want to have the columns name in my files but I don't know how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I don't know if I am doing it the right way, I just started working on talend 2 weeks ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS : sorry for my english I am a french student&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199747#M2522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Database Tables into Csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199748#M2523</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can select the column names using user_tab_columns view on Oracle side.&lt;/P&gt; 
&lt;P&gt;This will give you the list of the columns defined for each table accessible from user_tables.&lt;/P&gt; 
&lt;P&gt;Now, having these names you can construct the header for each expected CSV file - as your are a student, I let you search a little how... &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;Check the column order is the same that the order from "select *".&lt;/P&gt; 
&lt;P&gt;If yes, you can jump to the final step.&lt;/P&gt; 
&lt;P&gt;If not, you need to construct the list of column names (for exemple, "nom, prenom, age, adresse") to build the desired select using:&lt;/P&gt; 
&lt;PRE&gt;"SELECT&amp;nbsp;" + ((String)globalMap.get("column_list"))&amp;nbsp;+ " FROM "+((String)globalMap.get("table_name"))"&lt;/PRE&gt; 
&lt;P&gt;Finaly, uncheck the option "Include Header" from&amp;nbsp;&lt;SPAN&gt;tFileOutputDelimited_1 (because you have built your own) and probably remove undesired ";;;..." at the end of most lines.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Note: ne t'inquiète pas pour ton anglais si même un français a réussi à te comprendre !&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199748#M2523</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-18T15:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Database Tables into Csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199749#M2524</link>
      <description>&lt;P&gt;Hello and thank you for your answer it helped a lot !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I managed to had the column 's names to the file and then had the data to it without erasing the column's names.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But here is what my file looks like :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 745px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146854iB46579BED05CA149/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRL.png" alt="0683p000009LuRL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Is there a way I can put the column's names in each column so it can fit with the data ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried to reverse the separators (";" instead of "\n") of the csv file when I registre the column's names in it, the result was close but not as expected :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuOL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133404i78B129B350D596B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuOL.png" alt="0683p000009LuOL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have to admit I don't know what to do now. I searched on the internet and found that I should perhaps use tMap or tNormalized but it don't seems to be working for my issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you have any ideas how to solve this ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Dregop&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 14:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199749#M2524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T14:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Database Tables into Csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199750#M2525</link>
      <description>You need to convert rows to columns before to push the header to the final file. Here a good article about this subject 
&lt;A href="http://bekwam.blogspot.fr/2011/01/tutorial-turning-column-into-rows-with.html?m=1" target="_blank" rel="nofollow noopener noreferrer"&gt;http://bekwam.blogspot.fr/2011/01/tutorial-turning-column-into-rows-with.html?m=1&lt;/A&gt;
&lt;BR /&gt;Let me know if you need more help.</description>
      <pubDate>Fri, 19 May 2017 18:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199750#M2525</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-19T18:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Database Tables into Csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199751#M2526</link>
      <description>Thank you for your answer !&lt;BR /&gt;I found my solution in the comments of the article, the component I was looking for was tDernomalized.&lt;BR /&gt;&lt;BR /&gt;It's working now.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Dregop</description>
      <pubDate>Mon, 22 May 2017 14:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Oracle-Database-Tables-into-Csv-files/m-p/2199751#M2526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T14:56:16Z</dc:date>
    </item>
  </channel>
</rss>

