Incremental Table Transfer....

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
devaraj4u
Participant
Posts: 32
Joined: Mon Nov 11, 2002 12:32 am
Location: Schaumburg,Chicago

Incremental Table Transfer....

Post by devaraj4u »

Hi All,

I designed Job using DataStage to do ETL from Relational Oracle schema to Star Schema.I finished creating jobs it is working fine.I want to do incremenal backup of the tables.I hope u can understand what it means.ie I want first time Insertion (Update Action of ODBC Stage) 2nd time onwards i want do (Insert New or Update existing rows OF odbc Stage).how can i do this.Can any one please help me.

Eg

Source Oracle Table (A) ---> ETL ---> Target Oracle Table (TA)

when I run the job first time it needs to insert rows. when i m suppose running the job for 2nd time or nth time it needs to do (Insert New or Update Existing Rows Update ACtion of ODBC Stage).

So Please give me solution for this problem.

Note:it is very urgent , SO please Please any one of you help me.

Thanks & Regards,
K.S.Rajan.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why is everything you post urgent or very urgent, while nobody else's posts are? Usually on this forum you get one or two good responses within 24 hours (and that delay's only because most of the world does not live in your time zone). Please don't push so hard. If it's REALLY genuinely urgent, hire an expert consultant's time.

There are several strategies for incremental transfers, some of which depend on your being able to identify the changed rows.

Firstly, you can do what you propose (use "Insert New Rows or Update Existing Rows" in your target-feeding stage).
Another approach is to pre-load the primary keys of the target table into a hashed file, and Insert or Update on separate links into the target table.
If the incoming records are timestamped with the most recent change, you can SELECT these based on the change time being more recent than the previous run of your DataStage job.
There are other solutions, these should get you thinking.


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
devaraj4u
Participant
Posts: 32
Joined: Mon Nov 11, 2002 12:32 am
Location: Schaumburg,Chicago

Post by devaraj4u »

Dear Ray,

I am really Sorry Ray.I admit my mistake.I know that in this forum people are giving solutions before 24 hrs for the posted questions.

Here after i don't do that way.

Thanks & Regards,
K.S.RAJAN.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's OK, but please understand that it had to be said. If people contributing to this Forum think they're being pushed, they may be less willing to contribute.
jinmina
Participant
Posts: 3
Joined: Mon Mar 10, 2003 3:34 pm

Post by jinmina »

If source db is Oracle 9iR2, you may subscribe CDC.
In addition, I'm sure other RDBMS vendors provide the similar
CDC functionality.
Why don't you explore CDC options?
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

I'm not familiar with that acronym, although I'm pretty sure you're not talking about the Canada Dairy Corporation. Could you give a brief explanation of what CDC is.


Vincent McBurney
Data Integration Services
www.intramatix.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

CDC refers in this case to "Change Data Capture" (poor English, should really be "Changed Data Capture"), in which the rows that have changed since a given point in time can be identified by the database server. Notice now recent the release of Oracle to which Mina refers. CDC has been around in a number of guises for some time, but at considerable expense (whether money, disk space or performance).
Post Reply