诊断:ORA-01919: role ‘PLUSTRACE’ does not exist

如下错误

SQL> grant plustrace to scott;
grant plustrace to scott
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist

原因

Role 'PLUSTRACE' 不存在

解决办法

以SYS身份运行如下脚本

SQL> @?/sqlplus/admin/plustrce.sql

另外,一般情况下,为配合使用AUTOTRACE功能,常见于在某个将要被授予该角色的用户下执行下述脚本,如

SQL> conn scott/scott
Connected.
SQL> @?/rdbms/admin/utlxplan.sql
posted @ 2017-02-20 13:54  syksky  阅读(336)  评论(0编辑  收藏  举报