Page 1 of 1

How to use dbMonitor

Posted: Fri 09 Sep 2011 21:40
by jayBishtawi
Hello all,

I have a Silverlight 4 project, EF4, using RIA Service and dotConnect for Oracle, I have downloaded the db Mointor, but I am not sure how to use it to trace the SQL generated.

Any one can help or point me to the right place please.

Posted: Mon 12 Sep 2011 09:17
by wgkwvl
You will have to activate the monitoring in code :

mon = new Devart.Data.Oracle.OracleMonitor();
mon.IsActive = true;


I also use it to output the monitored statements to logfile / output console at debug time :
mon.TraceEvent += new Devart.Common.MonitorEventHandlermon_TraceEvent);

You best parametrise this code, so you can switch it off in production code

Posted: Mon 12 Sep 2011 15:46
by Shalex
wgkwvl, thank you for posting.

jayBishtawi, please refer to http://www.devart.com/dotconnect/oracle ... nitor.html.