Create Database Links from Autonomous Database to Oracle Databases on a Private Endpoint
You can create database links from an Autonomous Database to a target Oracle database that is on a private endpoint.
Note:
Database links from an Autonomous Database to a target Oracle database that is on a private endpoint are only supported in commercial regions and US Government regions. This feature is enabled by default in all commercial regions.If you want to create database links from an Autonomous Database to a target in a US Government region, please file a Service Request at Oracle Cloud Support and request to enable the private endpoint in government regions database linking feature. This includes the following US Government regions:
Depending on the type and the configuration of the target Oracle database:
-
Autonomous Database or another Oracle Database, such as on-premises or a Database Cloud Service database, on a private endpoint that is configured for SSL (TCPS): In this case you create the database link with a wallet and the database link communicates with TCPS. See Create Database Links from Autonomous Database to Oracle Databases on a Private Endpoint with a Wallet for details.
-
Oracle Database, such as on-premises or a Database Cloud Service database, on a private endpoint that is configured for TCP: In this case you create the database link without a wallet and the database link communicates with TCP. See Create Database Links from Autonomous Database to Oracle Databases on a Private Endpoint without a Wallet for details
Prerequisites for Database Links from Autonomous Database to Oracle Databases on a Private Endpoint
Lists the prerequisites to create database links from an Autonomous Database to a target Oracle database that is on a private endpoint.
To create a database link to a target Oracle database on a private endpoint:
-
The target database must be accessible from the source database's Oracle Cloud Infrastructure VCN. For example, you can connect to the target database when:
-
The target database is on a private endpoint.
-
Both the source database and the target database are in the same Oracle Cloud Infrastructure VCN.
-
The source database and the target database are in different Oracle Cloud Infrastructure VCNs that are paired.
-
The target database is an on-premises database that is connected to the source database's Oracle Cloud Infrastructure VCN using FastConnect or VPN.
-
-
The following ingress and egress rules must be defined for the private endpoint:
-
Define an egress rule in the source database's subnet security list or network security group such that the traffic over TCP is allowed to the target database's IP address and port number.
-
Define an ingress rule in the target database's subnet security list or network security group such that the traffic over TCP is allowed from the source database IP address to the destination port.
See Configuring Network Access with Private Endpoints for information on configuring private endpoints with ingress and egress rules.
-
-
To ensure security, the database link port is restricted to the range 1521-1525, or port 2484. You specify the target database port when you create a database link with
DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
.
Note:
When your Autonomous Database instance is configured with a private endpoint, set theROUTE_OUTBOUND_CONNECTIONS
database parameter to
'PRIVATE_ENDPOINT
' to specify that all outgoing database links are
subject to the Autonomous Database instance
private endpoint VCN's egress rules. See Enhanced Security for Outbound Connections with Private Endpoints for more information.
Create Database Links from Autonomous Database to Oracle Databases on a Private Endpoint with a Wallet
Use DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links from
an Autonomous Database to a target Oracle database
that is on a private endpoint.
Note:
This option is for target Oracle databases that have SSL/TCPS configured and that are on a private endpoint. Autonomous Database has TCP/IP with SSL (TCPS) authentication configured by default, so you can use these steps to connect to another Autonomous Database.If the target Oracle database does not have SSL/TCPS configured, you have two options:
-
You can configure the target Oracle database to use TCP/IP with SSL (TCPS) authentication. See Configuring Transport Layer Security Authentication for information on configuring SSL/TCPS.
-
You can connect to the target Oracle database with TCP. See Create Database Links from Autonomous Database to Oracle Databases on a Private Endpoint without a Wallet for details.
Perform the prerequisite steps, as required. See Prerequisites for Database Links from Autonomous Database to Oracle Databases on a Private Endpoint for details.
To create a database link to a target database on a private endpoint using TCP/IP with SSL (TCPS) authentication:
Note:
For the credentials you create in Step 5, the Oracle Database 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 CREATE_DATABASE_LINK Procedure for additional information.
Create Database Links from Autonomous Database to Oracle Databases on a Private Endpoint without a Wallet
Use DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links from
an Autonomous Database to a target Oracle database
that is on a private endpoint and connect without a wallet (TCP).
Note:
This option is for target Oracle databases that are on a private endpoint and do not have SSL/TCPS configured.Perform the prerequisite steps, as required. See Prerequisites for Database Links from Autonomous Database to Oracle Databases on a Private Endpoint for details.
To create a database link to a target database on a private endpoint using a secure TCP connection without a wallet:
Note:
For the credentials you create in Step 1, the Oracle Database 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 CREATE_DATABASE_LINK Procedure for additional information.