Batch Select Query From JDBC to Oracle DB.
RRAApr 24 2011 — edited Apr 25 2011Hi all,
I ve JSF Application & performing a query on large oracle table. For performance issue, i want to do batch query & based on coming ResultSet, I need to do some operations.
When I am calling the int[] selectCounts = pst.executeBatch() statement, the java.sql.BatchUpdateException: invalid batch command
error is coming.
Can anyone direct me as how to execute batch queries from java to oracle db, with example.
I have oracle 9i db.
Thanks.