'Failed to validate newly established connection - Grails 4

We are using Grails 4 framework for our web application with oracle database. Everything work fine when we host the application locally. However, when we migrated the application to production environment, application is getting disconnected with database server intermittently. On checking the tomcat logs we are getting " SQLexception Failed to validate newly established connection" error.

SQL error

Application.yml

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source