How to monitor all the executed sql statements as a result of single transaction

徘徊边缘 提交于 2019-12-08 11:24:33

问题


I am in the process of upgrading our server from one version to other.So for this purpose i need the detail of all the queries executing in single transaction. I am enabling trace logs for that but that is a tedious process as it contains system related queries also.AWR reports seems to be not working. I am using oracle 10/11 g.Is there any other way in sql developer to achieve this goal.


回答1:


Tracing is the only way to see all statements executed. AWR works by sampling active sessions; this significantly cuts down on the overhead and data yet provides plenty of information for performance tuning. But this means that AWR will miss many queries that run very quickly.

To remove recursive queries you can run the trace file through tkprof with the option sys=no.



来源:https://stackoverflow.com/questions/27907905/how-to-monitor-all-the-executed-sql-statements-as-a-result-of-single-transaction

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!