Oracle Source
Oracle Source enables data synchronization from Oracle to your desired destination.
OLake UI is live (beta)! You can now use the UI to configure your Oracle source, discover streams, and sync data. Check it out at OLake UI regarding how to setup using Docker Compose and running it locally.
Now, you can use the UI to configure your Oracle source, discover streams, and sync data.
- Use OLake UI for Oracle
- Use OLake CLI for Oracle
Create a Oracle Source in OLake UI
Follow the steps below to get started with the Oracle Source using the OLake UI (assuming the OLake UI is running locally on localhost:8000):
- Navigate to Sources Tab.
- Click on
+ Create Source
. - Select
Oracle
as the source type from Connector type. - Fill in the required connection details in the form. For details regarding the connection details, refer to the Oracle Source Configuration section on the right side of UI.
- Click on
Create ->
- OLake will test the source connection and display the results. If the connection is successful, you will see a success message. If there are any issues, OLake will provide error messages to help you troubleshoot.
This will create a Oracle source in OLake, now you can use this source in your Jobs Pipeline to sync data from Oracle to Apache Iceberg or AWS S3.
Edit Oracle Source in OLake UI
To edit an existing Oracle source in OLake UI, follow these steps:
- Navigate to the Sources Tab.
- Locate the Oracle source you want to edit from
Active Sources
orInactive Sources
tabs or using the search bar. - Click on the
Edit
button next to the source from theActions
tab (3 dots). - Update the connection details as needed in the form and Click on
Save Changes
.
Editing a source can break pipeline.
You will see a notification saying "Due to the editing, the jobs are going to get affected".
Editing this source will affect the following jobs that are associated with this source and as a result will fail immediately. Do you still want to edit the source?
- OLake will test the updated source connection once you hit confirm on the Source Editing Caution Modal. If the connection is successful, you will see a success message. If there are any issues, we will provide error messages to help you troubleshoot.
Jobs Associated with Oracle Source
In the Source Edit page, you can see the list of jobs that are associated with this source. You can also see the status of each job, whether it is running, failed, or completed and can pause the job from the same screen as well.
Delete Oracle Source in OLake UI
To delete an existing Oracle source in OLake UI, follow these steps:
- Navigate to the Sources Tab.
- Locate the Oracle source you want to delete from
Active Sources
orInactive Sources
tabs or using the search bar. - Click on the
Delete
button next to the source from theActions
tab (3 dots).
- A confirmation dialog will appear asking you to confirm the deletion.
- Click on
Delete
to confirm the deletion.
This will remove the Oracle source from OLake.
You can also delete a source from the Source Edit page by clicking on the Delete
button at the bottom of the page.
To sync data TLDR:
- Create a
source.json
with your Oracle connection details. - Create a
destination.json
with your Writer (Apache Iceberg / AWS S3 / Azure ADLS / Google Cloud Storage) connection details. - Run
discover
to generate astreams.json
of available streams. - Run
sync
to replicate data to your specified destination.
Features
- Efficient data chunking based on ROWID for optimal performance
- Dynamic chunk size calculation based on table size
- Proper handling of SCN (System Change Number) for data consistency
Oracle Driver
The Oracle Driver enables data synchronization from Oracle to your desired destination.
Below is an overview of the supported modes and writers for Oracle data replication, along with tables summarizing the details.
Supported Modes
Our replication process supports various modes to fit different data ingestion needs.
The Full Refresh mode retrieves the entire dataset from Oracle and is ideal for initial data loads or when a complete dataset copy is required.
Mode | Description |
---|---|
Full Refresh | Fetches the complete dataset from Oracle. |
Supported Destinations
Destination | Supported | Docs | Comments |
---|---|---|---|
![]() | Yes | Link | |
![]() | Yes | Link | Supports both plain-Parquet and Iceberg format writes; requires aws_access_key / IAM role. |
![]() | Yes | Link | |
![]() | Yes | Any S3 protocol compliant object store can work with OLake | |
![]() | Yes | Link |
Setup and Configuration
To run the Oracle Driver, configure the following files with your specific credentials and settings:
source.json
: Oracle connection details.streams.json
: List of collections and fields to sync (generated using the Discover command).write.json
: Configuration for the destination where the data will be written.
Place these files in your project directory before running the commands.
Source File
Add Oracle credentials in following format in source.json
file as shown here.
Commands
Discover Command
The Discover command generates json content for streams.json
file, which defines the schema of the collections to be synced.
Usage
To run the Discover command, use the following syntax
- OLake Docker
- Locally run OLake
- macOS / Linux
- CMD
- Powershell
docker run --pull=always \
-v "$HOME/PATH_TO_OLAKE_DIRECTORY:/mnt/config" \
olakego/source-oracle:latest \
discover \
--config /mnt/config/source.json
docker run --pull=always ^
-v "%USERPROFILE%\PATH_TO_OLAKE_DIRECTORY:/mnt/config" ^
olakego/source-oracle:latest ^
discover ^
--config /mnt/config/source.json
docker run --pull=always `
-v "$env:USERPROFILE\PATH_TO_OLAKE_DIRECTORY:/mnt/config" `
olakego/source-oracle:latest `
discover `
--config /mnt/config/source.json
- macOS / Linux
- CMD
- Powershell
OLAKE_BASE_PATH="$HOME/PATH_TO_OLAKE_DIRECTORY/olake/drivers/oracle/config" && \
./build.sh driver-oracle discover \
--config "$OLAKE_BASE_PATH/source.json"
set "OLAKE_BASE_PATH=%USERPROFILE%\PATH_TO_OLAKE_DIRECTORY\olake\drivers\oracle\config" && ^
./build.sh driver-oracle discover ^
--config "%OLAKE_BASE_PATH%\source.json"
$OLAKE_BASE_PATH = "$env:USERPROFILE\PATH_TO_OLAKE_DIRECTORY\olake\drivers\oracle\config"; `
./build.sh driver-oracle discover `
--config "$OLAKE_BASE_PATH\source.json"
Streams File
After executing the Discover command, a streams.json
file is created. Read more about Streams File here.
Writer File
Read about about :
Sync Command
The Sync command fetches data from Oracle and ingests it into the destination.
- OLake Docker
- Locally run OLake
- macOS / Linux
- CMD
- Powershell
docker run --pull=always \
-v "$HOME/PATH_TO_OLAKE_DIRECTORY:/mnt/config" \
olakego/source-oracle:latest \
sync \
--config /mnt/config/source.json \
--catalog /mnt/config/streams.json \
--destination /mnt/config/destination.json
docker run --pull=always ^
-v "%USERPROFILE%\PATH_TO_OLAKE_DIRECTORY:/mnt/config" ^
olakego/source-oracle:latest ^
sync ^
--config /mnt/config/source.json ^
--catalog /mnt/config/streams.json ^
--destination /mnt/config/destination.json
docker run --pull=always `
-v "$env:USERPROFILE\PATH_TO_OLAKE_DIRECTORY:/mnt/config" `
olakego/source-oracle:latest `
sync `
--config /mnt/config/source.json `
--catalog /mnt/config/streams.json `
--destination /mnt/config/destination.json
- macOS / Linux
- CMD
- Powershell
OLAKE_BASE_PATH="$HOME/PATH_TO_OLAKE_DIRECTORY/olake/drivers/oracle/config" && \
./build.sh driver-oracle sync \
--config "$OLAKE_BASE_PATH/source.json" \
--catalog "$OLAKE_BASE_PATH/streams.json" \
--destination "$OLAKE_BASE_PATH/destination.json"
set "OLAKE_BASE_PATH=%USERPROFILE%\PATH_TO_OLAKE_DIRECTORY\olake\drivers\oracle\config" && ^
./build.sh driver-oracle sync ^
--config "%OLAKE_BASE_PATH%\source.json" ^
--catalog "%OLAKE_BASE_PATH%\streams.json" ^
--destination "%OLAKE_BASE_PATH%\destination.json"
$OLAKE_BASE_PATH = "$env:USERPROFILE\PATH_TO_OLAKE_DIRECTORY\olake\drivers\oracle\config"; `
./build.sh driver-oracle sync `
--config "$OLAKE_BASE_PATH\source.json" `
--catalog "$OLAKE_BASE_PATH\streams.json" `
--destination "$OLAKE_BASE_PATH\destination.json"