<?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: How to delete bulk data from Oracle DB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323195#M93068</link>
    <description>Hi,&lt;BR /&gt;Can i use tOracleRow inorder to perform the same?&lt;BR /&gt;I couldnt find any posts which explains so. Can anyone please help me on this?&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Manju</description>
    <pubDate>Mon, 23 Apr 2012 15:17:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-23T15:17:50Z</dc:date>
    <item>
      <title>How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323194#M93067</link>
      <description>Hi,&lt;BR /&gt;I need to run a job to insert yesterday's data to one table in Oracle and once that job is successful i need to delete old data from the same table. The data is huge around 400,000 for a day. What is the best way to delete the rows from DB quickly?&lt;BR /&gt;Many Many Thanks,&lt;BR /&gt;Manju</description>
      <pubDate>Mon, 23 Apr 2012 14:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323194#M93067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-23T14:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323195#M93068</link>
      <description>Hi,&lt;BR /&gt;Can i use tOracleRow inorder to perform the same?&lt;BR /&gt;I couldnt find any posts which explains so. Can anyone please help me on this?&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Manju</description>
      <pubDate>Mon, 23 Apr 2012 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323195#M93068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-23T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323196#M93069</link>
      <description>Hi Manju, &lt;BR /&gt;Yes, tOracleRow would be the component to use.&lt;BR /&gt;Assuming you are always deleting yesterday's data:&lt;BR /&gt;DELETE FROM myTable WHERE myDay = current_date - 1;&lt;BR /&gt;Use a variable in Talend to place the &lt;BR /&gt;Things that could make this quicker.  &lt;BR /&gt;1)    Have an index on myDay.    Big improvement.  &lt;BR /&gt;2)    Use a variable in Talend to place the actual date value instead of "current_date - 1".  Slight improvement.&lt;BR /&gt;&lt;BR /&gt;****BE CAREFUL : TRUNCATE IS NOT TRANSACTIONAL AND CANNOT BE ROLLED BACK*** &lt;BR /&gt;3)  If the table only contains yesterdays data, you could use TRUNCATE myTable.   Much faster than delete.&lt;BR /&gt;****BE CAREFUL : TRUNCATE IS NOT TRANSACTIONAL AND CANNOT BE ROLLED BACK***</description>
      <pubDate>Mon, 23 Apr 2012 22:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323196#M93069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-23T22:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323197#M93070</link>
      <description>Hi,&lt;BR /&gt;Thank you very much for your reply. &lt;BR /&gt;Can you please tell me what other components should i be using with tOracleRow?&lt;BR /&gt;Should the job look like this?&lt;BR /&gt;tOracleInput----&amp;gt;tOracleRow----&amp;gt;tOracleOutput &lt;BR /&gt;And i should be placing the query you mentioned in the tOracleRow settings right?&lt;BR /&gt;Can you please clarify my doubts?&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Manju</description>
      <pubDate>Tue, 24 Apr 2012 09:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323197#M93070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T09:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323198#M93071</link>
      <description>Don't delete the data from the source table until it has been successfully loaded into the target table.&lt;BR /&gt; -- on SubJobOK --&amp;gt; tOracleRow.&lt;BR /&gt;The delete statement goes in the query window of the component view for the tOracleRow tab, surrounded by quotes, and without the semi-colon.&lt;BR /&gt;"DELETE FROM myTable WHERE myDay = current_date - 1"&lt;BR /&gt;Thanks,&lt;BR /&gt;Ben</description>
      <pubDate>Tue, 24 Apr 2012 17:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323198#M93071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323199#M93072</link>
      <description>Hi Ben,&lt;BR /&gt;Many thanks for your reply.&lt;BR /&gt;When  I try this ,&lt;BR /&gt;"delete   from DTSET_AKAMAI_LOG " i works fine.&lt;BR /&gt;But when i include the current_date in the query , like this &lt;BR /&gt;"delete   from DTSET_AKAMAI_LOG where  REQUESTED_DATE =current_date  -1" it doesnt delete the rows.&lt;BR /&gt;The date format in DB is 25-APR-2012. Is that the reason? &lt;BR /&gt;Please advice me how to go about this.&lt;BR /&gt;Thanks,&lt;BR /&gt;Manju</description>
      <pubDate>Wed, 25 Apr 2012 10:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323199#M93072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323200#M93073</link>
      <description>Hi,
&lt;BR /&gt;Try using the below one it should work
&lt;BR /&gt;"delete from DTSET_AKAMAI_LOG where REQUESTED_DATE =to_char(current_date-1, 'dd-MON-yyyy')"
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Pavan
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;But when i include the current_date in the query , like this &lt;BR /&gt;"delete   from DTSET_AKAMAI_LOG where  REQUESTED_DATE =current_date  -1" it doesnt delete the rows.&lt;BR /&gt;The date format in DB is 25-APR-2012. Is that the reason?&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2012 10:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323200#M93073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T10:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323201#M93074</link>
      <description>Thanks for your reply. Could solve this by using the following :-&lt;BR /&gt;"delete   from DTSET_AKAMAI_LOG where  REQUESTED_DATE =to_date(sysdate,'dd-MM-yy')-7  "</description>
      <pubDate>Wed, 25 Apr 2012 11:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323201#M93074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T11:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete bulk data from Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323202#M93075</link>
      <description>Thank you Manju and tpk.&lt;BR /&gt;I understand why you used the to_date function (because current_date includes the time and the query would only have caught records loaded the previous day at that exact time), but switch to "days - 7"?&lt;BR /&gt;Also, for references, in Oracle you can select "from dual" to see what the expected result would be.  &lt;BR /&gt;example :  select to_date(sysdate,'dd-MM-yy')-7 from dual&lt;BR /&gt;This way you can see what the function returns and tweak it to match what you expect.</description>
      <pubDate>Wed, 25 Apr 2012 17:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-delete-bulk-data-from-Oracle-DB/m-p/2323202#M93075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T17:54:14Z</dc:date>
    </item>
  </channel>
</rss>

