Oracle error messages relating to the rejected 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
dstgx08
Participant
Posts: 9
Joined: Fri Aug 01, 2008 8:42 am

Oracle error messages relating to the rejected records

Post by dstgx08 »

Hi,
I have to retrieve Oracle error messages relating to the rejected records in parallel job.

I know only this way:
in OCI Stage I can set Upsert as "Write mode" and selecting "Output rejected records" I can retrieve sqlcode associate to rejected rows.

If I use Load as write mode, How can I do the same thing?

Are there any other ways to retrieve Oracle error in parallel job?

thanks

George
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The Load method is executed outside of DataStage and that is why the single rejected rows and messages aren't visible the way they are with 'upsert'. I think that the error log files should be visible after the job run is finished and has errors, and that file can be read and interpreted.
dstgx08
Participant
Posts: 9
Joined: Fri Aug 01, 2008 8:42 am

Post by dstgx08 »

ArndW wrote:The Load method is executed outside of DataStage and that is why the single rejected rows and messages aren't visible the way they are with 'upsert'. I think that the error log files should be visible after the job run is finished and has errors, and that file can be read and interpreted.
thanks a lot for the response.
I focused on "LOAD" mode to be able to performe a truncate before insert besides retrieve Oracle error.

In "UPSERT" mode it's not possible performe a truncate before insert, so I have to find another way to truncate table before insert.

right?

thanks again
dstgx08
Participant
Posts: 9
Joined: Fri Aug 01, 2008 8:42 am

Post by dstgx08 »

ArndW wrote:The Load method is executed outside of DataStage and that is why the single rejected rows and messages aren't visible the way they are with 'upsert'. I think that the error log files should be visible after the job run is finished and has errors, and that file can be read and interpreted.
thanks a lot for the response.
I focused on "LOAD" mode to be able to performe a truncate before insert besides retrieve Oracle error.

In "UPSERT" mode it's not possible performe a truncate before insert, so I have to find another way to truncate table before insert.

right?

thanks again
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Why not do your truncate as part of the before-sql?
dstgx08
Participant
Posts: 9
Joined: Fri Aug 01, 2008 8:42 am

Post by dstgx08 »

ArndW wrote:Why not do your truncate as part of the before-sql? ...
Because there isn't before-sql part in stage OCI of parallel job
dstgx08
Participant
Posts: 9
Joined: Fri Aug 01, 2008 8:42 am

Post by dstgx08 »

ArndW wrote:Why not do your truncate as part of the before-sql? ...
Because there isn't before-sql part in stage OCI of parallel job
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

:lol: That's a pretty compelling argument, in my opinion!
sohasaid
Premium Member
Premium Member
Posts: 115
Joined: Tue May 20, 2008 3:02 am
Location: Cairo, Egypt

Post by sohasaid »

dstgx08 wrote: Because there isn't before-sql part in stage OCI of parallel job
I didn't work with OCI stage, but if there's a 'user-defined upsert' it can fix the problem by putting the 'truncate' statement instead if the insert statement and the 'insert' statement instead of the update one at the stage.
But you won't get the sqlloader advantages here with this suggestion.

Hope this could help,
Regards.
Post Reply