Oracle-SQL_TRACE使用,oraclesqltrace

來源:互聯網
上載者:User

Oracle-SQL_TRACE使用,oraclesqltrace
select sid,serial# from v$session where schemaname='SCOTT';


select p.spid
  from v$session s, v$process p
 where s.paddr = p.addr
   and s.sid = &1
   and s.serial# = &2;
   
exec dbms_monitor.session_trace_enable(sid,serial#,waits=>true,binds=>true);
exec dbms_monitor.session_trace_disable(sid,serial#); 


exec dbms_system.set_ev(sid,serial#,10046,12,'');

exec dbms_system.set_ev(sid,serial#,10046,0,'');


tkprof JAY_ora_4138.trc analyzing2.log sys=no aggregate=yes explain=scott/tiger

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.