Create TLS Database Links from an Autonomous Database to another Autonomous Database
You can create TLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a target Autonomous Database that is on a public endpoint.
- Create One-way TLS Database Links from an Autonomous Database to another Autonomous Database
You can create one-way TLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a publicly accessible Autonomous Database. - Create mTLS Database Links from an Autonomous Database to another Autonomous Database
You can to create mTLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a publicly accessible Autonomous Database. - 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
Create One-way TLS Database Links from an Autonomous Database to another Autonomous Database
You can create one-way TLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a publicly accessible Autonomous Database.
To create database links to a public target, the target database must be accessible. Some databases, including Autonomous Databases, may limit access (for example, using Access Control Lists). Make sure you enable your target database to allow access from your source database for the database link to work. If you limit access with Access Control Lists (ACLs), you can find the outbound IP address of your source Autonomous Database and allow that IP address to connect to your target database. When the target database is another Autonomous Database, you can add the outbound IP address of the source database to the ACL of the target database.
See Obtain Tenancy Details for information on finding the outbound IP address.
To create a database link to a target Autonomous Database without a wallet (TLS):
For the credentials you create in Step 1, the target 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.
For additional information, see:
Create mTLS Database Links from an Autonomous Database to another Autonomous Database
You can to create mTLS database links from an Autonomous Database on Dedicated Exadata Infrastructure to a publicly accessible Autonomous Database.
To create database links to a public target, the target database must be accessible. Some databases, including Autonomous Databases, may limit access (for example, using Access Control Lists). Make sure you enable your target database to allow access from your source database for the database link to work. If you limit access with Access Control Lists (ACLs), you can find the outbound IP address of your source Autonomous Database and allow that IP address to connect to your target database. For example, if the target database is another Autonomous Database, you can add the outbound IP address of the source database to the ACL of the target database.
See Obtain Tenancy Details for information on finding the outbound IP address.
To create database links to a target Autonomous Database with a wallet (mTLS):
For the credentials you create in Step 5, the target 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.
For additional information, see:
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.