1. 程式人生 > >ORACLE資料庫檢視執行計劃

ORACLE資料庫檢視執行計劃

TKPROF: Release 10.2.0.1.0 - Production on 星期三 5月 23 16:56:41 2012

Copyright (c)
1982, 2005, Oracle. All rights reserved.

Trace file: D:\ORACLE\PRODUCT\
10.2.0\DB_1\RDBMS\TRACE/wgods_ora_3940.trc
Sort options: default

********************************************************************************
count
= number of times OCI procedure was executed
cpu
= cpu time in seconds executing
elapsed
= elapsed time in seconds executing
disk
= number of physical reads of buffers from disk
query
= number of buffers gotten for consistent read
current
= number of buffers gotten in current mode (usually for update)
rows
= number of rows processed by the fetch or execute call
********************************************************************************

ALTER SESSION SET SQL_TRACE
= TRUE


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse
0 0.00 0.00 0 0 0 0
Execute
1 0.00 0.00 0 0 0 0
Fetch
0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total
1 0.00 0.00 0 0 0 0

Misses in library cache during parse:
0
Misses in library cache during execute:
1
Optimizer mode: CHOOSE
Parsing user id:
89 (ETL)
********************************************************************************

begin :id :
= sys.dbms_transaction.local_transaction_id; end;


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse
2 0.00 0.00 0 0 0 0
Execute
2 0.00 0.00 0 0 0 2
Fetch
0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total
4 0.00 0.00 0 0 0 2

Misses in library cache during parse:
0
Optimizer mode: CHOOSE
Parsing user id:
89 (ETL)
********************************************************************************

SELECT *
FROM
SCOTT.EMP


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse
2 0.00 0.00 0 0 0 0
Execute
1 0.00 0.00 0 0 0 0
Fetch
1 0.00 0.00 0 7 0 14
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total
4 0.00 0.00 0 7 0 14

Misses in library cache during parse:
1
Optimizer mode: CHOOSE
Parsing user id:
89 (ETL)

Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT MODE: CHOOSE
0 TABLE ACCESS MODE: ANALYZED (FULL) OF 'EMP' (TABLE)

********************************************************************************

ALTER SESSION SET SQL_TRACE
= FALSE


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse
1 0.00 0.00 0 0 0 0
Execute
1 0.00 0.00 0 0 0 0
Fetch
0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total
2 0.00 0.00 0 0 0 0

Misses in library cache during parse:
1
Optimizer mode: CHOOSE
Parsing user id:
89 (ETL)



********************************************************************************

OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS

call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse
5 0.00 0.00 0 0 0 0
Execute
5 0.00 0.00 0 0 0 2
Fetch
1 0.00 0.00 0 7 0 14
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total
11 0.00 0.00 0 7 0 16

Misses in library cache during parse:
2
Misses in library cache during execute:
1


OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse
0 0.00 0.00 0 0 0 0
Execute
0 0.00 0.00 0 0 0 0
Fetch
0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total
0 0.00 0.00 0 0 0 0

Misses in library cache during parse:
0

6 user SQL statements in session.
0 internal SQL statements in session.
6 SQL statements in session.
1 statement EXPLAINed in this session.
********************************************************************************
Trace file: D:\ORACLE\PRODUCT\
10.2.0\DB_1\RDBMS\TRACE/wgods_ora_3940.trc
Trace file compatibility:
10.01.00
Sort options: default

1 session in tracefile.
6 user SQL statements in trace file.
0 internal SQL statements in trace file.
6 SQL statements in trace file.
4 unique SQL statements in trace file.
1 SQL statements EXPLAINed using schema:
ETL.prof$plan_table
Default table was used.
Table was created.
Table was dropped.
58 lines in trace file.
0 elapsed seconds in trace file.