@echo off
grep OracleConnection::Open() .\Trace\trace.log | wc -l > .\Trace\Trace.tmp
set /p openconn= <.\Trace\Trace.tmp
grep OracleConnection::Close() .\Trace\trace.log | wc -l > .\Trace\Trace.tmp
set /p closeconn= <.\Trace\Trace.tmp
grep OracleConnection::Dispose() .\Trace\trace.log | wc -l > .\Trace\Trace.tmp
set /p dispconn= <.\Trace\Trace.tmp
echo Opened connections: %openconn%, Closed connections: %closeconn%, Disposed connections: %dispconn%
where .\Trace\Trace.log - ODP.NET trace file
You can find ported Unix tools at: http://unxutils.sourceforge.net/
No comments:
Post a Comment