ITPub博客

首页 > 数据库 > Oracle > oracle中解决角色PLUSTRACE不存在

oracle中解决角色PLUSTRACE不存在

原创 Oracle 作者:fengsongtao123 时间:2017-02-23 13:37:44 0 删除 编辑
scott用户开启autotrace
SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report


create role plustrace;
grant select on v_$sesstat to plustrace;
grant select on v_$statname to plustrace;
grant select on v_$mystat to plustrace;
grant plustrace to dba with admin option;
grant plustrace to scott;

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

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

注册时间:2015-07-25

  • 博文量
    96
  • 访问量
    259430