Prerequisites
- An existing AWS account
- Appropriate NexusOne permission:
nx1_ingest,nx1_monitor,nx1_s3_admin,airflow_user,superset_user,spark_sql, andtrino_admin - AWS command line tool installed
- sqlplus + oracle instant client command line tool installed
- Terraform installed
Authenticate to your public cloud
Use your public cloud’s command line tool to authenticate to your cloud account. This allows Terraform to interact with your cloud account. The following AWS command requests that you enter the following AWS credentials:- Access key ID
- Secret access key
- Default region
Define a Terraform and cloud provider
After authenticating to your cloud account using the command line tool, create the following Terraform file.Define an Oracle instance
Create the following Terraform file with the Oracle instance resources defined.Deploy the Oracle instance
After defining the Oracle Terraform resource specific to your cloud provider, deploy the Terraform resources.-
Initialize the Terraform configuration.
-
Create the Oracle instance.
Add datasets to the database
To ingest datasets from the database into NexusOne, these datasets need to exist first. Take the following steps to add datasets to the database:-
Authenticate to the database using the sqlplus command line tool.
-
When prompted, enter your password,
NexusOracle!. -
Create a schema.
In Oracle,
USERis also the schema name. -
Create a table inside the
tutorialschema. -
Insert data into the table.
-
View all rows in the
testtable. -
Permanently save the changes to make the data visible to NexusOne.
Ingest the database into NexusOne
Now that a dataset is available on the Oracle database, you can ingest the database into NexusOne using the following steps:- Log in to NexusOne.
- From the NexusOne homepage, navigate to Ingest > Database > From Table.
- Enter the table and schema name:
- Source Schema:
tutorial - Source Table:
test
- Source Schema:
- Add connection details:
- Database URL:
jdbc:oracle:thin:@//<database_address>:1521/ORCL
Port 1521 is Oracle’s default port number.- Username:
oracleadmin - Password:
NexusOracle!
- Database URL:
- Add ingest details:
- Name:
ingest_database - Schema:
oracle_schema - Table:
oracle_table - Schedule:
Run Once - Mode:
append - Tags: Don’t add any tags.
- Name:
- After configuring all fields, click Ingest to submit the job. Wait for a few minutes until you see a success message appear with an option to click View Jobs.
Monitor job
When you ingest the database, this creates an Airflow job. To monitor the status of the job, use the following steps:- Click View Jobs, or navigate to the NexusOne homepage and then click Monitor.
- Find your job name,
ingest_database, in the list, and watch its current status. - Wait for a few minutes, and then refresh your browser until the status changes to
Completed.
Visualize your dataset
Use the following steps to visualize your dataset:- On the NexusOne homepage, click Discover to launch Superset.
- Hover your mouse over SQL, and then select SQL Lab.
- Enter the following command in the query box:

Visualize your dataset
Delete the schema and Terraform resources
After completing the tutorial, delete the created schema and Oracle instance using the following steps:-
Delete the schema.
-
Destroy the Terraform resources.
Additional resources
- To install sqlplus on macOS using Homebrew, refer to this Stack Exchange answer.
You can copy either a
zipordmgfile to thehomebrew-instantclientdirectory. - To create an Oracle database on Azure, refer to Create an Oracle Database in an Azure VM
- To create an Oracle database on Google Cloud, refer to Oracle Database@Google Cloud overview
- To get an overview of what database ingestion is, refer to Data ingestion overview.
- For more information about roles or permissions, refer to Govern Overview.