Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tracing sql queries

 
Vadik Mironov
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo, everybody. Does anobody know a way to trace sql queries that application sends to database (Oracle 8). I tried already OracleLog but it seems he write only driver's method's invocations . Like this:

0000000144 Wed Sep 14 14:26:36 GMT 2005 DRVR 1 OPER main Enabled logging (moduleMask 0x0fffffff, categoryMask 0x0fffffff)
0000000145 Wed Sep 14 14:26:36 GMT 2005 DRVR 0 DBG1 main doDefaultTypes
0000000146 Wed Sep 14 14:26:36 GMT 2005 DRVR 0 DBG1 main doDefinesFromTypes
0000000147 Wed Sep 14 14:26:36 GMT 2005 DRVR 0 DBG1 main Statement.getResultSet
0000000148 Wed Sep 14 14:26:36 GMT 2005 DRVR 0 DBG1 main doDefaultTypes
[/CODE]
Also, I tried to supply FileOutputStream object to DriverManager.setLogStream method, but it produces no output at all. I will appreciate any help on this subject. Thank you in advance.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at P6Spy. It performs database logging, and is free to use.
[ September 14, 2005: Message edited by: Ulf Dittmer ]
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can tell Oracle to dump all the SQL that it executes out to log files. I can't quite remember how to do this, but your DBA should be able to help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic