Enable ODP.Net logging

后端 未结 3 1680
终归单人心
终归单人心 2021-02-09 13:11

Can anyone help me with enabling ODP.Net logging on a Windows XP machine? I googled and found following link but it did not work for me.

http://download.oracle.com/docs/

3条回答
  •  失恋的感觉
    2021-02-09 14:00

    You can also use AOP-based approach - generate proxy using library like Castle Dynamic Proxy, intercept the calls you're interested in and log the arguments like SQL and parameters. This is more powerful method in my opinion although it can somehow affect performance. See this Gist for sample implementation: https://gist.github.com/Buthrakaur/b1124c08f8521f39f8fd

提交回复
热议问题