跟蹤 sql 的trace檔案

yhj20041128001發表於2011-08-11

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章