D.2 Using a Wallet-Based mTLS Connection

You can also connect to Autonomous AI Database using a wallet-based mutual TLS (mTLS) authentication.

Perform the following steps to connect to Autonomous AI Database with a wallet.
  1. Sign in to Oracle Cloud and select your Autonomous AI Database instance.
    This opens the Autonomous AI Database details page.

    Note that a wallet-based method to connect to Autonomous AI Database works whether Mutual TLS (mTLS) authentication is set to Required or Not required, and regardless of whether Access Control List is Enabled or Disabled in the Network section of the details page.

  2. Download the wallet by following the steps described in Download Client Credentials (Wallets).
  3. Unzip the credentials file and note the path to your unzipped wallet directory on your client computer.
  4. Build the JDBC URL using the connection string in tnsnames.ora file.

    The tnsnames.ora file in your wallet directory contains the descriptions of the available services and connection strings (for example, myadb1_medium) in your Autonomous AI Database. If you need to use a network proxy, you can add https_proxy and https_proxy_port values to the address description of the connection strings in your tnsnames.ora file.

    The JDBC URL string is built as follows:

    jdbc:oracle:thin:@<db_service_name>?TNS_ADMIN=<path_to_wallet_directory>