Oracle 查看sql开几个并行
SQL> select /*+ PARALLEL(8) */ count (1 ) from es_ins_rec;
Execution Plan
----------------------------------------------------------
Plan hash value: 3542243435
--------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Cost (%CPU)| Time | TQ |IN-OUT| PQ Distrib |
----------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 8834 (3)| 00:00:18 | | | |
| 1 | SORT AGGREGATE | | 1 | | | | | |
| 2 | PX COORDINATOR | | | | | | | |
| 3 | PX SEND QC (RANDOM) | :TQ10000 | 1 | | | Q1,00 | P->S | QC (RAND) |
| 4 | SORT AGGREGATE | | 1 | | | Q1,00 | PCWP | |
| 5 | PX BLOCK ITERATOR | | 83M| 8834 (3)| 00:00:18 | Q1,00 | PCWC | |
| 6 | INDEX FAST FULL SCAN| PK_ES_INS_REC | 83M| 8834 (3)| 00:00:18 | Q1,00 | PCWP | |
----------------------------------------------------------------------------------------------------------------
Note
-----
- Degree of Parallelism is 8 because of hint
SQL>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。