set autotrace on 报cannot set autotrace 错误解决方法

Posted ls11736

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了set autotrace on 报cannot set autotrace 错误解决方法相关的知识,希望对你有一定的参考价值。

1、首先以sys用户登录,然后执行以下脚本:

  @?/sqlplus/admin/plustrce.sql  (创建plustrace角色并授权)

  @?/rdbms/admin/utlxplan.sql  (创建执行计划的表)

2、授予权限:

  grant all on plan_table to public; (也可以授权给某一个单独的用户)

  grant plustrace to public ;

 这个命令只能在sqlplus中运行,在plsql developer等工具中不能运行。

https://www.cnblogs.com/cangos/archive/2011/12/19/2293935.html

以上是关于set autotrace on 报cannot set autotrace 错误解决方法的主要内容,如果未能解决你的问题,请参考以下文章