I am trying to insert some data into a table with PK defined.
The data contains dups, the insert of dups will result in ORA-00001.
How can I send the dups to reject file while continue insert the non-
dups?
Any help is appreciated.
You *should* be able to add another link to the transform that feeds the OCI stage and mark it as a Reject link. Any rows that cause the error will be redirected down the reject row where you can then do whatever you deem appropriate with them, including writing them to a reject file.
Unfortunately, this doesn't work in all versions of DataStage.
I'm using 5.1. I've tried the reject link (test for DBMSCODE="ORA-00001") approach before I posted my question. Didn't seem to work.
Thanks for the help so far guys.