delayed insert

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
babbu9
Premium Member
Premium Member
Posts: 75
Joined: Tue Jun 01, 2004 9:44 am

delayed insert

Post by babbu9 »

Hi
I have question regarding SCD2. There are couple of delta records coming in from CDC. I have to expire (user defined update on the rec_exp_date column) the corresponding records first and insert new records (user defined insert) . My current job design is like this.


CDC--->Transformer------>Oracle update stage
|
V
Oracle insert stage

The problem is that the inserts are happening before the updates even after defining the link ordering in transformer. This is causing the records to be rejected due to primary key violation.I donot want to change the design much. Is there a condition that I can insert in the transformer so that the update can happen before the insert process.

Thanks
Babu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use a single Oracle stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply