Hi ,
I have a req for
For a customer C1 ,which is already present in the target table
and when the same customer C1 comes in with some change in attribute.
i need to
Update the existing C1 record (changing the EFF_DT and the EXP_DT) AND
Inserting a new row as C1 with new eff_dt and exp_dt.
Can we acheive this using the oracle connector PX?
Need to Update and insert at the same time
Moderators: chulett, rschirm, roy
-
prasanna2802
- Participant
- Posts: 1
- Joined: Fri Jun 11, 2010 4:00 pm
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard. Presumably the decision is made in your job logic. Best practice is to use two Connectors - one to handle the inserts and one to handle the updates. To avoid deadlocks, hold one or the other to a Data Set and move those records into the table in a subsequent job.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.