0% found this document useful (0 votes)
194 views

Oracle ADF Training Hands-On Lab Setup Guide

This document provides instructions for setting up a development environment for an Oracle Application Development Framework (ADF) training course. It outlines requirements and steps to download and install Oracle XE Database, JDeveloper IDE, and unlock the HR schema. It also includes an entity relationship diagram of the HR sample application that will be used in the training.

Uploaded by

Deepak Bhagat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views

Oracle ADF Training Hands-On Lab Setup Guide

This document provides instructions for setting up a development environment for an Oracle Application Development Framework (ADF) training course. It outlines requirements and steps to download and install Oracle XE Database, JDeveloper IDE, and unlock the HR schema. It also includes an entity relationship diagram of the HR sample application that will be used in the training.

Uploaded by

Deepak Bhagat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Develop Rich Web Applications

with ADF 12c Essentials


Hands-on Lab Setup Guide

Author: Deepak Bhagat


Fusion Functional Consultant,
Solution Architect & ADF Trainer

Free Downloadable Course material: GDrive Link


Deepak Bhagat’s Oracle ADF Blogs
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

Table of Contents
1. System Requirements for ADF Training ............................................................... 1
2. Oracle Technology Resource Account Login ......................................................... 1
3. Downloading and Installing Oracle XE Database .................................................. 1
4. Downloading and Installing JDeveloper ............................................................... 2
5. Unlocking HR Schema ........................................................................................ 6
6. Entity Relation Diagram of HR System ................................................................. 8
7. Working with JDev IDE Configuration Files ........................................................ 10
8. Java for Beginners ........................................................................................... 10
9. References ...................................................................................................... 11

Free Downloadable Course material: GDrive Link


Deepak Bhagat’s Oracle ADF Blogs: www.cloudadfdeepakb.blogspot.com

ADF Essentials Training by Deepak Bhagat


Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

1. System Requirements for ADF Training


1) Personal laptop with admin access (Logged in user must be an Admin)
2) Software versions and requirements on your laptop, for Oracle ADF Training:
Requirements Recommended Minimum Value
RAM 4 GB of RAM (Preferably 8 GB). (I use 16 GB).
1024 X 768 resolution or more. Prefer extra extended
Display large monitor, to attend lecture and lab simultaneously.
Hard Drive Space 3+ GB
OS MS Windows 7+, Linux
Java JDK 1.7 Update 15+
Oracle XE 11.2 Database 11.2.0.2.0
ADF, JDeveloper and 12.2.1.0.0 (not latest)
Fusion Middleware (12c) (Do NOT use 12.2.1.1.0 or later)
Oracle Technology https://www.oracle.com/technical-resources ->
Resource Account View Accounts -> Oracle Account -> Sign-In

2. Oracle Technology Resource Account Login


Login to your Oracle Resource account. Create one if necessary. The URL is
https://www.oracle.com/technical-resources -> View Accounts -> Oracle Account -> Sign-In.

3. Downloading and Installing Oracle XE Database


1) Link to download latest Oracle XE 11gR2 database:
a) https://download.oracle.com/otn/nt/oracle11g/xe/OracleXE112_Win64.zip or
b) https://www.oracle.com/database/technologies/xe-prior-releases.html or
c) copy an executable file from someone who has already downloaded.
2) Links for Installing Oracle XE Database:
http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#XEINW123
While Installing Oracle DB it will ask for system (SYS or SYSTEM) password. So, enter
a password and save it for later use. Example sysadmin (used for this lab).

3) Links for starting Oracle XE Database:


http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#XEINW133

1/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

4. Downloading and Installing JDeveloper


1) Link to download JDeveloper 12.2.1.0.0:
https://www.oracle.com/tools/downloads/jdev-v12210-downloads.html.
2) Links for Installing JDeveloper:
https://docs.oracle.com/middleware/1221/jdev/install/GUID-311BD061-083E-403A-
8FE7-4D78EEAFCB45.htm#OJDIG114
3) Unzip jdev_suite_122100_win64-2.zip.
4) Right-click on jdev_suite_122100_win64.exe file and select Run as
Administrator. Click Yes.
Oracle JDeveloper Studio Installation wizard appears.
5) On the Welcome page of the wizard, click Next.
6) On the Auto Updates page of the wizard, ensure Skip Auto Updates is selected
and click Next.
7) On the Installation Location page of the wizard, in the Oracle Home field, change
the path to C:\Oracle\Middleware122100.

8) Click Next. Click Next.


9) On the Installation Summary page of the wizard, click Install.
10) On the Installation Progress page of the wizard, after installation is completed,
click Next.
11) On the Installation Complete page of the wizard, select Customize Settings
and Then Start JDeveloper. Click Finish.
Note: Do NOT miss this Important Step. See image below.

2/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

12) Oracle JDeveloper Studio Settings wizard appears.


a) In the Default User Directory field, enter D:\<<User>>\.jdeveloper.
b) In the JDeveloper Work Directory field, enter
D:\<<User>>\BATJDev122100. Click OK.

D:\Deepak-PC\.jdeveloper

B
D:\Deepak-PC\BATJDev122100

13) Links for Starting JDeveloper:


