# Como conectar a Digibee ao Oracle RAC

## **O que é Oracle RAC?**

O Oracle RAC (Real Application Cluster) realiza uma escalabilidade transparente tanto para leituras quanto para gravações em diversas cargas de trabalho, como OLTP, análises, vetores de IA, SaaS, JSON, processamento em lote, texto, gráficos, Internet das Coisas (IoT) e processamento em memória. Ele oferece uma série de benefícios para computação em banco de dados, incluindo escalabilidade, alta disponibilidade, balanceamento de carga, redundância e monitoramento. Para mais informações, consulte o [site da Oracle](https://www.oracle.com/br/database/real-application-clusters/).

## **Conectando o Oracle RAC com a Digibee**

Ao conectar um pipeline a um banco de dados via VPN (Virtual Private Network), a topologia de rede impede a visibilidade dos nós por trás do Oracle SCAN Listener. Como consequência, o driver JDBC não consegue se conectar ao nó indicado pelo listener como disponível para receber a conexão.

<figure><img src="/files/E949LX7XTcMLrCOeWP3H" alt=""><figcaption></figcaption></figure>

Para resolver esse problema:

* Evite utilizar o mapeamento do SCAN Listener.
* Informe ao [Suporte da Digibee](/documentation/troubleshooting/pt-br/help-and-faq/support.md) os IPs de cada nó do banco de dados deste cluster.
* Use uma string de conexão com múltiplos hosts para garantir o tráfego e a redundância entre os nós, o que pode ser configurado por meio da string de conexão.

<figure><img src="/files/Qr82hkxgNySOOZi3CVqC" alt=""><figcaption></figcaption></figure>

Veja o exemplo abaixo:

```
jdbc:oracle:thin:@(DESCRIPTION=
   (ADDRESS_LIST=
      (ADDRESS=(PROTOCOL=TCP)(HOST=10.158.xx.xxx)(PORT=1111))
      (ADDRESS=(PROTOCOL=TCP)(HOST=10.158.xx.xxx)(PORT=2222))
      (ADDRESS=(PROTOCOL=TCP)(HOST=10.158.xx.xxx)(PORT=3333))
      (FAILOVER=on)
      (LOAD_BALANCE=on)
   )
   (CONNECT_DATA=(SERVICE_NAME=SERVICENAME))
)
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digibee.com/documentation/troubleshooting/pt-br/connectivity-guides/digibee-oracle-rac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
