1 Prerequisites
The following sections provide information about the tasks that you need to perform before establishing a connection to Oracle Database.
- Installing Oracle Database
This section lists a few resources that you can use to install Oracle Database Express Edition (XE) 21c. If you have already installed Oracle Database and have the credentials, then you can skip this step. - Installing JDK 8
This section lists the step to install JDK 8. - Creating a Database User (Optional)
This section lists the steps to create a database user. - Downloading a Sample Java Program from Github
This section lists the steps to download a sample Java Program from Github.
1.1 Installing Oracle Database
This section lists a few resources that you can use to install Oracle Database Express Edition (XE) 21c. If you have already installed Oracle Database and have the credentials, then you can skip this step.
- Windows or Linux platform: Download and install Oracle Database Release 21c Oracle XE QuickStart.
- Docker on Mac: Install and run the Oracle XE on Docker following the instructions from this blog Oracle Database XE Release 21c (21.3.0.0) Docker Image Documentation.
- More Resources: Video showing how to install Oracle Database XE on Windows and conduct basic administration.
Parent topic: Prerequisites
1.2 Installing JDK 8
This section lists the step to install JDK 8.
Install JDK 8 or a higher JDK version that is a long-term release. For example, JDK 11 or JDK 17.
Parent topic: Prerequisites
1.3 Creating a Database User (Optional)
This section lists the steps to create a database user.
Note:
If you already have a database user and password, then you can skip this step.
It is recommended to create a new database user when verifying the database connection. If you are not familiar with creating a database user and assigning privileges, then you can use the CreateUser.java
file to create a new database user.
Parent topic: Prerequisites
1.4 Downloading a Sample Java Program from Github
This section lists the steps to download a sample Java Program from Github.
Parent topic: Prerequisites