Oracle Error ORA-24401: cannot open further connections

Oracle Error Message

ORA-24401: cannot open further connections

Reason for the Error

Sufficient number of connections are not present in the pool to execute the call. No new connections can be opened as the connMax parameter supplied in OCIConnectionPoolCreate has been reached.

Solution

Call OCIConnectionPoolCreate in OCI_CPOOL_REINITIALIZE mode and increase the value of the connMax parameter.