Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a stored procedure called test_proc in my oracle database. When I execute Script activity in my pipeline with the query "exec test_proc", it gives "Invalid SQL statement" error. PFB screenshots.
Any solutions for this?
To call a stored procedure in Oracle from Azure Data Factory (ADF) and resolve the "Invalid SQL statement" error, follow these steps:
EXEC
to call stored procedures. Instead, use the CALL
statement or use an anonymous PL/SQL block. Example:
CALL test_proc;
Or, if your procedure has parameters:
CALL test_proc(param1, param2);
BEGIN
test_proc;
END;