How can I call Oracle stored procedures that ignore parameters?
Here’s what we use that works: CallableStatement cstmt = conn.prepareCall ( “Begin procName; END; “); Cstmt.execute (); Where procName is the name of a stored procedure Oracle. This is an Oracle SQL syntax that works with any Oracle DBMS. You can also use the following syntax: CallableStatement cstmt = conn.prepareCall ( “(call procName };”); Cstmt.execute (); This code, which conforms to the specification Java Extended SQL, will work with any DBMS, and not just Oracle.