Oracle Error ORA-21521: exceeded maximum number of connections in OCI (object mode only)

Oracle Error Message

ORA-21521: exceeded maximum number of connections in OCI (object mode only)

Reason for the Error

User exceeded the maximum number of connections (255) that can be supported by an OCI environment in object mode.

Solution

Close some of existing and unused connections before opening more connections.