Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Where find stored DOP (degree of parallelism) information for a given query (sql_id)

user503518Jun 16 2016 — edited Jun 16 2016

Hello everybody,

please i am looking where Oracle database stores information about used DOP (degree of parallelism) for given query (sql_id). I am interested in both v$ views and awr tables for the old queries. I am able get this information only as a part of the execution plan but i need use it in the SQL statement. In my example DOP is 40 and get this execution plan by executing dbms_xplan.display_cursor.

Any idea please?

Thank you,

Jakub.

|   3 |    PX SEND QC (RANDOM)          | :TQ10000               |     1 |            |          |       |       |  Q1,00 | P->S | QC (RAND)  |

|   4 |     SORT AGGREGATE              |                        |     1 |            |          |       |       |  Q1,00 | PCWP |            |

|   5 |      PX BLOCK ITERATOR          |                        | 65440 |     4   (0)| 00:00:01 |     1 |    45 |  Q1,00 | PCWC |            |

|*  6 |       TABLE ACCESS INMEMORY FULL| V_TABLE                | 65440 |     4   (0)| 00:00:01 |     1 |   180 |  Q1,00 | PCWP |            |

-----------------------------------------------------------------------------------------------------------------------------------------------

 

Predicate Information (identified by operation id):

---------------------------------------------------

 

   6 - inmemory(:Z>=:Z AND :Z<=:Z)

 

Note

-----

   - Degree of Parallelism is 40 because of hint

This post has been answered by AndrewSayer on Jun 16 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2016
Added on Jun 16 2016
8 comments
3,556 views