Skip to Main Content
  • Questions
  • parallel_force_local=true with hint parallel in sql

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question.

Asked: March 13, 2025 - 7:33 am UTC

Last updated: March 20, 2025 - 2:49 am UTC

Version: 11.2.0.4

Viewed 100+ times

You Asked

In our production environment ,a 2 nodes 11.2.0.4 rac ,the parameter parallel_force_local=true is set.
one sql use hint parallel ie: SELECT /*+ PARALLEL(t1 8) */ .in sql execute plan we found Parallel Execution on 2 instance
Parallel Execution Details (DOP=8 , Servers Allocated=8)
Instances : 2

=========================================================
| Instance | Name | Type | Server# | Elapsed |
| | | | | Time(s) |
=========================================================
| 2 | PX Coordinator | QC | | 0.01 |
| 1 | p000 | Set 1 | 1 | 7.31 |
| 1 | p001 | Set 1 | 2 | 7.28 |
| 1 | p002 | Set 1 | 3 | 7.39 |
| 1 | p003 | Set 1 | 4 | 7.53 |
| 2 | p001 | Set 1 | 6 | 7.43 |
| 2 | p002 | Set 1 | 7 | 7.36 |
| 2 | p003 | Set 1 | 8 | 7.36 |
=========================================================

parallel_force_local=true is not useable?

and Connor said...

There were a number of issues way back in 11.2.0.4 with force local.

For example, if statement queueing was used, then it might choose to ignore the setting once the task reached the top of the queue etc.

Bottom line - if you're using software over a decade old and out of support...then you can hit challenges.

A potential workaround is use srvctl to create a single-instance service, and for your jobs that want to run in parallel, make them use that service.

More to Explore

Hints

Need more information on hints? Check out the complete hint descriptions