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

猜你喜欢

转载自www.cnblogs.com/ls11736/p/9250535.html