More Related Content
Similar to はじめてのSQLチューニング(oracle) (20)
はじめてのSQLチューニング(oracle)
- 7. HelloWorld 実行計画
SQL> set autotrace on
SQL> select * from TBL2 where col1 = 10000;
COL1 COL2
---------- -------------------------------------------------------------------------------10000
10000AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAA
実行計画
---------------------------------------------------------Plan hash value: 1207070705
-------------------------------------------------------------------------------------------| Id | Operation
| Name
| Rows | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------------------| 0 | SELECT STATEMENT
|
| 1 | 65 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| TBL2
| 1 | 65 | 3 (0)| 00:00:01 |
|* 2 | INDEX UNIQUE SCAN
| PK_TBL2_COL1 | 1 |
| 2 (0)| 00:00:01 |
--------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - access("COL1"=10000)
http://www.oracle.com/technetwork/jp/database/articles/shibacho/dba05-1598286-ja.html