delete a oracle table at regular interval of 7 days

One Star

delete a oracle table at regular interval of 7 days

i would like to delete a oracle table at regular interval of 7 days!! how do i do it without manually running the job....
Four Stars

Re: delete a oracle table at regular interval of 7 days

Hi Sailesh,
create a simple job with following flow
tDBConnection-->tDBRow 
Write your delete statement in tDBRow component
export the job and schedule it.
Vaibhav
Highlighted
Seventeen Stars

Re: delete a oracle table at regular interval of 7 days

At first you have to figure out how to select the records to delete. In oracle a DATE typed value is actually an integer day and the numbers right to the comma are the time. You can therefore select the data to delete with a simply subtraction like this:
delete from ORDERS where ORDER_DATE > (sysdate - 7)

This statement can by run within a tOracleRow component and if you schedule this job every day you will get a kind of house keeping of the data for 7 days.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog