> For the complete documentation index, see [llms.txt](https://docs.digibee.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digibee.com/documentation/troubleshooting/pt-br/integration-issues/failed-to-initialize-pool.md).

# Como resolver o erro "Failed to initialize pool: ONS configuration failed"

Saiba como solucionar o erro que impede uma aplicação Java de se conectar a um banco de dados Oracle.

Ao tentar estabelecer a conexão entre uma aplicação Java e um banco de dados Oracle, pode aparecer a seguinte mensagem de erro:

{% code overflow="wrap" %}

```
"Could not establish connection to the database. Error com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: ONS configuration failed"
```

{% endcode %}

## **Identificando a causa do erro**

Este erro geralmente ocorre devido a configurações incorretas no Oracle Notification Service (ONS). O ONS é responsável por notificar a aplicação sobre alterações no banco de dados. No entanto, uma configuração inadequada pode interromper a conectividade e causar esse problema.

## **Corrigindo o erro**

Para resolver esse erro, é necessário desabilitar o ONS adicionando um parâmetro à configuração do seu conector. Siga os passos abaixo:

1. Abra a configuração do conector de banco de dados (geralmente, o conector [**DB**](/documentation/connectors-and-triggers/pt-br/connectors/structured-data/db-v2.md) é utilizado nesses casos).
2. Localize o parâmetro que define a configuração do banco de dados Oracle.
3. Adicione a seguinte linha para desabilitar o ONS: `"oracle.jdbc.fanEnabled" : false`

<figure><img src="https://content.gitbook.com/content/3ANg0NQQeslB7Og5K7Ah/blobs/I4dv2d1ZU6GQDwWXgYC1/image1.png" alt=""><figcaption><p>Exemplo de configuração.</p></figcaption></figure>

4. Salve o conector e teste a execução.

Se a configuração estiver correta, a conexão com o banco de dados deve ser bem sucedida.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digibee.com/documentation/troubleshooting/pt-br/integration-issues/failed-to-initialize-pool.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
