Connect to Oracle AI Database
Connect Oracle AI Database to Retool and query and manage data in your database.
Oracle AI Database is a relational database management system widely used for enterprise applications and transaction processing. In Retool, this resource is labeled OracleDB.
What you can do with Oracle AI Database in Retool
After you create an OracleDB resource in Retool, you can:
- Read and display data with SQL queries.
- Insert, update, and delete records using GUI mode.
- Build admin panels and dashboards backed by your database.
- Automate data workflows against your Oracle AI Database instance.
Before you begin
To connect Oracle AI Database to Retool, you need the following:
- Cloud
- Self-hosted
- Oracle AI Database instance: A running Oracle AI Database instance.
- Credentials: A database username and password with appropriate permissions.
- Network access: Your Oracle AI Database instance must accept connections from Retool's IP addresses.
- Retool permissions: Ability to create and manage resources in your organization.
- Oracle AI Database instance: A running Oracle AI Database instance.
- Credentials: A database username and password with appropriate permissions.
- Network access: Your Oracle AI Database instance must be reachable from your Retool instance.
- Retool permissions: Ability to create and manage resources in your organization.
Create an Oracle AI Database resource
Follow these steps to create an Oracle AI Database resource in your Retool organization.
Create a new resource
In your Retool organization, navigate to Resources in the main navigation and click Create new → Resource. Search for "OracleDB" and click the OracleDB tile to begin configuration.
Use folders to organize your resources by team, environment, or resource type. This helps keep your resource list manageable as your organization grows.
Configure general settings
Specify a name and description for the resource that indicates which database it connects to.
| Example name | Example description |
|---|---|
| Orders database | Oracle AI Database instance containing order and shipment records. |
| Analytics database (read only) | Read-only Oracle AI Database instance used for reporting dashboards. |
Connector version
Select the Connector version to use for this resource. Version 2.0 is the default for new resources and uses the connection string authentication documented in this guide. Version 1.0 is a legacy option that configures the connection using separate host, port, and database name fields instead of a connection string.
Configure resource credentials
Configure the connection settings for your OracleDB resource. The fields available depend on the Connector version you selected.

OracleDB resource configuration form.
- Version 2.0
- Version 1.0
Username and password
Enter the Username and Password for your Oracle AI Database instance.
Connection string
The database connection string. Retool passes this directly to the OracleDB client.
mydbmachine.example.com:1984/orclpdb1
Refer to the OracleDB connection string documentation for the full format reference.
Oracle AI Database resources authenticate with a username and password by default. You can optionally add mutual TLS (mTLS) authentication using an Oracle wallet for an additional layer of security.
Configure mTLS with a wallet key
Enable Configure mTLS with Wallet Key to require an Oracle wallet in addition to your username and password.
- Upload your Wallet Key file.
- Enter the Wallet Password for the wallet file.
Refer to your Oracle administrator to obtain a wallet file and its password.
Host, port, and database name
Enter the Host, Port, and Database Name for your Oracle AI Database instance.
If your database identifies itself using a SID rather than a service name, enable Treat Database Name field as SID and enter the SID in the Database Name field.
Database username and password
Enter the Database Username and Database Password for your Oracle AI Database instance.
Version 1.0 doesn't support mTLS wallet-key authentication. To use mTLS, switch to Version 2.0.
Configure advanced options
Configure optional settings available under the Advanced options section of the resource configuration form.
Disable converting queries to prepared statements
Retool converts queries to prepared statements by default to improve performance and prevent SQL injection. Enable this option only if your use case requires disabling that behavior.
Show write GUI mode only
Enable this to hide SQL mode from query writers, restricting them to GUI mode for write operations. Use this to reduce the risk of unintended data modifications.
- Cloud
Outbound region
If your organization uses outbound regions, select the region that should be used for requests to Oracle AI Database. This controls which geographic region your requests originate from.