Hello,
I'm trying to invoke a function from the jdbc input plugin.
I've read this
But I get the following error
[2025-03-07T14:43:00,004][WARN ][logstash.inputs.jdbc ][main][335bb609b009b4900e39c184c3e0c418f819a629827a54ef285b30935a6cbbf6] Exception when executing JDBC query {:exception=>Sequel::DatabaseError, :message=>"Java::JavaSql::SQLException: ORA-29478: Implicit result cannot be returned through this statement.\nORA-06512: at \"SYS.DBMS_SQL\", line 2877\nORA-06512: at \"SYS.DBMS_SQL\", line 2871\nORA-06512: at \"APPTEST.SPGETDATAFN\", line 7\n", :cause=>"#<Java::JavaSql::SQLException: ORA-29478: Implicit result cannot be returned through this statement.\nORA-06512: at \"SYS.DBMS_SQL\", line 2877\nORA-06512: at \"SYS.DBMS_SQL\", line 2871\nORA-06512: at \"APPTEST.SPGETDATAFN\", line 7\n>"}
My function is defined like this
create or replace function spGetDatafn
return sys_refcursor
is
rc sys_refcursor;
begin
open rc for select * from billing;
dbms_sql.return_result(rc);
end;
/
and using this function code
create or replace function spGetDatafn
return sys_refcursor
is
rc sys_refcursor;
begin
open rc for select * from billing;
return rc;
end;
/
I get the following error
[2025-03-07T14:59:28,500][WARN ][logstash.inputs.jdbc ][main][335bb609b009b4900e39c184c3e0c418f819a629827a54ef285b30935a6cbbf6] Exception when executing JDBC query {:exception=>Sequel::DatabaseError, :message=>"Java::OrgLogstash::MissingConverterException: Missing Converter handling for full class name=oracle.jdbc.driver.ForwardOnlyResultSet, simple name=ForwardOnlyResultSet", :cause=>"#<Java::OrgLogstash::MissingConverterException: Missing Converter handling for full class name=oracle.jdbc.driver.ForwardOnlyResultSet, simple name=ForwardOnlyResultSet>"}
Has anyone suceeded with this? @ Wolfram_Haussig @raj.teaser
Thank you