zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

如何取得Oracle并行执行的trace

Oracle 如何 取得 Trace
2023-09-11 14:20:28 时间

如何取得Oracle并行执行的trace:

ALTER SESSION SET tracefile_identifier='10046_PROD';
ALTER SESSION SET max_dump_file_size = unlimited;
ALTER SESSION SET timed_statistics = true;
ALTER SESSION SET "_px_trace" = low , messaging;
ALTER SESSION SET statistics_level=all;
ALTER SESSION SET events '10046 trace name context forever, level 12';

执行SQL文

ALTER SESSION SET events '10046 trace name context off';