Issue in insert or update process

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
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Issue in insert or update process

Post by xch2005 »

Hi,

I am using DRS stage in the target and source is Sybase. The process used in the DRS is insert or update.
Update action (in DRS stage) : Insert new rows or update existing
Design: source -> trn -> target (it is just column to column mapping)

The key columns are selected in target and source but when I run the modified records is inserted in to the table and update does not happen.

The target table (in Oracle) does not have primary keys defined. Does this really need to have the keys defined?

Appericiate your help on this.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, you don't need a "primary key" - what you need is a unique constraint in order for this to work. That constraint could be from a primary key or a unique index and causes the insert to fail which is what triggers the update.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply