I need to execute the below procedure with 2 input param in Java. It should get executed successfully, there is no output param required.
Can anyone please help me with the code.
SQL Statement:
call pack_context.context_open(to_date('31-JULY-2016'),7);
Java Code:
CallableStatement callableStatement = null;
String proc = "{call pack_context.context_open(?,?)}";
callableStatement = con.prepareCall(proc);
callableStatement.setInt(2, 7);
callableStatement.setDate(parameterName, x);//Need Help