配置sqlplus的AUTOTRACE

以管理员身份运行cmd

cd D:\app\wujiahua\product\11.2.0\dbhome_1\RDBMS\ADMIN
sqlplus /nolog
connect system
manager

@utlxplan
create public synonym plan_table for plan_table -- 试具体情况 可以不执行(我的oracle11g执行就报错了)
grant all on plan_table to public

创建并授权PLUSTRACE角色

cd D:\app\wujiahua\product\11.2.0\dbhome_1\sqlplus\admin
conn sys as sysdba
manager
@plustrce
grant plustrace to public

AUTOTRACE 报告

set autotrace on


你可能感兴趣的:(配置sqlplus的AUTOTRACE)