I am getting an ORA-01000 SQL exception. So I have some queries related to it.
Using batch processing will result in less overhead. See the following link for examples: http://www.tutorialspoint.com/jdbc/jdbc-batch-processing.htm