Page 1 of 1

Connect to Oracle Database and run sql script in routine

Posted: Sun Apr 09, 2006 10:41 pm
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

Posted: Sun Apr 09, 2006 10:49 pm
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.