SP2-0618、SP2-0611 PLUSTRCE授权错误
2014-05-19 22:05
302 查看
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enable
SP2-0611: Error enabling STATISTICS report
非sys用户使用autotrace来获得执行计划报如下错误
SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
第一反应是授予用用户plustrace角色
SQL> conn / as sysdba
Connected.
SQL> grant plustrace to oe;
grant plustrace to oe
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
报角色不存在错误
plustrace角色在数据库创建时并不会创建
这个角色可通过运行下面的sql来创建
$@?/sqlplus/admin/plustrce.sql
SQL> drop role plustrace;
Role dropped.
SQL> create role plustrace;
Role created.
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> set echo off
授予用户plustrace角色
SQL> grant plustrace to oe;
Grant succeeded.
启用oe用户autotrace
SQL>conn oe/oe
SQL> set autotrace on
至此问题解决
SP2-0611: Error enabling STATISTICS report
非sys用户使用autotrace来获得执行计划报如下错误
SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
第一反应是授予用用户plustrace角色
SQL> conn / as sysdba
Connected.
SQL> grant plustrace to oe;
grant plustrace to oe
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
报角色不存在错误
plustrace角色在数据库创建时并不会创建
这个角色可通过运行下面的sql来创建
$@?/sqlplus/admin/plustrce.sql
SQL> drop role plustrace;
Role dropped.
SQL> create role plustrace;
Role created.
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> set echo off
授予用户plustrace角色
SQL> grant plustrace to oe;
Grant succeeded.
启用oe用户autotrace
SQL>conn oe/oe
SQL> set autotrace on
至此问题解决
相关文章推荐
- SP2-0618和_SP2-0611错误处理 plustrce权限问题
- SP2-0618 SP2-0611 ORA-01919 开执行计划错误(oracle12c)
- SP2-0618和_SP2-0611错误处理(转)
- Oracle 10g Auto Trace安装及SP2-0618和_SP2-0611错误处理
- SP2-0618和_SP2-0611错误处理
- set autotrace 时SP2-0618和_SP2-0611错误处理
- SP2-0618和_SP2-0611错误处理
- SP2-0618和_SP2-0611错误处理
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色 SP2-0611: 启用 STATISTICS 报告时出错
- Oracle设置AUTOTRACE时出现SP2-0611错误
- SP2-0613和SP2-0611错误
- SP2-0611 and SP2-0618报错解决
- SP2-0618:SP2-0611 Check PLUSTRACE role is enabled
- 启用:set autotrace traceonly 报错:SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色SP2-0611: 启用 STATISTICS 报告时出错
- 设置AUTOTRACE时出现SP2-0611错误
- sql*plus中SP2-0618和SP2-0611的解决方法
- oracle+关于"SP2-0618:+无法找到会话标识符。启用检查+PLUSTRACE+角色"错误
- 【ORACLE错误】SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled