• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
越简单越好
博客园    首页    新随笔    联系   管理    订阅  订阅

SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色 SP2-0611: 启用 STATISTICS 报告时出错

援引:

SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色 SP2-0611: 启用 STATISTICS 报告时出错

问题描述及解决方法:

SQL*Plus: Release 11.2.0.1.0 Production on 星期六 1月 10 14:31:44 2015

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

请输入用户名:  scott 输入口令:

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>  set autotrace on;

SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色

SP2-0611: 启用 STATISTICS 报告时出错 

SQL> conn /as sysdba 已连接。

SQL> @E:\app\test\product\11.2.0\dbhome_1\sqlplus\admin\plustrce.sql; /*这个是数据库安装路径下的sql文件*/

SQL> drop role plustrace;

角色已删除。

SQL> create role plustrace;

角色已创建。

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

授权成功。

SQL> grant select on v_$statname to plustrace;

授权成功。

SQL> grant select on v_$mystat to plustrace;

授权成功。

SQL> grant plustrace to dba with admin option;

授权成功。

 SQL> set echo off

SQL> conn scott/scott 已连接。

SQL> set autotrace on;

SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色

SP2-0611: 启用 STATISTICS 报告时出错

SQL> conn sys / as sysdba

输入口令: 已连接。

SQL> grant plustrace to public;

授权成功。

SQL> conn scott/scott 已连接。 SQL> set autotrace on;

----成功

posted @ 2017-01-06 15:25  越简单越好  阅读(794)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3