ITPub博客

首页 > 数据库 > Oracle > SP2-0618:Cannot find the Session Identifier.SP2-0611

SP2-0618:Cannot find the Session Identifier.SP2-0611

原创 Oracle 作者:raysuen 时间:2017-05-22 16:45:06 0 删除 编辑
[oracle@rman1 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.4.0 Production on Mon May 22 14:31:03 2017

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

SQL> conn scott/tiger
Connected.
SQL> set autot trace
SP2-0618: Cannot find the Session Identifier.  Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
SQL> conn / as sysdba
Connected.
SQL> grant plustrace to scott;
grant plustrace to scott
      *
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist


SQL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql

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


SQL> create role plustrace;

Role created.

SQL> 
SQL> grant select on v_$sesstat to plustrace;

Grant succeeded.

SQL> grant select on v_$statname to plustrace;

Grant succeeded.

SQL> grant select on v_$mystat to plustrace;

Grant succeeded.

SQL> grant plustrace to dba with admin option;

Grant succeeded.

SQL> 
SQL> set echo off
SQL> 

SQL> grant plustrace to scott;

Grant succeeded.

SQL> conn scott/tiger
Connected.
SQL> set autot trace

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

上一篇: DG RAC - 单点搭建
请登录后发表评论 登录
全部评论
擅长oracle,Linux。精通shell,python。

注册时间:2016-08-23

  • 博文量
    145
  • 访问量
    227102