Getting OSR (12021) Cannot Obtain New Connection Error When Attempting Almost Any Activity on the Console.

(Doc ID 2289608.1)

Last updated on JULY 24, 2017

Applies to:

Oracle Service Registry - Version 11.1.1.2.0 and later
Information in this document applies to any platform.

Symptoms

When clicking the button "add replication" an error occurs:

Initialization of accounts has failed. For help please contact the administrator of the registry.
or

Error code: 0
Message: (12021) Cannot obtain new connection.

Below stack trace form osr_server1.out

WARNING: database_core.com.systinet.uddi.config.management.DatabaseConfig - Ignoring exception in event handler, it may be caused by unavailablity of database.
EXCEPTION: com.systinet.uddi.database.DatabaseCoreException: (12021) Cannot obtain new connection.
java.lang.RuntimeException: com.systinet.uddi.database.DatabaseCoreException: (12021) Cannot obtain new connection.
  at com.systinet.uddi.config.management.DatabaseConfig.useMemoryWriteDBWriteFile(DatabaseConfig.java:393)
  at com.systinet.uddi.config.management.DatabaseConfig$DatabaseConfigHook.handle(DatabaseConfig.java:142)
  at com.systinet.uddi.eventing.EventManager.callEventListeners(EventManager.java:72)
  at com.systinet.uddi.eventing.EventManager.processEvent(EventManager.java:50)
  at com.systinet.uddi.eventing.EventManager.fireEvent(EventManager.java:44)
  at com.systinet.uddi.config.FlushDaemon.run(ConfigHelper.java:877)
  at java.util.TimerThread.mainLoop(Timer.java:555)
  at java.util.TimerThread.run(Timer.java:505)
Caused by: com.systinet.uddi.database.DatabaseCoreException: (12021) Cannot obtain new connection.
  at com.systinet.uddi.database.TransactionManager.getConnectionFromPool(TransactionManager.java:125)
  at com.systinet.uddi.database.TransactionManager.initTransaction(TransactionManager.java:94)
  at com.systinet.uddi.database.TransactionManager.beginReadWrite(TransactionManager.java:84)
  at com.systinet.uddi.database.DatabaseApi.beginReadWrite(DatabaseApi.java:101)
  at com.systinet.uddi.config.management.DatabaseConfigAndEventImpl.storeConfig(DatabaseConfigAndEventImpl.java:108)
  at com.systinet.uddi.config.management.DatabaseConfigA

The same error happens for other activities as well, for example when attempting:

Home > Registry management > Configuration management

When attempting the following path:

Home > Registry management > Find account

A different error occurs:

Initialization of accounts has failed. For help please contact the administrator of the registry

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms