-
SQL> oradebug setmypid ;
-
-
SQL> oradebug event 10104 trace name context forever,level 1 ;
-
-
SQL> set autotrace traceonly ;
-
-
--以下语句为实际执行的语句,不能使用explain plan for
-
SQL> select ename,sal,comm,dname from scott.emp e ,scott.dept d where e.deptno=d.deptno ;
-
-
SQL> oradebug tracefile_name ;
-
C:\APP\ADMINISTRATOR\diag\rdbms\csk\csk\trace\csk_ora_6016.trc
-
-
SQL> host notepad C:\APP\ADMINISTRATOR\diag\rdbms\csk\csk\trace\csk_ora_6016.trc
-
-
--可以使用tkprof对上面的trc文件进行格式化:
-
[oracle@primary trace] tkprof csk_ora_6016.trc zsp.trc
-
[oracle@primary trace] gedit zsp.trc
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28878983/viewspace-2136869/
,如需转载,请注明出处,否则将追究法律责任。