With Visual Builder, developers have a lot of options for connecting to external data sources. However, sometimes you may need to connect to a private database. For example, when you are creating a service connection to an ORDS API.
The best solution is to setup your Visual Builder instance inside the private subnet. This feature was announced in December 2024 and this guide walks through the steps to create connections from the Private VB. If that option isn't the right solution for you, the next best solution is to add a "Public Access" definition to your Private ATP Database.
In this post we'll walk through the steps to setup set up Public Access exclusively for your Visual Builder instance. This will allow you to make connections to your private database securely from Visual Builder without exposing it to anything else.
Quick Links
- Copy the VCN OCID used by your VB Instance
- Update Your Database
- Copy your ORDS Public Access URL
- Add an Allowed Origin for your ORDS API
- Test Your Connection
Prerequisite
The following guide assumes you already have a VB instance and a Private DB setup.
Copy the VCN OCID used by your VB Instance
- Open your Visual Builder Instance Details page
- In the network section, locate the "Service VCN OCID" and click "Copy"

Update Your Database
- Switch to your ATP Database panel
- Open "More Actions"
- Click "Update network access"

- Toggle on the switch to "Allow public access"
- Change the "IP notation type" to "Virtual cloud network OCID"
- Paste your OCID in the Values box
- Click "Update"

Copy your ORDS Public Access URL
- Switch to the Database "Tool configuration" tab
- Under the "Web Access (ORDS)" section copy the public access URL, excluding the "ords/" part.

Add an Allowed Origin for your ORDS API
- Switch to your VB services home page
- Open the settings General tab
- Click "+ New Origin"
- Add the URL copied above as a "New Origin".

Test Your Connection
You should now be able to create and test VB Service Connections for your ORDS APIs.

If you don't have an existing API to test with you could try the Sample VB Application from the Private VB guide.
