Inserting into Oracle table from Server Rouitne

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
srekant
Premium Member
Premium Member
Posts: 85
Joined: Wed Jan 19, 2005 6:52 am
Location: Detroit

Inserting into Oracle table from Server Rouitne

Post by srekant »

Hi,

How can i insert into Orcale table from a server routine
Any help is appreciated
Sree
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi,

Pls search the forum for best result.

In your routine use the DSExecute API to run system commands. By running sqlplus with the appropriate information you can get the results.

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

Post by chulett »

Alternately, you might want to post why you think you need to do this. Many people here would be more than happy to suggest alternative approaches that may work out better in the long run for you.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Derive the value in your routine, return it to the calling job, and use a stage type (OCI or ODBC) to insert row into Oracle table.

You've spent all that money on GUI software so that you can write your own ETL code? I don't think so.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply