跟踪 sql 的trace文件

exec dbms_monitor.session_trace_enable(session_id =>3007 , serial_num=> 1123, waits => true, binds => true);


exec dbms_monitor.session_trace_enable(session_id =>5741 , serial_num=> 2, waits => true, binds => true);


如果trace文件太大,要停掉trace的話,請執行:
exec dbms_monitor.session_trace_disable(session_id =>3007 , serial_num=> 1123);

exec dbms_monitor.session_trace_disable(session_id =>5741 , serial_num=> 2);

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23757700/viewspace-704699/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23757700/viewspace-704699/

你可能感兴趣的:(跟踪 sql 的trace文件)