1
Oracle Parallel SQL
(Part 2)
Extracted from the book “Oracle Performance
Survival Guide” by Guy Harrison
Parallel SQL allows a SQL statement to be processed by multiple threads or processes simultaneously.
Today’s widespread usage of dual and quad core processors means that even the humblest of modern computers
running an Oracle database will contain more than one CPU. While desktop and laptop computers might have only a
single disk device, database server systems typically have database files spread – striped – across multiple
independent disk devices. Without parallel technology – when an SQL statement is processed in serial – a session
can only make use of one of these CPUs or disk devices at a time. Parallel processing can improve the performance
of suitable SQL statements to a degree which is often not possible by any other method. Parallel processing is
available in Oracle Enterprise Edition only.
This is the second of a three part series in which we’ll look at how Oracle can parallelize SQL statements and how
you can use this facility to improve the performance of individual SQLs or the application as a whole. In
the first
installment, we looked at Oracle parallel processing architecture and configuration. In this installment, we’ll look at
how to monitor and measure parallel query activity.
Parallel explain plans ..................................................................................................................................................... 2
Tracing ........................................................................................................................................................................... 4
The V$PQ_TQSTAT view .............................................................................................................................................. 5
Monitoring the parallel Execution Queue ....................................................................................................................... 9
Other statistics ............................................................................................................................................................. 11
PQO Monitoring in Toad .............................................................................................................................................. 12
Summary ...................................................................................................................................................................... 13
评论0