autotrace是SQL*PLUS中的一个工具,可以显示所执行查询的解释计划(explain plan)以及所用的资源。
(如果是其它版本的话可能要先执行/rdbms/admin/utlxplan.sql;再create public synonym plan_table for plan_table;)
grant all on plan_table to public;
运行sqlplus/admin/plustrace.sql;内容如下:































再执行:
grant plustrace to public;
set autotrace off;
set autotrace on explain;
set autotrace on statistics;
set autotrace on;