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



Joined: 30 Oct 2006
Posts: 14

Points: 187

Post Posted: Fri May 11, 2018 12:44 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
Hi,

I am loading data to oracle database using Oracle connector stage as my target.
The source column is varchar 20 and target oracle column is varchar2(10).
I have put a reject link from the target oracle connector stage and have checked the data truncation errors check box in the reject link. But the source records that have data greater than 10 characters are also getting loaded into the target table when actually they need to be rejected. I am using Insert mode to load the records.
Below is the job design
File->Transformer--------->OracleConnector-->RejectLinktoFile

Is any configuration missing in the oracle connector stage or is any environment variable needs to be set?
chulett

Premium Poster


since January 2006

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

Joined: 12 Nov 2002
Posts: 42765
Location: Denver, CO
Points: 220367

Post Posted: Fri May 11, 2018 6:33 am Reply with quote    Back to top    

Not that I am aware of, that should be all it takes as far as I know. I'd check with support, may be a known issue in your version with a patch available.

_________________
-craig

Research shows that 6 out of 7 dwarves aren't happy
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

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

Joined: 23 Oct 2002
Posts: 54398
Location: Sydney, Australia
Points: 295054

Post Posted: Fri May 11, 2018 10:10 pm Reply with quote    Back to top    

Can you try an INSERT statement with more than ten characters into this field using some other client, such as TOAD or Data Studio? If Oracle will accept (and, presumably, truncate) over-length strin ...

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
currently hiring: Canberra, Sydney and Melbourne (especially seeking good business analysts)
Rate this response:  
Not yet rated
Lavanya B
Participant



Joined: 30 Oct 2006
Posts: 14

Points: 187

Post Posted: Sun May 13, 2018 8:25 pm Reply with quote    Back to top    

I have tried inserting into Oracle table using TOAD, but I get an error saying that the number of characters exceeding the length.
But I am surprised why am I not getting this error while running the job in DataStage.
Rate this response:  
Not yet rated
vmcburney

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup

Joined: 23 Jan 2003
Posts: 3587
Location: Australia, Melbourne
Points: 28069

Post Posted: Mon May 14, 2018 11:16 am Reply with quote    Back to top    

I assume DataStage is truncating the data before it sends it to Oracle and thus avoiding the error. Do you see any truncate warning messages in the DataStage job log?

_________________
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn: Vincent McBurney LinkedIn
Rate this response:  
Not yet rated
Lavanya B
Participant



Joined: 30 Oct 2006
Posts: 14

Points: 187

Post Posted: Tue May 15, 2018 5:50 am Reply with quote    Back to top    

When I increase the length of the field ()i.e varchar 15) in the Input tab of Oracle connector, then the record gets rejected from Oracle connector stage.

Yes even I think DataStage is truncating the data before sending it to Oracle but I dont see any warning messages in the log.

Is there any patch/environment variable setting to supress this truncation?
Rate this response:  
Not yet rated
Lavanya B
Participant



Joined: 30 Oct 2006
Posts: 14

Points: 187

Post Posted: Mon May 21, 2018 10:31 pm Reply with quote    Back to top    

Hi,

Any patch/environment variable setting is available to suppress the truncation of data?
Please provide suggestions.
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