QuickStart Java applications with Oracle AI Autonomous Database

This quick start guide shows how to successfully establish a connection to the Oracle Autonomous Database (ADB) using the Oracle JDBC driver.  Connections can be setup to use one-way TLS or mutual TLS (mTLS) .

If you would like to connect to the Oracle Database (On-Premises) or Oracle Cloud Database,  see QuickStart Java applications with Oracle Database (On-premises). 

Refer to Oracle JDBC Developer Center for other technical briefs, blogs, videos etc.,

Pre-requisites (one-wayTLS and mTLS)

  • Pre-requisites (one way TLS)

    • 1. Use or provision an ADB instance
    • 2. Remove Mutual TLS (mTLS) Requirement
    • 3. Install latest JDK
    • 4. Download a sample program from GitHub
  • Pre-requisites (mutual TLS)

    • 1. Use or provision an ADB instance
    • 2. Obtain Client Credentials
    • 3. Install the JDK
    • 4. Download a sample program from GitHub

Maven and Gradle

  • Maven Project

    • 1. Setup a Maven project
    • 2. Build and Run a Sample Java Program
  • Gradle Project

    • 1. Setup a Gradle project
    • 2. Build and Run the Gradle App

Eclipse and IntelliJ

  • Eclipse

    • 1. Setup a Maven project
    • 2. Build and Run a Sample Java Program
  • IntelliJ

    • 1. Setup a Maven project
    • 2. Build and Run ADBQuickStart

No Build Tools

  • No Build Tools

    • 1. Download JDBC Driver and other Jars
    • 2. Build and Run a Sample Java Program