Autonomous Database mandates a secure connection that
uses Transport Layer Security (TLSv1.2). Depending on the
configuration options, Autonomous Database supports mTLS and TLS authentication.
This section covers using JDBC Thin Connections with TLS
authentication without a wallet.
JDBC Thin Driver Connection Prerequisites for TLS Connections Without a Wallet Applications that use JDBC Thin driver support TLS and mutual TLS (mTLS) authentication. Connecting to an Autonomous Database instance with TLS authentication requires database credentials (username and password) and provides a secure connection, but does not require that you download Oracle wallets or Java KeyStore (JKS) files.
JDBC Thin Driver Connection
Prerequisites for TLS Connections Without a Wallet π
Applications that use JDBC Thin driver support TLS and mutual TLS (mTLS)
authentication. Connecting to an Autonomous Database instance with TLS authentication requires database credentials (username
and password) and provides a secure connection, but does not require that you download
Oracle wallets or Java KeyStore (JKS) files.
Verify your JDK version for security: If you are using JDK11, JDK10, or
JDK9 then you donβt need to do anything for this step. If your JDK version is
less than JDK8u162 then you need to download the JCE Unlimited Strength
Jurisdiction Policy Files. Refer to the README file for
installation notes. Download the JCE files from Java Cryptography Extension (JCE)
Unlimited Strength Jurisdiction Policy Files 8 Download.
Check JDBC Driver Version: The JDBC Thin client versions from 12.2.0.1
or higher are supported. However, it is recommended to use the latest release
update from 19c or 23ai to take advantage of recent enhancements that simplify
connections and provide easy steps for configuration. Obtain one of these from
Oracle Database JDBC driver and
Companion Jars Downloads.
Using a JDBC URL TLS Connection
String for JDBC Thin Driver Without a Wallet π
To connect
the database using JDBC Thin Driver with TLS without a wallet, you provide a connection
string. Each database service has its own TNS Name and connection string.
To run an application using the JDBC Thin Driver with TLS authentication
without a wallet:
Copy a connection string for the Autonomous Database.
To connect with TLS authentication copy a TLS connection
string.
From the Oracle Cloud
Infrastructure Console, on the Autonomous Database details page click
Database connection.
Under TLS Authentication, select
TLS to view the connection strings for
connecting with TLS authentication.