I am using preparedStatement.executeBatch()
and addBatch()
in the code and would like to inspect the query that is generated when executeBatch
is finally called. I have used ojdbc_g.jar but couldn't see the batched query in the logs. Is there a way to see how the driver combines the queries and sends it across.
The logging.properties is :
.level=SEVERE oracle.jdbc.level=FINEST oracle.sql.level=FINEST oracle.jdbc.handlers=java.util.logging.ConsoleHandler,java.util.logging.FileHandler java.util.logging.ConsoleHandler.level=FINEST java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.level=FINEST java.util.logging.FileHandler.pattern=jdbc.log java.util.logging.FileHandler.count=1 java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter