SP2-0618: 無法找到會話識別符號。啟用檢查 PLUSTRACE 角色
SP2-0618: 無法找到會話識別符號。啟用檢查 PLUSTRACE 角色
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>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/500314/viewspace-1063679/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- java基本無法-識別符號Java符號
- 識別符號符號
- Oracle autotrace 報 SP2-0618 PLUSTRACE role 問題解決Oracle
- python的識別符號Python符號
- 怎麼辦?用DolphinScheduler排程執行復雜的HiveSQL時無法正確識別符號HiveSQL符號
- 使用去中心化識別符號 (DID) 作為識別符號元系統中心化符號
- AppID 的英文全稱是 Application Identifier AppID(應用程式識別符號)GUID(全域性唯一識別符號)APPIDE符號GUI
- Java資料型別、識別符號Java資料型別符號
- 識別符號定義以及命名規則(駝峰命名法)符號
- C語言-識別符號命名C語言符號
- 識別符號與關鍵字符號
- 無法解析外部符號:AdjustTokenPrivileges和GetAstncKetState符號AST
- [Error Code: 904, SQL State: 42000] ORA-00904 : 識別符號無效ErrorSQL符號
- python:LEGB識別符號解析順序Python符號
- SCSS &父選擇器識別符號CSS符號
- URI(統一資源識別符號)符號
- go——識別符號的命名規範Go符號
- 字串切片識別符號是什麼字串符號
- JavaSE 關鍵字和識別符號Java符號
- 1413: C語言合法識別符號C語言符號
- 關鍵字、資料型別、識別符號資料型別符號
- 開啟symlink型別的檔案報錯:無法遵循符號連結,因為其型別已禁用型別符號
- JAVA基礎語法——識別符號、修飾符、關鍵字(個人整理總結)Java符號
- VS2017無法解析得外部符號符號
- JAVA-識別符號、變數、資料型別Java符號變數資料型別
- C++ 提示未宣告的識別符號C++符號
- js如何生成唯一識別符號UUIDJS符號UI
- C語言合法識別符號 hd 2024C語言符號
- java:識別符號 關鍵字 變數Java符號變數
- [C]有符號數和無符號數符號
- MySQL無法識別中文MySql
- 查詢 - 符號表符號
- C#程式碼識別符號命名規範C#符號
- 識別符號的命名規則和規範符號
- 2.4.2 Step 1: 指定例項識別符號 (SID)符號
- Java的識別符號與編碼規範Java符號
- 【ASM】ASM啟動無法找到spfile問題原因ASM
- PyCharm無法啟用PyCharm
- Java註釋,識別符號,資料型別,型別轉換Java符號資料型別