https://docs.oracle.com/middleware/1221/jdev/install/GUID-533986A2-EF19-44B3-
B2BA-7090DB6F8891.htm#OJDIG129
14) After installing the JDeveloper run the Weblogic Server by clicking Run > Start
Server Instance (as shown in below image) and giving the password as weblogic1
(as shown in below image) and test whether it is running successful or not.

3/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

15) To start JDeveloper, click on the Start menu > Oracle > Oracle JDeveloper
Studio, or double-click on the desktop shortcut .

4/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

5/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

5. Unlocking HR Schema
1) After Installing Oracle XE, you can access ‘system’ schema but not ‘hr’ schema. ‘hr’
schema comes along with Oracle XE database, but locked. To unlock ‘hr’ schema from
database to grant permission to the users to utilize this schema, follow below steps.
a) Click Start > expand Oracle Database 11g Express Edition > select Run
SQL Command Line.

Run SQL Command Line editor opens.


b) In the editor, enter connect; command
c) Enter the user name and password for the ‘system’
Enter user-name: system (case insensitive)
Enter password: sysadmin (case sensitive)
d) Enter the following command to unlock the ‘hr’ Schema
SQL> ALTER USER HR IDENTIFIED by hr ACCOUNT UNLOCK;
e) Exit from the editor by giving command “exit” or by closing directly.
f) Now login with ‘hr’ user and password
User Name: hr (case insensitive)
Password: hr (case sensitive)
g) Now you can use all tables specified in tutorial.
h) Unlocking the HR Schema
OR
2) Alternatively, you can also unlock ‘hr’ Schema from JDeveloper as follows
a) Once you are connected as system, expand the tree in the connection panel
as Connections->SYSTEM->Other Users
b) Right-click on HR to access the Edit User dialog.

6/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

c) Within the dialog, simply uncheck the box entitled Account is Locked and
click Apply.

d) After completing this process, you should now have a fully functional Oracle XE
database with the example HR schema unlocked.

7/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

6. Entity Relation Diagram of HR System

8/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

9/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

7. Working with JDev IDE Configuration Files


1) The locations from where you can start JDeveloper apart from the shortcuts are:
 MW_HOME\jdeveloper\jdeveloper.exe
 MW_HOME\jdeveloper\jdev\bin\jdevw.exe
 MW_HOME\jdeveloper\jdev\bin\jdev.exe
The first two options have the same purpose. The last option will open along with a
console for diagnostic purposes. Example of MW_HOME is
C:\Oracle\Middleware122100.
2) An alternate way for this is to set the JDEV_USER_DIR environment variable that
points to the user's current working directory.
JDEV_USER_HOME and JDEV_USER_DIR are the variables that are listed in the
MW_HOME\jdeveloper\jdev\bin\jdev.boot file. JDeveloper will look up these variables
on startup to set the user's directory. For example:
set JDEV_USER_HOME=C:\Users\<<User>>\AppData\Roaming\JDeveloper
set JDEV_USER_DIR=D:\<<User>>\BATJDev122100\mywork
3) Location of IDE configuration files:
a) MW_HOME\jdeveloper\ide\bin\ide.conf
b) MW_HOME\jdeveloper\jdev\bin\jdev.conf
4) Location of IDE boot files:
a) MW_HOME\jdeveloper\ide\bin\ide.boot
b) MW_HOME\jdeveloper\jdev\bin\jdev.boot

8. Java for Beginners


Following links are limited Java necessary for ADF. Those moving to ADF from non-Java
background may find these sufficient to learn Java.
 http://www.javatpoint.com/simple-program-of-java
 http://www.javatpoint.com/variable-datatype
 http://www.javatpoint.com/operators-in-java
 http://www.javatpoint.com/object-and-class-in-java
 http://www.javatpoint.com/constructor
 http://www.javatpoint.com/static-keyword-in-java
 http://www.javatpoint.com/this-keyword
 http://www.javatpoint.com/interface-in-java
 http://www.javatpoint.com/access-modifiers
 http://www.javatpoint.com/package

10/11
ADF Essentials Training by Deepak Bhagat
Develop Rich Web Application with ADF 12c Essentials – Hands-on Lab Setup Guide

9. References
1) JDeveloper and ADF Release 12.2.1.0.0:
https://www.oracle.com/tools/downloads/jdev-v12210-downloads.html
2) JDeveloper and ADF Latest Release, Technical Resources & Learn more:
https://www.oracle.com/application-development/technologies/jdeveloper.html
3) ADF Homepage:
https://www.oracle.com/database/technologies/developer-tools/adf/
4) Step by Step Building Simple Demo Application with ADF:
a) http://docs.oracle.com/cd/E53569_01/tutorials/tut_rich_app/tut_rich_app.html
b) http://docs.oracle.com/cd/E53569_01/tutorials/tut_rich_app_alta/tut_rich_app_al
ta_1.html
5) ADF Faces Rich Component Demos:
https://docs.oracle.com/middleware/1221/adf/develop-faces/GUID-EE22FD96-2723-
4F07-95A9-04931E42C365.htm
6) ADF Code Corner:
https://www.oracle.com/application-development/technologies/adf/codecorner.html
7) ADF Forums:
https://community.oracle.com/community/java/java_development_tools/application
_development_in_java/jdeveloper_and_adf

11/11
ADF Essentials Training by Deepak Bhagat

You might also like