- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
3#
发表于 2012-5-2 18:12:16
ODM TEST:
SQL> select count(*) from small;
COUNT(*)
----------
72772
SQL> set autotrace traceonly;
SQL> set timing on;
SQL> select * from small;
72772 rows selected.
Elapsed: 00:00:01.30
Execution Plan
----------------------------------------------------------
Plan hash value: 2557977142
---------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 84312 | 16M| 284 (1)| 00:00:04 |
| 1 | TABLE ACCESS FULL| SMALL | 84312 | 16M| 284 (1)| 00:00:04 |
---------------------------------------------------------------------------
Note
-----
- dynamic sampling used for this statement (level=2)
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
5815 consistent gets
0 physical reads
0 redo size
8329374 bytes sent via SQL*Net to client
53884 bytes received via SQL*Net from client
4853 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
72772 rows processed
SQL> select /*+ parallel */ * from small;
72772 rows selected.
Elapsed: 00:00:02.63
Execution Plan
----------------------------------------------------------
Plan hash value: 3363491925
--------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | TQ |IN-OUT| PQ Distrib |
--------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 84312 | 16M| 39 (0)| 00:00:01 | | | |
| 1 | PX COORDINATOR | | | | | | | | |
| 2 | PX SEND QC (RANDOM)| :TQ10000 | 84312 | 16M| 39 (0)| 00:00:01 | Q1,00 | P->S | QC (RAND) |
| 3 | PX BLOCK ITERATOR | | 84312 | 16M| 39 (0)| 00:00:01 | Q1,00 | PCWC | |
| 4 | TABLE ACCESS FULL| SMALL | 84312 | 16M| 39 (0)| 00:00:01 | Q1,00 | PCWP | |
--------------------------------------------------------------------------------------------------------------
Note
-----
- dynamic sampling used for this statement (level=2)
- automatic DOP: skipped because of IO calibrate statistics are missing
Statistics
----------------------------------------------------------
98 recursive calls
0 db block gets
1685 consistent gets
0 physical reads
0 redo size
3793382 bytes sent via SQL*Net to client
53884 bytes received via SQL*Net from client
4853 SQL*Net roundtrips to/from client
2 sorts (memory)
0 sorts (disk)
72772 rows processed |
|