Unable to insert records into oracle table

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
jagadam
Premium Member
Premium Member
Posts: 107
Joined: Wed Jul 01, 2009 4:55 pm
Location: Phili

Unable to insert records into oracle table

Post by jagadam »

Hi,

Below are the address records in source and Datastage is treating both the records as one though there is an space after HB. Is there any way DS can load both the records into target oracle table.

Code: Select all

610W Borwell HB 7556
610W Borwell HB  7556
Thanks in Advance.
NJ
rahcomp
Participant
Posts: 11
Joined: Wed Apr 18, 2012 2:13 pm

Re: Unable to insert records into oracle table

Post by rahcomp »

By default it should insert both the records.

- Make sure you are not setting unique constraint / key constraint on columns which might avoid duplicates

Have you used Sort + Aggregate in the job before load operation
Rahul
DS Lover
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

This question really can't be answered without more information from you. We have no idea what your job design looks like, what your source and target are, nor what your transformation / business rules are. For all we know you are trimming the string and thus making the two values equal...
-craig

"You can never have too many knives" -- Logan Nine Fingers
jagadam
Premium Member
Premium Member
Posts: 107
Joined: Wed Jul 01, 2009 4:55 pm
Location: Phili

Post by jagadam »

Yes we do have unique key contraint on the table. Doesn't datastage and oracle considers those records as two different records?
The job design is of SCD Type 1 and SCD stage is not considering as new record compared to already existing dimension record .let's say source has those 2 records and dimension has one of those record and the output of SCD stage is zero records. There are 3 keys which are unique on the table. Address is one of the unique key. Please let me know what needs to be done in order to recognize those records as 2 different records for SCD and ORACLE.

Thanks in Advance.
NJ
ethanr
Participant
Posts: 23
Joined: Fri Apr 11, 2008 9:37 am
Location: Delhi

Post by ethanr »

More information may help all. At high level consider Datatype (Char or varchar). Also do you perform any trim operations? Consider APT_STRING_PADCHAR value, is this affecting data in any way
Thanks, EthanR
Post Reply