oracle 打开trace,并分析trace
- - CSDN博客数据库推荐文章2、跟踪session事件. 作者:huzia 发表于2014-4-22 17:33:55 原文链接. 阅读:71 评论:0 查看评论.
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;