Connect to Oracle Database and run sql script in routine

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
vinodhraj
Participant
Posts: 53
Joined: Mon Sep 12, 2005 6:51 am

Connect to Oracle Database and run sql script in routine

Post by vinodhraj »

Hi,

Is it possiable to connect to the oracle database and run squl script using routines available in datastage?

Advance Thanks.

Regards,
Vinodhraj
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You can executed OS commands, scripts, and programs by using the DSExecute API from a routine. Just execute sqlplus and pass it the script name. Stick to sqlplus via sqlnet and avoid ODBC because licensing is not supported for usage outside a transformation job.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply