SQL> set autotrace
Usage: SET AUTOT[RACE] {OFF | ON | TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]
SQL>
以上可配置的值为:
1,set autotrace on exp
2,set autotrace on stat
3,set autotrace on exp stat
4,set autot off
5,set autotrace traceonly exp stat ---这个比较实用,不执行sql,显示sql执行计划与统计信息,便于优化sql
注:
{ }内的以|分隔的各部分每次取值只能取其中一部分,不能同时取,比如:针对以上
要么是,off,要么是on,或者是traceonly,不能这几种情况并存
[ ] 与[ ]的值可以并存