# Integrate Oracle with Databox

Oracle Database is a widely used relational database management system (RDBMS) known for its reliability, performance, and advanced security features. It supports large-scale transaction processing, data warehousing, and analytics workloads. Oracle offers extensive SQL capabilities, support for PL/SQL, and options for clustering and high availability. Many organizations rely on Oracle as a centralized source of truth for mission-critical business data and reporting

## Connection

When setting up an Oracle connection in Databox, you'll first choose whether you're connecting an [Autonomous Database](https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-intro-adb.html) or a another type of Oracle database. Use the checkbox at the top of the connection form to select the appropriate option.

### Path 1: Oracle Autonomous Database

For Autonomous Database connections, you'll need:

- **Username** — Oracle user with read access to the database.
- **Password** — The user's password.
- **Connection String (TLS)** — The TLS-enabled connection string copied from your Autonomous Database.
- **Data source name** — A label for the data source in Databox.
- **Time zone** — The time zone used for interpreting and filtering data points in visualizations.


#### Step 1: Open your database details

1. In the **Oracle Cloud Console**, go to [Autonomous Database](https://cloud.oracle.com/db/adbs).
2. Select your database from the list to open the [Details](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/vlscd/index.html) page.


#### Step 2:  Configure the Access control list (ACL)

1. In **Network > Access control list**, click **Edit**.
2. Add a new rule for the IP address **52.4.198.118** (Databox IP).
3. *(Optional)* Add your own IP to allow direct access.
4. Click **Save**.
5. Wait for the **Lifecycle State** to change from *Updating* back to *Available*.


access-control-list
#### Step 3:  Adjust TLS authentication settings

1. In **Network > Mutual TLS (mTLS) authentication**, click **Edit**.
2. Deselect the **require Mutual TLS (mTLS) authentication** option.
3. Click **Save**.
4. Wait for the update to complete (*Updating → Available*).


tls
#### Step 4:  Copy the TLS connection string

1. At the top of the **Details** page, click **Database connection**.
2. In the [Connection strings](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/vcsad/) section, under **TLS authentication**, select **TLS**.
3. Choose the preferred TNS name, for example:
  - `_low` (lowest resource use, for light or infrequent queries)
  - `_medium` (balanced performance and cost)
  - `_high` (allocates more resources for heavy queries and reporting)
  - `tp/tpurgent` (optimized for OLTP workloads, with `tpurgent` offering the lowest latency
4. Click the **…** menu next to the chosen TNS name and select **Copy** to copy the full connection string.


tls-connection-string
### Path 2: Other Oracle setups (on-premises or self-managed cloud)

For non-Autonomous Oracle connections, you'll need:

- **Host** — Server hostname or IP address.
- **Port** — Default is 1521.
- **Service Name** — Identifier for your Oracle instance.
- **Username** — Oracle user with read access to the database.
- **Password** — The user's password.
- **Data source name** — A label for the data source in Databox.
- **Time zone** — The time zone used for interpreting and filtering data points in visualizations.


#### Step 1: Make sure your firewall or network rules allow inbound access from Databox IPs.

#### Step 2: Create a dedicated read-only Oracle user, for example:


```sql
CREATE USER databox_user IDENTIFIED BY strong_password;  
GRANT CREATE SESSION TO databox_user;  
GRANT SELECT ON schema.table TO databox_user;
```

## Datasets

The Oracle integration supports the creation of [datasets](/understanding-datasets), which allow you to define and shape the specific data you want to use for reporting in Databox. Datasets make it easier to focus on the most relevant information, enabling you to filter, visualize, and analyze metrics across projects, teams, and clients without writing complex queries each time.

### Steps to create a dataset:

1. **Select a table**: Pick the appropriate schema within that database.
2. **Select columns**: Browse and select the specific columns (fields) from your tables or views to include in your dataset. These columns define the structure and content of your dataset.


### Optional: Write SQL

For more advanced use cases, you can write a **custom SQL query** instead of selecting columns manually. This allows you to:

- Join multiple tables
- Apply filters and aggregations
- Format or transform data before importing it into Databox


Your query must return a valid tabular result to be used as a dataset.

### Additional resources

- [Oracle Database Documentation](https://docs.oracle.com/en/database/oracle/oracle-database/index.html) — Central hub for Oracle Database docs, including administration, SQL and PL/SQL references, security, backup & recovery, performance, tools, and release notes.
- [Oracle Autonomous Database](https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) — Oracle Cloud docs for Autonomous Database: provisioning, connectivity, network access, scaling, administration, data loading, monitoring, and tooling.


## Resources

For comprehensive details on metrics, data availability, templates, specifications, usage guidelines, and other key information, refer to the resources listed below.

No. When using TLS (one-way) connections, no wallet is required.

Each option represents a different workload profile in Oracle Autonomous Database, and the choice is built into the connection string itself. When you paste a string into Databox, all queries will run under that profile.

If you later decide to use a different profile, you'll need to copy the new connection string from the Oracle Cloud Console and update your Databox connection.

 

Ask Genie
Get instant answers or help with your data using the in-app AI assistant.

Talk to an expert
For customers: Get help with your setup, strategy, or making the most of Databox.

Book a demo
New to Databox? See how it works and get guidance on getting started.

Send an email
Reach out to support for help with your account, data, or technical issues.