Create Non-TLS Database Links from Autonomous Database to an Autonomous Database
You can create Non-TLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a target Autonomous Database that is on a private endpoint.
- Prerequisites for Non-TLS Database Links from Autonomous Database to a Target Autonomous Database
Lists the prerequisites to create Non-TLS database links to a target Autonomous Database that is on a private endpoint. - Create Non-TLS Database Links to a Target Autonomous Database
You can create Non-TLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a target Autonomous Database that is on a private endpoint. - Database Link Notes with a Target that is an Autonomous Database
Provides notes for creating database links to a target that is another Autonomous Database.
Parent topic: Link Data
Prerequisites for Non-TLS Database Links from Autonomous Database to a Target Autonomous Database
Lists the prerequisites to create Non-TLS database links to a target Autonomous Database that is on a private endpoint.
To create a database link to a target Autonomous 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 connected to the source database's Oracle Cloud Infrastructure VCN using FastConnect or VPN.
-
-
For a target on a private endpoint,
DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
supports specifying a single hostname with thehostname
parameter. On a private endpoint, using an IP address, SCAN IP, or a SCAN hostname is not supported (when the target is on a public endpoint,CREATE_DATABASE_LINK
supports using an IP address, a SCAN IP, or a SCAN hostname). -
DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
does not support a value oflocalhost
for thehostname
parameter. -
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.
-
Create Non-TLS Database Links to a Target Autonomous Database
You can create Non-TLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a target Autonomous Database that is on a private endpoint.
Perform the prerequisite steps, as required. See Prerequisites for Non-TLS Database Links from Autonomous Database to a Target Autonomous Database for details.
To create a Non-TLS database link to a target Autonomous Database on a private endpoint:
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.
Database Link Notes with a Target that is an Autonomous Database
Provides notes for creating database links to a target that is another Autonomous Database.
Notes for database links to another Autonomous Database:
-
Only one wallet file is valid per directory for use with database links. You can only upload one
cwallet.sso
at a time to the directory you choose for wallet files (for example DBLINK_WALLET_DIR). This means with acwallet.sso
in DBLINK_WALLET_DIR you can only create database links to the databases for which the wallet in that directory is valid. To use multiplecwallet.sso
files with database links you need to create additional directories and put eachcwallet.sso
in a different directory. When you create database links withDBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
, specify the directory that contains the wallet with thedirectory_name
parameter.See Create Directory in Autonomous Database for information on creating directories.
-
To list the database links, use the
ALL_DB_LINKS
view. See ALL_DB_LINKS for more information. -
The wallet file, along with the Database user ID and password provide access to data in the target Autonomous Database. Store wallet files in a secure location. Share wallet files only with authorized users.