Using Oracle Merge inside Oracle Enterprise stage

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
FDM
Participant
Posts: 1
Joined: Fri May 11, 2007 1:19 pm

Using Oracle Merge inside Oracle Enterprise stage

Post by FDM »

Can we actually use an Oracle "MERGE" sql inside an Oracle Enterprise stage? If not, what is the most efficient way to accomplish this function in Datastage? Ie, using sqlldr(Load), upsert, etc?

Thank you.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

Via "user defined SQL" you can execute any SQL that is legal in the database, provided that the correct number of columns is bound to the query.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

We use this a lot. A dummy link on the left side (either from the row generator or "select dummy from dual") which triggers the right side declared as "user defined update only" which contains the merge statement. The downside is you don't get to see number of rows processed.
Ray, is there any better solution to this?
Post Reply