ITPub博客

首页 > 数据库 > Oracle > Oracle用户开启trace

Oracle用户开启trace

原创 Oracle 作者:fengsongtao123 时间:2016-11-24 10:19:25 0 删除 编辑
问题:使用scott用户开启trace功能时,报错:
SQL> set autotrace traceonly
SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report

解决:
[oracle@oel6 ~]$ sqlplus / as sysdba
SQL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql
SQL> grant plustrace to scott;

重新登录scott用户
[oracle@oel6 ~]$ sqlplus scott/tiger
SQL> set autotrace traceonly

OK!

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

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

注册时间:2015-07-25

  • 博文量
    96
  • 访问量
    259433