Search found 4 matches

by gnan_ram
Wed Dec 30, 2009 1:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Access Oracle Database Table from Server Routine
Replies: 11
Views: 11329

Try this : write your query in a sql file and execute as below.it will be easier: *Write query to a temporary sql file. cmd= "echo select * from dual > query.sql" Call DSExecute("UNIX",cmd,Output,Retval) *execute the sql file cmd="sqlplus -s DSGPS_BATCH/gpsd1@GPSD<query.sql...
by gnan_ram
Wed Dec 30, 2009 12:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Access Oracle Database Table from Server Routine
Replies: 11
Views: 11329

In the server routine,do following : cmd= "sqlplus -s userid/passwd@server Your query" Call DSExecute("UNIX",cmd,Output,Returnval) *** If you find it difficult to implement in routine,you can use similar logic in a shell script. Hi Nikhil, The above code is not working. It is th...
by gnan_ram
Wed Dec 30, 2009 11:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Access Oracle Database Table from Server Routine
Replies: 11
Views: 11329

Ugh, that's going to be an unwieldy solution, not to mention harder to code and maintain then you can possible imagine. You'd have to go "BCI" and leverage ODBC and then deal with the fact that the supplied ODBC drivers are not licensed for use outside of the GUI. Far better to stick with...
by gnan_ram
Wed Dec 30, 2009 11:05 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Access Oracle Database Table from Server Routine
Replies: 11
Views: 11329

Access Oracle Database Table from Server Routine

Hi All, I need to write a routine to accomplish the below task, 1. Get value from oracle table which is of single row table and store this value in stage variable. I had tried to implement the above scenario using below methods, 1. Read from oracle table and write into a sequential file, then use ex...