oracle之errors

liqilin0429發表於2011-08-29
出現的問題:
SQL> set autot trace on;
SP2-0618: 無法找到會話識別符號。啟用檢查 PLUSTRACE 角色
SP2-0611: 啟用 STATISTICS 報告時出錯
解決辦法:1 conn /as sysdba
SQL> @D:\app\QiLin\product\11.2.0\dbhome_1\sqlplus\admin\plustrce.sql
2 授權
SQL> grant plustrace to scott;
3 開啟
SQL> set autot on;
SQL> set timing on;
4  查詢
SQL> select * from emp;
已選擇14行。
已用時間:  00: 00: 00.03
執行計劃
----------------------------------------------------------
Plan hash value: 3956160932
--------------------------------------------------------------------------
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------
|   0 | SELECT STATEMENT  |      |    14 |  1218 |     3   (0)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| EMP  |    14 |  1218 |     3   (0)| 00:00:01 |
--------------------------------------------------------------------------
Note
-----
   - dynamic sampling used for this statement (level=2)

統計資訊
----------------------------------------------------------
          0  recursive calls
          0  db block gets
          8  consistent gets
          0  physical reads
          0  redo size
       1455  bytes sent via SQL*Net to client
        416  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
         14  rows processed
SQL>

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20976446/viewspace-706163/,如需轉載,請註明出處,否則將追究法律責任。

相關文章