====== SQLPULS 에서 실행계획 보는 방법 ======
- sqlplus 실행
$ sqlplus userid/passwd
- plan table 생성
SQL> @?/admin/utlxplan.sql
- execution plan를 화면에 표시하도록 설정
SQL> set autot on
- plan를 보기 원하는 sql 실행
SQL> select * from member;
...
257 rows selected.
Execution Plan
----------------------------------------------------------
-----------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
-----------------------------------------------------------------
| 0 | SELECT STATEMENT | | 257 | 37265 | 5 (0)|
| 1 | TABLE ACCESS FULL| MEMBER | 257 | 37265 | 5 (0)|
-----------------------------------------------------------------
Note
-----
- 'PLAN_TABLE' is old version
Statistics
----------------------------------------------------------
813 recursive calls
0 db block gets
184 consistent gets
10 physical reads
72 redo size
43330 bytes sent via SQL*Net to client
587 bytes received via SQL*Net from client
19 SQL*Net roundtrips to/from client
5 sorts (memory)
0 sorts (disk)
257 rows processed