parallel_degree_policy
Whether Oracle picks the degree of parallelism automatically.
- 預設
MANUAL- Range
- MANUAL, LIMITED, AUTO, ADAPTIVE
- Restart needed
- 否
- Default checked on
- Oracle AI Database 26ai / 23ai
其作用
MANUAL uses table and hint DOP only. LIMITED applies automatic DOP to tables decorated with PARALLEL. AUTO adds automatic DOP for all statements, parallel statement queuing and in-memory parallel execution.
預設值
MANUAL. MANUAL (Oracle 23ai/26ai).
Check the current value
SHOW PARAMETER parallel_degree_policy SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable FROM v$parameter WHERE name = 'parallel_degree_policy';
Change it
ALTER SESSION SET parallel_degree_policy = AUTO; -- this session ALTER SYSTEM SET parallel_degree_policy = AUTO SCOPE=BOTH;
No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. A session can also change its own value with ALTER SESSION. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).
When to change it
Data warehouses where tuning DOP per table is impractical; test with parallel_min_time_threshold.
What can go wrong
AUTO can parallelize queries that ran serially before and change resource usage system-wide.
The closest setting on other engines
| 引擎 | 設定 | 預設 | Restart |
|---|---|---|---|
| Oracle |
parallel_degree_policy this page
|
MANUAL |
否 |
| PostgreSQL |
max_parallel_workers_per_gather
|
2 |
否 |
| SQL Server |
max degree of parallelism
|
0 |
否 |
Questions about parallel_degree_policy
What is the default value of parallel_degree_policy in Oracle?
MANUAL. MANUAL (Oracle 23ai/26ai).
Does changing parallel_degree_policy require a restart?
No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. A session can also change its own value with ALTER SESSION. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).
When should I change parallel_degree_policy?
Data warehouses where tuning DOP per table is impractical; test with parallel_min_time_threshold.
Back to all Oracle settings, or check the Oracle manual for every option.
Check parallel_degree_policy on your own server
SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.