Java saya agak berkarat, tetapi Anda harus dapat menginisialisasi variabel REF CURSOR Anda di blok PL/SQL:
String statement = "DECLARE\n" +
"l_cursor SYS_REFCURSOR;\n" +
"BEGIN\n" +
"your_procedure(?, l_cursor, ?);\n" +
"END;"
CallableStatement cs = yourConnection.prepareCall(statement);
// bind first and last parameter
cs.setString(1,"constant");
cs.registerOutParameter(2, OracleTypes.CURSOR);