I have a oracle stored proc that needs to be called from my Java program. I had used CallableStatement to pass parameters to the stored proc. I am
oracle stored proc
CallableStatement
Shouldn't you consider using batch?
conn.setAutoCommit(false); CallableStatement stmt = conn.prepareCall(sql); while(true) { stmt.setInt(1, value); stmt.addBatch(); } stmt.executeBatch() conn.commit();