QuickStart Java applications with Oracle Database (On-premises)

This quick start guide shows how to successfully establish a connection to the Oracle Database (On-Premises) or Oracle Cloud Database that uses TCP connections. You can check out Develop Java Applications for Oracle Autonomous Database if you want to connect to Oracle Autonomous Database.

Pre-requisites

    • 1. Install Oracle AI Database
    • 2. Install the JDK
    • 3. Create the Database User (Optional)
    • 4. Download a sample program from Github

Maven and Gradle

  • Maven

    • 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 QuickStart

No Build Tools

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