Oracle Parallel Query Option FAQ
$Date: 13-Dec-1996 $
$Revision: 1.0 $
$Author: Frank Naudé $
Topics
Back to Oracle FAQ Index
What is the Oracle Parallel Query Option?
The Oracle Parallel Query Option (PQO) allows one to parallise certain
SQL statements so it can run on different processors on a multi-processor box.
Typical operations that can be run in parallel:
full table scans, sorts, sub-queries, data loading etc.
This option is mainly used for performance reasons and is commonly seen in
Decision Support and Data Warehousing applications.
Back to top of file
How does one invoke the Parallel Query Option?
After setting the INIT.ORA parameters necessary for PQO to work, do the following:
- ALTER your table (or index) and indicating that it is a parallel table
ALTER TABLE TAB_XXX PARALLEL (DEGREE 7);
putting hints in your SQL statement to indicate that it should be executed in parallel
SELECT --+ PARALLEL(table_alias, degree, nodes) * FROM table ...
Back to top of file
How does one disable the Parallel Query Option?
You can also take out the INIT.ORA parameters that allow PQO to work.
Back to top of file
What parameters can be set to control the Query Option?
The following INIT.ORA parameters can be set to control Parallel Query execution:
- PARALLEL_MIN_SERVERS
- PARALLEL_MAX_SERVERS
- etc.
Back to top of file
How does one monitor Parallel Query Execution?
Prior to Oracle 8i:
select * from sys.v_$pq_sysstat;
Oracle 8i onwards:
select * from v_$pq_sysstat;
select * from v_$px_process;
select * from v_$px_sesstat;
select * from v_$px_process_sysstat;
Back to top of file