如何取得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 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';
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/p/oracle_paralle_trace.html,如需转载请自行联系原作者