Search notes:

Oracle: Parallel Statement Queuing

If parallel_degree_policy is set to auto (or also adaptive?) or a parallel hint is used, and an SQL statement is requested to be executed in parallel, but the sum of requested and already executing parallel servers exceeds the value of parallel_servers_target, the statement is queued until sufficient servers are available.
Statements are queued with the FIFO principle.
It is possible, however, to run a queued statement immediately with dbms_resource_manager.dequeue_parallel_statement.
In addition, it's possible to assign priorities to consumer groups (Package dbms_resource_manager, procedures create_plan_directive and update_plan_directive).
Queued statements are waiting for the resmgr:pq queued event.
Statements executed by users haveing the database resource manager directive parallel_statement_criticial set to bypass_queue bypass the statement queue.

TODO

Parameters

select
   name,
   value
from
   v$parameter
where
   name in (
       'parallel_degree_policy',
       'parallel_servers_target'
   );

Statement queues

With the Database Resource manager, each consumer group has its own statement queue and is assigned a share of the total amount of parallel_servers_target.

See also

parallel_degree_policy
select
   sql_id,
   sql_text
-- ‥
from
   v$sql_monitor
where
   status = 'QUEUED';
The no_statement_queuing and statement_queuing hint.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758206305, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/statement/execution/parallel/queuing(85): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51