ITPub博客

首页 > Linux操作系统 > Linux操作系统 > SP2-0611: Error enabling STATISTICS report

SP2-0611: Error enabling STATISTICS report

原创 Linux操作系统 作者:g644516804 时间:2012-10-11 16:23:47 0 删除 编辑
 
SQL> set autot on
SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
 
解决方法:
SQL> conn / as sysdba
Connected.
SQL> @$ORACLE_HOME/rdbms/admin/utlxplan.sql;
Table created.
 

SQL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql
sql>conn lerry/lerry
sql>set autot on

SQL> set autot on
SP2-0613: Unable to verify PLAN_TABLE format or existence
SP2-0611: Error enabling EXPLAIN report
是因为lerry用户下没有plan_table
1. 可以在lerry用户下执行@$ORACLE_HOME/rdbms/admin/utlxplan.sql;
 
2. 也可以在sys用户下
SQL>create public synonym plan_table for plan_table;
SQL>grant all on plan_table to public;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24849178/viewspace-746210/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-03-04

  • 博文量
    104
  • 访问量
    271252