DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
abc123



Group memberships:
Premium Members

Joined: 25 Aug 2006
Posts: 598

Points: 5344

Post Posted: Wed Jun 04, 2014 1:22 pm Reply with quote    Back to top    

DataStage® Release: 8x
Job Type: Parallel
OS: Unix
Some Oracle errors are interpreted as warnings.

I know that I can set the warning limit to 1 so that the first warning is treated as an error no matter what the warning is for.

Is there a way to promote specific warnings to fatal errors?
Damonsal



Group memberships:
Premium Members

Joined: 07 May 2014
Posts: 16

Points: 116

Post Posted: Wed Jun 04, 2014 2:05 pm Reply with quote    Back to top    

what is you requirement, why you want to do this way ?
Rate this response:  
Not yet rated
abc123



Group memberships:
Premium Members

Joined: 25 Aug 2006
Posts: 598

Points: 5344

Post Posted: Wed Jun 04, 2014 2:23 pm Reply with quote    Back to top    

For specific Oracle errors such as unique constraint errors, I would like it be promoted to a fatal error on the first one.
Rate this response:  
Not yet rated
abc123



Group memberships:
Premium Members

Joined: 25 Aug 2006
Posts: 598

Points: 5344

Post Posted: Thu Jun 05, 2014 7:19 am Reply with quote    Back to top    

Any thoughts any one? Is there anyway to may be capture the text of the warning and raise a fatal error from within a job?
Rate this response:  
Not yet rated
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 43034
Location: Denver, CO
Points: 222128

Post Posted: Thu Jun 05, 2014 7:24 am Reply with quote    Back to top    

Are you sure you need this only for certain warnings? I seem to recall an option in most Oracle stages to 'Treat warnings as Fatal', hence the question.

_________________
-craig

I've all my wisdom teeth, Two up top, two beneath
And yet I'll recognize my mouth says things that aren't so wise
Rate this response:  
Not yet rated
abc123



Group memberships:
Premium Members

Joined: 25 Aug 2006
Posts: 598

Points: 5344

Post Posted: Thu Jun 05, 2014 7:41 am Reply with quote    Back to top    

The Oracle stage has that option but that would be for all warnings. Is there any way to do this for specific warnings? Otherwise that's what I'll have to go with. Can I may be write a routine?
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours