oracle 打开trace,并分析trace
SQL> oradebug event 10046 trace name context forever,level 8 ORA-00072: process "Unix process pid: 1564906, image: oracle@db02 (P007)" is not active SQL> oradebug setospid 2703564 Oracle pid: 452, Unix process pid: 2703564, image: oracle@db02 SQL> oradebug event 10046 trace name context forever,level 8 Statement processed. SQL> oradebug tracefile_name /u01/PRODDB/admin/diag/rdbms/prod/PROD2/trace/PROD2_ora_2703564.trc SQL> oradebug event 10046 trace name context forever,level 12 Statement processed.
1、打开10046事件
2、跟踪session事件
3、找到文件名称字。
4、关闭事件。
oradebug event 10046 trace name context off;