Create Database Links to Non-Oracle Databases with Customer-Managed Heterogeneous Connectivity
Use DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links from
an Autonomous Database 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.
To use database links with Autonomous Database, the target gateway must be configured to use TCP/IP with SSL (TCPS) authentication. See Configuring Secure Sockets Layer Authentication for more information.
To ensure security when using database links with an Oracle Database Gateway,
the database link port is restricted to the range 1521-1525, or port 2484. You specify the
target gateway port when you create a database link with DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
.
Note:
Before you create database links to a target gateway, do the following:-
Configure the Oracle Database Gateway to access a non-Oracle database.
-
Configure Oracle Net Listener to handle incoming requests on the Oracle Database Gateway.
-
Create a self signed wallet on the Oracle Database Gateway.
For more information on Oracle Database Gateway, see Oracle Database Gateways in Oracle Database Heterogeneous Connectivity User's Guide. Also see the Installation and Configuration Guide and the Gateway User's Guide for the database you want to connect to. 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.
To create database links to a target gateway, do the following:
Note:
For the credentials you create in Step 5, the Oracle Database Gateway credentials, if the password of the target user changes you can update the credential that contains the target user's credentials as follows: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 the following for an example that shows you how to create a database link to an Oracle Database Gateway to access a Microsoft SQL Server database:
How to Access Non-Oracle Databases from Autonomous Database using Oracle Database Gateway
For additional information, see: