Oracle connector UpSert rejects some records

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
gaurang033
Participant
Posts: 26
Joined: Mon Oct 17, 2011 6:00 am

Oracle connector UpSert rejects some records

Post by gaurang033 »

Hi guys,

I am using ORACLE Connector stage.

For upsert If i use Insert then update it works fine, however as my files has updates more then insert it takes too much time.

So i Changed it to Update then insert. Now the problem is when it fails to update the rows rather then inserting it sends it to reject link.

Any idea on why ???
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Check what is the sql reject code & depending on that you can if you have any constraints on the table .
Nag
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are more reasons to fail an update than the row does not exist. It is only row not existing that will trigger an insert.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Post by jreddy »

Are you able to use a CDC change instead to determine if its a 'insert' or 'update' and then direct them to the appropriate target oracle stage ?
gaurang033
Participant
Posts: 26
Joined: Mon Oct 17, 2011 6:00 am

Post by gaurang033 »

To nagarjuna
It rejects with the error text as "Row not updated" with error code "0" which says successful completion.

To jreddy
Before this load job i have Transformer job where i m taking CDC, finding which are update and insert and then merging them.

The thing is my insert then update works fine, it updates all the row which are already exist.

But update then insert rejects all the new rows rather then inserting it.

For me oracle connector stage is behaving in a weird manner. Any solution where all these rows are get inserted.
Post Reply