I am trying to execute a block of PL/SQL code using JDBC request as below
set serveroutput on;
declare
..
BEGIN
DBMS_OUTPUT.ENABLE();
..
..
DBMS_OUTPUT.PUT_LINE(X);
END;
But I am getting error as ORA-00922: missing or invalid option
in the Response. If I remove the set serveroutput on
, the SQL block is executing successfully. But I am not getting any values in the Response.
I tried to run the exact same piece of SQL block in SQL Developer and it does show me the values expected.
How do I run this block of code and get the values to be populated in JMeter ?
DBMS_OUTPUT.GET_LINE(z,n);
. How do i now get the value from z? do i need to use put_line again? – Cairn