To be able to develop the sample application, you need to install the following products and components:
The following subsections describe these requirements in detail.
To develop the Java application, you need a working installation of Oracle Database 12c Release 2 (12.2) Server with the HR
schema, which comes with the database. The installation creates an instance of Oracle Database 12c Release 2 (12.2) and provides additional tools for managing this database. For more information, refer to the following Oracle Database 12c Release 2 (12.2) installation guides and release notes:
The HR
user account, which owns the sample HR schema used for the Java application in this guide, is initially locked. You must log in as a user with administrative privileges (SYS
) and unlock the account before you can log in as HR
.
If the database is locally installed, use the Run SQL Command Line to unlock the account as follows:
You should see a message indicating that you have connected to the database.
Note:
For information about creating and using secure passwords with Oracle Database 12c Release 2 (12.2), refer to Oracle Database Security Guide.
In addition, some of the constraints and triggers present in the HR
schema are not in line with the scope of the Java application created in this guide. You must remove these constraints and triggers as follows using the following SQL statements:
DROP TRIGGER HR.UPDATE_JOB_HISTORY; DROP TRIGGER HR.SECURE_EMPLOYEES; DELETE FROM JOB_HISTORY;
To create and compile Java applications, you need the full Java 2 Platform, Standard Edition, Software Development Kit (J2SE SDK), formerly known as the Java Development Kit (JDK).
Note:
Oracle Database 12c Release 2 (12.2) supports JDK 8.
See Also:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
for information about installing Java
http://www.oracle.com/technetwork/java/overview-141217.html
for information about the JDBC API
For ease in developing the application, you can choose to develop your application in an integrated development environment (IDE). This guide uses Oracle JDeveloper to create the files for this application. For more information about installing JDeveloper, refer to Installing Oracle JDeveloper.
The sample application developed in this guide uses JavaServer Pages (JSP) technology to display information and accept input from users. To deploy these pages, you need a Web server with a servlet and JSP container, such as the Apache Tomcat application server.
This guide uses the embedded server called the Oracle WebLogic Server in JDeveloper for deploying the JSP pages. If you choose not to install Oracle JDeveloper, then any Web server that enables you to deploy JSP pages should suffice.
For more information about these servers, please refer to vendor-specific documentation.