如何从PL / SQL查询(使用dbms_output)返回值到JMeters View Results Tree?

时间:2018-12-06 12:46:24

标签: sql oracle jdbc plsql jmeter

我有PL / SQL查询:

declare
  l_result integer;
begin
  l_res := [Calling another procedure]
  dbms_output.put_line('res = '||l_res);
end;

当我尝试在JMeter中将其作为JDBC请求(查询类型:Callable Statement)执行时,它返回“ Response code is 200&OK”,但响应数据中没有任何响应,因为我正在输出至dbms。那么,如何将l_res作为“响应数据”返回,以便可以在“查看结果测试”中进行检查?

return l_res不起作用,因为“ PLS-00372:在过程中,RETURN语句不能包含表达式”。

对我来说,问题是:如何从匿名PLSQL块返回变量值作为响应数据。

JMeter JDBC Request interface (image)

0 个答案:

没有答案