Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Display the sql statements with ojdbc14_g.jar
Hi,
I'd like to display the sql statements with ojdbc14_g.jar.
So I've followed the documentation and set an OracleLog.properties
file which is linked to my java program.
The problem is the trace generated is huge and I only need the SQL
requests wich are made with the arguments but I don't know how to
configure that.
Have you got a sample file which handle that ?
I've tried that :
oracle.jdbc.handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=CONFIG
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
oracle.level=INFO oracle.jdbc.driver.level=OFF oracle.jdbc.driver.OraclePreparedStatement.level=OFF oracle.jdbc.pool.level=OFF oracle.jdbc.util.level=OFF oracle.sql.level=INFO
But that doesn't display only the SQL and args. Have you got a solution for that ?
Regards.
75blured.
Received on Wed Nov 28 2007 - 12:44:13 CST