10046跟踪sql
作者:互联网
10046
alter session set events '10046 trace name context forever, level 12';
alter session set tracefile_identifier='TRUN';
truncate table SCOTT.TRUN;
alter session set events '10046 trace name context off';
select distinct(m.sid),p.pid,p.tracefile from v$mystat m,v$session s,v$process p where m.sid=s.sid and s.paddr=p.addr;
标签:set,TRUN,sql,tracefile,10046,session,跟踪,sid 来源: https://www.cnblogs.com/annez/p/15713925.html