SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
来源:互联网 发布:java中空格怎么表示 编辑:程序博客网 时间:2024/06/06 15:50
C:\>sqlplus test/test@orcl
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 3月 12 10:34:08 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> set autot trace;
SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
SP2-0611: 启用 STATISTICS 报告时出错
C:\>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 3月 12 10:11:58 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @D:\oracle\product\10.2.0\db_1\sqlplus\admin\plustrce.sql
SQL>
SQL> drop role plustrace;
drop role plustrace
*
第 1 行出现错误:
ORA-01919: 角色 '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>
SQL> set echo off
SQL> grant plustrace to test;
授权成功。
SQL>
C:\>sqlplus test/test@orcl
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 3月 12 10:34:08 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> set autot trace
SQL> select * from test;
已选择102行。
执行计划
----------------------------------------------------------
Plan hash value: 4122059633
---------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 102 | 2448 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| TEST1 | 102 | 2448 | 3 (0)| 00:00:01 |
---------------------------------------------------------------------------
Note
-----
- dynamic sampling used for this statement
统计信息
----------------------------------------------------------
140 recursive calls
0 db block gets
42 consistent gets
1 physical reads
0 redo size
2566 bytes sent via SQL*Net to client
451 bytes received via SQL*Net from client
8 SQL*Net roundtrips to/from client
5 sorts (memory)
0 sorts (disk)
102 rows processed
SQL>
转自:http://www.cnblogs.com/rootq/archive/2009/03/12/1409398.html
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- SP2-0618:无法找到会话标识符。启用检查PLUSTRACE角色
- oracle+关于"SP2-0618:+无法找到会话标识符。启用检查+PLUSTRACE+角色"错误
- [Oracle] SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- oracle+关于"SP2-0618:+无法找到会话标识符。启用检查+PLUSTRACE+角色"错误
- oracle set autotrace SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色 SP2-0611: 启用 STATISTICS 报告时出错
- 无法找到会话标识符。启用检查 PLUSTRACE 角色
- 无法找到会话标识符。启用检查 PLUSTRACE 角色
- 启用:set autotrace traceonly 报错:SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色SP2-0611: 启用 STATISTICS 报告时出错
- sp2-0618:无法找到回话标示符。启用检查PLUSTRACE角色
- SP2-0618: 无法找到会话标识符
- 【转载】SP2-0618: 无法找到…
- PLUSTRACE角色
- Chapter 4. MATLAB语法基础
- Cocos2d-x的2.1.4版本新建项目
- 双数组trie
- 杂记 待整理
- 转载一篇文章 写的很好 关于北京地铁涨价的
- SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
- PHPCMSv9修改后台首页
- 【acm补习】miaomiao和wuwu的格子游戏
- Google Interview Preparation
- 设计模式之责任链(Chain of Responsibility)
- 代码覆盖率浅谈
- Eclipse使用技巧总结(三)
- 超级求爱程序--为我们的程序工作找乐子
- 【iOS】用Layer创建一个三维模型以及拖动