Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
OS 名称: Microsoft Windows XP Professional
OS 版本: 5.1.2600 Service Pack 3 Build 2600
step:
1. oradebug event 10046 trace name context forever,level 12
2. jdbc执行一个查询。(while true,不会结束运行)
3. select b.spid,a.sid,a.serial#,a.program from v$session a,v$process b where a.paddr=b.addr and a.username='BITIWYH';
-- spid.
4. oradebug setospid
5. oradebug event 10046 trace name context off
6. tkprof sid_ora_
查资料说,level 12是最全的了
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13165828/viewspace-607352/ ,如需转载,请注明出处,否则将追究法律责任。