Hi I would like to call an oracle stored multiple times, passing different parameters.
It seems only the first call is successful.
Any idea what is the correct syntax ?
begin
storedproc1(param1, parm2);
storedproc1(param3, parm4);
end;
I have also tried
FME_SQL_DELIMITER /
begin
storedproc1(param1, parm2);
storedproc1(param3, parm4);
end;
/
Best answer by david_r
sunsilk11 wrote:
No error. Simply the first call works. The rest doesn't.
If I create multiple (12) SQLExecutor and make one call in each, all work.
This implies an issue in the syntax when having multiple calls. Could it be that I need a delay somewhere?
You could always try the following, to see if it makes a difference:
FME_SQL_DELIMITER /
begin
storedproc1(param1, parm2);end;
/
begin
storedproc1(param3, parm4);end;
/
But I would recommend that you try start by looking into what's happening on the database server. In principle, FME does nothing more than splitting up the statements according to the FME_SQL_DELIMITER and sending each block to the database as-is. So my first hunch would be to start looking there.
No error. Simply the first call works. The rest doesn't.
If I create multiple (12) SQLExecutor and make one call in each, all work.
This implies an issue in the syntax when having multiple calls. Could it be that I need a delay somewhere?
You could always try the following, to see if it makes a difference:
FME_SQL_DELIMITER /
begin
storedproc1(param1, parm2);end;
/
begin
storedproc1(param3, parm4);end;
/
But I would recommend that you try start by looking into what's happening on the database server. In principle, FME does nothing more than splitting up the statements according to the FME_SQL_DELIMITER and sending each block to the database as-is. So my first hunch would be to start looking there.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.