> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OracleDB

> Build apps with read and write access to an Oracle database

Oracle Database is a powerful, enterprise-grade relational database management system known for its scalability, reliability, and comprehensive feature set. Integrate OracleDB with Prod AI to build internal tools and workflows that query, analyze, and update your Oracle data, enabling your team to automate processes and accelerate decision-making.

## Setting up OracleDB

On Dedicated Cloud, configure your Oracle network access rules to allow connections from your [Prod AI data plane IP addresses](https://docs.prod.ai/deployment/security/overview.md#ip-addresses).
Alternatively, use Managed BYOC to keep your data within your own AWS account.

### 1. Add integration

Select **OracleDB** from the **integrations page**.

### 2. Configure settings

Connect using either a form or a connection string.

> [tab] Form
>
> \
> Fill out the form with the following settings:
>
> | Setting | Required | Description |
> | - | - | - |
> | Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
> | Host | ✓ | Hostname or IP address of the Oracle database server |
> | Port | ✓ | Port to use when connecting to Oracle (default: `1521`) |
> | Service Name | ✓ | Oracle service name to connect to |
> | Database Username | ✓ | Username to use to connect |
> | Database Password | ✓ | Password for database username |
> | Enable SSL | ✗ | Connect using SSL/TLS encryption |
> | Use a self-signed SSL certificate | ✗ | Provide **Server CA**, **Client Key**, and **Client Cert** |

> [tab] Connection string
>
> \
> Provide an Oracle connection string. Prod AI supports multiple formats:
>
> **Easy Connect format:**
>
> ```
> host[:port]/service_name
> ```
>
> **TNS connect descriptor format:**
>
> ```
> (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=service_name)))
> ```

### 3. Test and save

Click **Test Connection** to check that Prod AI can connect to the data source.

After connecting successfully, click **Create** to save the integration.

### 4. Set data tags

Optionally, configure different data tags for [separate development environments](https://docs.prod.ai/development-lifecycle/build/data-tags.md).

**OracleDB connected!**
You can now build
[apps](https://docs.prod.ai/coding-agents/apps.md) and [agents](https://docs.prod.ai/coding-agents/agents.md) with OracleDB.

## Using OracleDB in APIs

Once your OracleDB integration is created, you can start using it by writing SQL in Prod AI APIs. Use standard Oracle SQL syntax for all your queries, including support for PL/SQL blocks.

## Troubleshooting

If you run into issues, first see our guide on [Troubleshooting Database Integrations](https://docs.prod.ai/integrations/troubleshooting/troubleshooting-databases.md).

There are also several common errors you may see when using OracleDB:

| Error message | Why it's happening & Resolution |
| - | - |
| `ORA-12154: TNS:could not resolve the connect identifier specified` | **Reason** The service name or connect identifier cannot be found. **Resolution** Verify the service name is correct and that the Oracle listener is configured properly. |
| `ORA-12541: TNS:no listener` | **Reason** The Oracle listener is not running on the specified host and port. **Resolution** Verify the host and port are correct, and ensure the Oracle listener service is running on the database server. |
| `ORA-01017: invalid username/password; logon denied` | **Reason** The username or password provided is incorrect. **Resolution** Verify your credentials are correct. Note that Oracle passwords are case-sensitive. |
| `ORA-28000: the account is locked` | **Reason** The database user account has been locked due to too many failed login attempts or administrative action. **Resolution** Contact your database administrator to unlock the account. |

If you are encountering an error that's not listed, or the provided steps are insufficient to resolve the error, please contact us at [[support@prod.ai](mailto:support@prod.ai)](mailto:support@prod.ai)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.