SP2-0613和SP2-0611错误
SQL> set autotrace traceonly
SP2-0613: 无法验证 PLAN_TABLE 格式或实体
SP2-0611: 启用EXPLAIN报告时出错
解决方法:
1. 以SYS用户登录
CONNECT / @ as SYSDBA ;
1. 创建PLAN_TABLE(如果未创建)
运行utlxplan.sql(ORACLE_HOME/rdbms/admin下)脚本;
2. 创建plustrace角色(如果未创建)
执行plustrce.sql(ORACLE_HOME/sqlplus/admin/plustrce.sql)脚本;
3. 将plustrace role赋给当前用户
grant plustrace to scott;或grant plustrace to public;