File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes jdbc logging? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc logging?" Watch "jdbc logging?" New topic

jdbc logging?

Kalpesh Soni
Ranch Hand

Joined: Jan 02, 2001
Posts: 312
This might be a simple thing but i cannot figure it out
I am using DriverManager.setLogStream/setLogWriter
and getting these kind of logs
JdbcOdbcDriver class loaded
registerDriver: driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.odbc.JdbcOdbcDriver@58adc0]
Oracle Jdbc tracing is not avaliable in a non-debug zip/jar file
registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@27e343]
DriverManager.getConnection("jdbc racle ci8:@BFE.INDIA.TAVANT.COM")
trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@7f3f5d]

But I am not able to see the actual queries fired
Is there any way I can see all queries ?
I agree. Here's the link:
subject: jdbc logging?
It's not a secret anymore!