Table 8-2 shows how various types of SQL statements can be executed in parallel and indicates which methods of specifying parallelism take precedence: clause, hint, or underlying table or index declaration.
In Table 8-2, the following priority order applies:
The priority (1) specification overrides priority (2) and priority (3).
The priority (2) specification overrides priority (3).
Table 8-2 Parallelization Priority Order
Parallel Operation | PARALLEL Hint | PARALLEL Clause | ALTER SESSION | Parallel Declaration |
---|---|---|---|---|
Parallel query table scan (partitioned or nonpartitioned table) |
(Priority 1) |
(Priority 2) |
(Priority 3) of table |
|
Parallel query index range scan (partitioned index) |
(Priority 1) |
(Priority 2) |
(Priority 2) of index |
|
Parallel |
(Priority 1) |
(Priority 2) |
(Priority 3) of table being updated or deleted from |
|
|
(Priority 1) |
(Priority 2) |
(Priority 3) of table being inserted into |
|
|
Takes degree from |
Takes degree from |
Takes degree from |
Takes degree from |
|
(Priority 1) |
(Priority 2) of table being selected from |
||
|
Note: Hint in the |
(Priority 2) |
(Priority 1) |
|
|
Takes degree from |
Takes degree from |
Takes degree from |
Takes degree from |
|
(Priority 1) |
(Priority 2) of querying tables or partitioned indexes |
||
Parallel |
(Priority 2) |
(Priority 1) |
||
Parallel |
(Priority 2) |
(Priority 1) |
||
|
||||
Parallel |
(Priority 2) |
(Priority 1) |
||
Parallel |
(Priority 2) |
(Priority 1) |
Oracle Database SQL Language Reference for information about the PARALLEL
hint
Oracle Database SQL Language Reference for information about the PARALLEL
clause