Error while validating worker count - Invalid worker Count


Error

When running the AD Online Patching (ADOP) utility in Oracle E-Business Suite (EBS) 12.2, the prepare phase may fail with the following error:


[UNEXPECTED] Invalid worker Count: 0 [UNEXPECTED] Error while validating worker count

Reason

This issue is typically caused by the database reaching its maximum number of processes during ADOP execution.

To verify this, run the following SQL query:


SELECT * FROM v$resource_limit WHERE RESOURCE_NAME IN
('processes', 'sessions', 'parallel_max_servers',
'parallel_min_servers');

Sample Output

RESOURCE_NAMECURRENT_UTILIZATIONMAX_UTILIZATIONINITIAL_ALLOCATIONLIMIT_VALUE
processes191200200200
sessions199243408408
parallel_max_servers0883600
parallel_min_servers088160

The high utilization of processes and sessions indicates that the system is running close to its limits, leading to failures in ADOP execution.

Solution

To resolve this issue, follow these steps in a development environment before applying changes to production:

Step 1: Increase Database Initialization Parameters

Modify the init.ora file to increase the following database parameters 

  • processes
  • sessions
  • parallel_max_servers / parallel_min_servers
  • open_cursors

Ensure that the new values accommodate system workload while maintaining stability.

Step 2: Restart the Database

Once the parameters are updated, restart the database for changes to take effect.


ALTER SYSTEM SET processes = <new_value> SCOPE=SPFILE; ALTER SYSTEM SET sessions = <new_value> SCOPE=SPFILE; ALTER SYSTEM SET parallel_max_servers = <new_value> SCOPE=SPFILE; ALTER SYSTEM SET open_cursors = <new_value> SCOPE=SPFILE; SHUTDOWN IMMEDIATE; STARTUP;

Step 3: Retest ADOP Execution

Run the ADOP prepare phase again to confirm that the process runs successfully without errors:


adop phase=prepare

If the error persists, re-evaluate the database resource allocation and increase limits accordingly.






Please do like and subscribe to my youtube channel: https://www.youtube.com/@foalabs If you like this post please follow,share and comment