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

注:为免疑义,本网页所用以下术语专指以下含义:

  1. 除Oracle隐私政策外,本网站中提及的“Oracle”专指Oracle境外公司而非甲骨文中国。
  2. 相关Cloud或云术语均指代Oracle境外公司提供的云技术或其解决方案。