Page 1 of 1

call database after cdc stage

Posted: Fri Nov 17, 2017 2:42 am
by and
hi all

i have cdc stage in my job and after job will be invoked i need to call some sql statement in database ( oracle ) and pass/get data from

1 cdc -> 2 call db -> 3 process some logic -> 4 call target

i'm interested in 2 step
how to implement 2 step for calling database
is it routine ? with oci call ?


thanks

Posted: Fri Nov 17, 2017 5:45 am
by chulett
"2 step"?

Posted: Sat Nov 18, 2017 12:17 am
by and
hi
yes

1 cdc -> 2 call db -> 3 process some logic -> 4 call target

i need call db with data from cdc stage and return some data from then

Posted: Mon Nov 20, 2017 1:19 pm
by chulett
Well... just repeating everything doesn't help all that much but if "2 step" means you need help with Step #2 you'll need two jobs for that AFAIK. Unless something has changed in the architecture since last I used the product, a connector can be either a source OR a target but not both. So, 1 and 2 would need to be one job and then 2 again to "return some data" along with 3 and 4 in another job.

If that's not feasible in your case, we'd need specifics as to the "why not" of it in order to help, I would imagine.

Posted: Tue Nov 21, 2017 3:06 am
by ray.wurlod
If step 2 were a call to a stored procedure that returned a value, then you might be able to implement it all in the one DataStage job.