I am facing issue while running a sql script using ant task sql.
In my sql I have a package and when I run the package from sql developer console, it gets compiled successfully but when i run using ant command, it gives below error:
Failed to execute: FUNCTION get_result (p_transaction_id IN NUMBER, p_result_type IN VARCHAR2) RETURN VARCHAR2
java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement
Try running ant with -v, that might give a clue as to exactly what the <sql> task is sending to the database. Also check your database logs, those should also tell you exactly what the database is seeing. Either of those might give a clue as to what went wrong.