Create Database Links with Customer-Managed Heterogeneous Connectivity to Publicly Accessible Non-Oracle Databases
Use DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links from an Autonomous Database on Dedicated Exadata Infrastructure that is on a public endpoint to an Oracle Database Gateway to access Non-Oracle databases.
An Oracle Database Gateway is a gateway that is designed for accessing a specific non-Oracle system. Using an Oracle Database Gateway, you can access data anywhere in a distributed database system without knowing either the location of the data or how it is stored. Using database links on Autonomous Database with Oracle Database Gateway supports heterogeneous environments and eliminates the need to customize your applications to access data from non-Oracle systems.
Creating database links with customer-managed heterogeneous connectivity to publicly accessible non-Oracle databases is supported only with versions 19.25 and above for 19c and 23.6 and above for 23ai.
- Prerequisites
- Procedure
UseDBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links from an Autonomous Database instance on a public endpoint to an Oracle Database Gateway to access Non-Oracle databases.
Parent topic: Link Data
Prerequisites
To use database links from an Autonomous Database instance on a public endpoint, do the following:
-
Configure the Oracle Database Gateway to access a non-Oracle database. See Oracle Database Gateways in Oracle Database Heterogeneous Connectivity User's Guide for more details.
Depending on the database you want to connect to, you may refer to the corresponding Installation and Configuration Guide and the Gateway User's Guide.
For example, for Oracle Database Gateway for SQL Server see:
-
Installing and Configuring Oracle Database Gateway for SQL Server
-
Introduction to the Oracle Database Gateway for SQL Server in Oracle Database Gateway for SQL Server User's Guide.
-
-
Configure Oracle Net Listener to handle incoming requests on the Oracle Database Gateway.
-
Create a self signed wallet on the Oracle Database Gateway.
- Configure the target gateway to use TCP/IP with SSL (TCPS) authentication. See Configuring Transport Layer Security Authentication for more information.
Procedure
Use DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links from an Autonomous Database instance on a public endpoint to an Oracle Database Gateway to access Non-Oracle databases.
BEGIN
DBMS_CLOUD.UPDATE_CREDENTIAL(
credential_name =>'DB_LINK_CRED',
attribute =>'PASSWORD',
value=>'password'
);
END;
/
Where password is the new password.
After this operation, the existing database links that use this credential continue to work without having to drop and recreate the database links.
See UPDATE_CREDENTIAL Procedure for more details.
See How to Access Non-Oracle Databases from Autonomous Database using Oracle Database Gateway for an example to create a database link to an Oracle Database Gateway to access a Microsoft SQL Server database.
Though the above blog discusses in the context of Autonomous Database Serverless, all the content in that blog applies to Autonomous Database on Dedicated Exadata Infrastructure also.