Sie sind auf Seite 1von 41

HOW TO INSTALL ORACLE APEX 5.

0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Oracle Application Express 5.0

Installation Guide
With Oracle Database 12C Enterprise Edition

M Kamal Hossain
www.apexexplorer.com
dbhossain@yahoo.com
skype: apexexplorer

www.apexexplorer.com

1
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Table of Contents
Part 1. Overview 3
Part 2. Installing Oracle Database 12C Enterprise Edition (EE) 3
2.1 General Installation Steps 3
2.1.1 Downloading Oracle Database 12C installation file 3
2.1.2 Merging Database Installation files in to a single disk file 3
2.1.3 Start Oracle Database Installation 6
2.1.4 Installer Step-1, Configure Security Updates 7
2.1.5 Configure Security Updates, Installer Warning Message 8
2.1.6 Installer Step-2, Select Installation Options 8
2.1.7 Installer Step-3, System Class 8
2.1.8 Installer Step-4, Grid Installation Options 9
2.1.9 Installer Step-5, Select Install Type 9
2.1.10 Installer Step-6, Select Product Languages 10
2.1.11 Installer Step-7, Select Database Edition 10
2.1.12 Installer Step-8, Specify Oracle Home user 11
2.1.13 Installer Step-9, Specify Installation Location 12
2.1.14 Installer Step-10, Select Configuration Type 13
2.1.15 Installer Step-11, Specify Database Identifiers 14
2.1.16 Installer Step-12, Specify Configuration Options 15
2.1.17 Installer Step-13, Specify Database Storage Options 18
2.1.18 Installer Step-14, Specify Management Options 19
2.1.19 Installer Step-15, Specify Recovery Options 20
2.1.20 Installer Step-16, Specify Schema Password 20
2.1.21 Installer Step-17, Perform Prerequisite Checks 22
2.1.22 Installer Step-18, Summary of selection 23
2.1.23 Installer Step-19, Install product in progress... 24
2.1.24 Installer Step-20, Installation was successfully finished. 27
Part 3. Installing Oracle Application Express 5.0 29
3.1 Creating Table Space for Apex installation 29
3.1.1 Downloading Oracle Apex 5.0 Installation file 29
3.1.2 Creating Table Space for Apex Installation 29
3.1.3 Locating Oracle Apex 5.0 source file in the command prompt for install 30
3.1.4 Start Installation of Apex 5.0 31
3.1.5 Apex Installation in progress 32
3.1.6 Loading Apex required Images into Database 34
3.1.7 Unlocking required database users. 35
3.1.8 Defining Apex Administrator and authentication 36
3.1.9 Defining apex http port 37
3.1.10 Embedded PL/SQL Gateway (EPG) Configuration 37
3.1.11 Create the APEX_LISTENER and APEX_REST_PUBLIC_USER 39
3.1.12 Launching Oracle Apex 5.0 Interface www.apexexplorer.com 40

Part 1. Overview
2
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

This guide provides a step by step walk-through of a basic Oracle Apex 5.0 Installation. If you are new to
installing Oracle Apex 5.0, the Oracle document provides too much detail for every possible platform.
Therefore, I decided to create this comprehensive, step by step guide with clear instruction on how to set
up a Oracle Apex 5.0 environment.

The installation in this document is based on a Windows Server 2008 SP2 64-bit platform, with
Oracle database 12C Enterprise Edition. Besides you can find my other Installation guide for Oracle apex
4.2.2 with Oracle database 11g R2 EE from my blog www.apexexplorer.com

If you already have a pre-configured database then you can skip the
part of Oracle Database installation steps.

Part 2. Installing Oracle Database 12C Enterprise Edition


As Oracle Apex will be installed inside the database, so a pre-configured database is the pre-requisite of
Oracle Apex installation. For this reason we are going to install and configure Oracle Database first.

2.1 General Installation Steps


2.1.1: Downloading Oracle Database 12C installation file:

Visit the Oracle website and go to the download section to download the required database
installation source file as shown in the below:

Oracle Database 12c Release 1 (12.1.0.2.0) for Microsoft Windows (x64)


winx64_12102_database_1of2.zip (1,580,194,397 bytes)
winx64_12102_database_2of2.zip (1,183,299,689 bytes)
if your computer system is not 64 bit architecture based then you can go for winx32 file

2.1.2: Merging Database Installation files in to a single disk file

This is important to unzip the installation files and merge the both disks in to a single disk file. If
the merging is not correctly done, installation will fail due to file dependency error.

So, we will learn here the technique how to unzip and make a single disk of installer correctly.

After downloading the above file you will get 2 zipped file as shown below:

www.apexexplorer.com

Let us Create a blank separate folder inside your computer drive as shown in the below:

"Oracle Database 12C_R1" folder will be our final installer disk(Merged disk).

3
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

First, unzip "Win64_12102_database_1of2.zip" in any drive of your computer. Now go to


inside this extract file and copy the folder 'database' and paste inside the folder "Oracle Database
12C_R1" that you created in the above.

FIg:1 After extracting "winx64_12102_database_1of2.zip" you will find the above folder inside it.

Fig: 2 showing content of Extracted folder " Win64_12102_database_1of2" (database folder) has been
moved to the "Oracle Database 12C_R1" folder.

Now time to unzip folder " winx64_12102_database_2of2.zip". After unzip this file, go to inside
and find folder "Components" as shown below
D:\.....\winx64_12102_database_2of2\database\stage\Components

www.apexexplorer.com

Fig: 3 Showing the content of "Components" folder of " winx64_12102_database_2of2" after being
extracted.

4
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Now copy the above contents of components folder (5 folders) as shown in Fig:3 and Paste inside the
Components folder of "D:\Oracle Database 12C_R1\database\stage\Components as shown in the
Figure-4

Fig:4 Showing the contents of components folder from winx64_12102_database_2of2 has been moved
inside the Components folder of " Oracle Database 12C_R1"
www.apexexplorer.com

So, we have made a single complete disk of Oracle Database 12C installer.

2.1.3: Start Oracle Database Installation


From the "Oracle Database 12C_R1" folder find the setup.exe and double-click to start the installation.

5
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Oracle Universal Installer will be launched as shown in the Figure 6 to 7.

Fig: 5

Fig: 6
www.apexexplorer.com

6
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig: 7

2.1.4: Installer Step-1, Configure Security Updates


Leave the email address blank, uncheck the checkbox of 'I wish to receive.....' and Click 'Next>' button

www.apexexplorer.com

2.1.5: Configure Security Updates, Installer Warning Message

7
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Just ignore the warning message in this stage by clicking "Yes" button

2.1.6: Installer Step-2, Select Installation Options

Choose "Create and configure a database" option button and click 'Next>' button

2.1.7: Installer Step-3, System Class

Choose "Server Class" as system class and click 'Next>' button

www.apexexplorer.com

8
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.8: Installer Step-4, Grid Installation Options

Choose "Single instance database installation" as Grid Installation options and click 'Next>' button.

www.apexexplorer.com

2.1.9: Installer Step-5, Select Install Type

Choose "Advanced Install" as Install type and click 'Next>' button.

9
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.10: Installer Step-6, Select Product Languages

I have selected English as my useful language. You can select as you need. click 'Next>' button

www.apexexplorer.com

2.1.11: Installer Step-7, Select Database Edition

Choose "Enterprise Edition" and click 'Next>' button

1
0
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.12: Installer Step-8, Specify Oracle Home user

Go to your Operating system and find user creation wizard. create any user that you prefer, I have
created a user named oracle. Remember this user must be general user, administrative privilege will not
be allowed for oracle home user and OS password complexity must be maintained. I have assigned
password for this example "Kamal123"

After creating user from OS end, come back to this screen and choose "Use Existing Windows user"
and input user name and password. Now click 'Next>' button.

www.apexexplorer.com

1
1
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.13: Installer Step-9, Specify Installation Location

I have selected the default location in drive C, you can choose your desired location here, click 'Next>'
button

www.apexexplorer.com

1
2
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.14: Installer Step-10, Select Configuration Type

Choose "General Purpose/Transaction processing" click 'Next>' button

www.apexexplorer.com

1
3
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.15: Installer Step-11, Specify Database Identifiers


I have selected the default Database name and SID (orcl), Left the checkbox "Checked" and kept
pluggable database name pdborcl as default. you can choose different name for each entry if you like.
click 'Next>' button

www.apexexplorer.com

1
4
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.16: Installer Step-12, Specify Configuration Options

I have enabled the sample schemas by checking the checkbox in the Sample Schemas Tab. In the
Memory Tab I have enabled the automatic memory management by checking the check box. click 'Next>'
button.

www.apexexplorer.com

1
5
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

1
6
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

1
7
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

2.1.17: Installer Step-13, Specify Database Storage Options


Enable the "File System" and keep the database file location default. click 'Next>' button.

www.apexexplorer.com

2.1.18: Installer Step-14, Specify Management Options


Leave this screen blank as shown by default. click 'Next>' button.
1
8
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2.1.19: Installer Step-15, Specify Recovery Options

Enable Recovery by checking the checkbox and choose File System and keep the default recovery area
location as shown. click 'Next>' button.

1
9
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2.1.20: Installer Step-16, Specify Schema Password

Choose "Use the same password for all accounts" option and enter your desired password. I have
entered sys as password and have ignored the password recommendation warning. Click 'Next>' button.

2
0
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2.1.21: Installer Step-17, Perform Prerequisite Checks

Installer will automatically check the prerequisite of installation.

2
1
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2.1.22: Installer Step-18, Summary of selection


Click 'Install' button.

2
2
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2.1.23: Installer Step-19, Install product in progress...

Have patience in this stage to complete the full and final installation steps.

2
3
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2
4
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2
5
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2
6
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

www.apexexplorer.com

2.1.24: Installer Step-20, Installation was successfully finished.


2
7
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

The Installation of Oracle Database was successful.

www.apexexplorer.com

Part 3. Installing Oracle Application Express 5.0


2
8
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

3.1 General Installation Steps


3.1.1: Downloading Oracle Apex 5.0 Installation file

Go to the Oracle website and download the Oracle Apex 5.0 installation file and unzip it.

apex_5.0_en.zip

In my system after unzipped, Apex 5.0 installation file located in the below directory:
D:\SOFTWARES\ORACLE\apex_5.0_en

3.1.2: Creating Table Space for Apex Installation

There is no GUI Wizard for Oracle Apex Installation. We have to install and configure it inside the Oracle
database server running several scripts manually. Create a separate Tablespace named APEX _TS
where Oracle Apex will store its own files.

Open a command prompt window and log in to the database using SYS user with SYSDBA privilege.
Create a table space named 'APEX_TS' using the below command (Figure 3-1 & 3-2):

SQL> create tablespace apex_ts datafile 'C:\app\oracle\oradata\orcl\apex_ts.dbf'


size 5000M autoextend on next 1m
segment space management auto
extent management local;

Note: After typing the above command press Enter key to execute the command. You can enter any
directory for data file location

www.apexexplorer.com

Figure: 3-1 showing how to connect database with sys user and create Table Space for apex installation.
2
9
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

3.1.3: Locating Oracle Apex 5.0 source file in the command prompt for install
After successfully created the above table space 'APEX_TS', quit from database connection if
you are already connected or open a new command prompt window as shown in the Figure 3-2,
Now get into the Oracle apex 5.0 installation source directory as shown below

Tablespace created.
SQL> quit
C:\Users\Administrator> cd D:\SOFTWARES\ORACLE\apex_5.0_en\apex
C:\ >D:
D:\SOFTWARES\ORACLE\apex_5.0_en\apex

Fig: 3-2

3.1.4: Start Installation of Apex 5.0


www.apexexplorer.com

Make sure you are inside the oracle apex installation file directory as shown in the Fig 3-2. now
log in to the database using user SYS with SYSDBA privilege as shown in the Figure 3-3

Now type the below command and press Enter key to start installation :

SQL> @apexins APEX_TS APEX_TS TEMP /i/

Note: Make sure there is at least 1 space between @apexins and APEX_TS, APEX_TS and
APEX_TS, APEX_TS and TEMP, TEMP and /i/

3
0
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig: 3-3

3.1.5: Apex Installation in progress

Apex installation will continue and it will take 25 to 40 minutes, depending on your system configuration.
You can find the installation progress in the Figure 3-4 to 3-6

www.apexexplorer.com

Fig: 3-4

3
1
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig: 3-5

www.apexexplorer.com

Fig: 3-6

3.1.6: Loading Apex required Images into Database


3
2
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

After completing the apex installation successfully, make sure you are inside the apex installation
directory in the command prompt as you have done in the previous steps and if you are not connected in
the database then connect using SYS user with SYSDBA privilege.

Type the below command and press Enter key to start loading images in the database (Figure 3-7):

SQL> @apxldimg

PL/SQL procedure successfully completed.

Enter value for 1: D:\SOFTWARES\ORACLE\apex_5.0_en

After entering value for 1 press Enter key and the images will be started loading. Usually it takes 10 to 15
minutes, but depends on system configuration. Figure 3-8 showing the end of successfully images
loading.

Fig: 3-7

www.apexexplorer.com

3
3
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig: 3-8

3.1.7: Unlocking required database users.

After completing the above stages, make sure you are inside the apex installation
directory in the command prompt as you have done in the previous steps and if you are not
connected in the database then connect using SYS user with SYSDBA privilege.

Now type the below command and execute (Figure 3-9):

SQL> ALTER USER ANONYMOUS IDENTIFIED BY ANONYMOUS ACCOUNT UNLOCK;

SQL> ALTER USER XDB IDENTIFIED BY XDB ACCOUNT UNLOCK;

SQL> ALTER USER APEX_PUBLIC_USER IDENTIFIED BY APEX_PUBLIC_USER


ACCOUNT UNLOCK;

SQL> ALTER USER FLOWS_FILES IDENTIFIED BY FLOWS_FILES ACCOUNT UNLOCK;

www.apexexplorer.com

3
4
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig: 3-9

3.1.8: Defining Apex Administrator and authentication

After completing the above stages, make sure you are inside the apex installation directory in the
command prompt as you have done in the previous steps and if you are not connected in the database
then connect using SYS user with SYSDBA privilege.

Type the below command and execute (Figure 3-10)

SQL> @apxchpwd

Enter the administrator's username [ADMIN]

Enter Admin's email [admin] dbhossain@yahoo.com

Enter Admin's Password [ ] *****

Changed password of instance administrator Admin

www.apexexplorer.com

Fig: 3-10

3.1.9: Defining apex http port


3
5
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

After completing the above stages, make sure you are inside the apex installation directory in the
command prompt as you have done in the previous steps and if you are not connected in the database
then connect using SYS user with SYSDBA privilege

Execute the below query to check the current http port (Figure 3-11)

SQL> SELECT DBMS_XDB.gethttpport FROM DUAL;

GETHTTPPORT
--------------------
0
Execute the below command to set the http port. you can set any port number that you desire. default
port is 8080, I have assigned 7777.

SQL> EXEC DBMS_XDB.sethttpport(7777);

PL/SQL procedure successfully completed.

FIg: 3-11
www.apexexplorer.com

3.1.10: Embedded PL/SQL Gateway (EPG) Configuration

After completing the above stages, make sure you are inside the apex installation directory in the
command prompt as you have done in the previous steps and if you are not connected in the database
then connect using SYS user with SYSDBA privilege

Run the below script and provide Oracle database installation base directory as parameter and press
Enter Key as shown (Figure 3-12,3-13)

3
6
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

SQL> @apex_epg_config

Enter value for 1: C:\app\oracle

Here 'C:\app\oracle' is the base directory of the Oracle Database installation in my system as shown in
the Figure 3-12, your base directory might be different than me, please check your base directory.
This step will take couple of minutes to complete

Fig: 3-12

www.apexexplorer.com

3
7
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig:3-13

3.1.11: Create the APEX_LISTENER and APEX_REST_PUBLIC_USER

After completing the above stages, make sure you are inside the apex installation directory in the
command prompt as you have done in the previous steps and if you are not connected in the database
then connect using SYS user with SYSDBA privilege

Execute the below query to check the current http port (Figure 3-14)

SQL> @apex_rest_config

Enter password for the APEX_LISTENER user [ ]

Enter password for the APEX_REST_PUBLIC_USER user [ ]


www.apexexplorer.com

3
8
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig:3-14

3.1.12: Launching Oracle Apex 5.0 Interface

Open a browser window and type the below url:


http://<your computer IP>:port/apex
Here port number you provided in the stage 3.1.9, If you forgot the port number that you provided, then
do the step 3.1.9 again.
http://<your computer name>:port/apex

http://192.168.1.20:7777/apex
http://rnd:7777/apex

Note: here 192.168.1.20 is my computer IP and rnd is my computer name.


you will see the login screen in the Fig 3-14
www.apexexplorer.com

Provide the below login information:

workspace : Internal
3
9
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

user name : admin

password: <admin password> you provided this password in the stage 3.1.8

if you forgot the password then do the stage 3.1.8 again.

Fig: 3-15

www.apexexplorer.com

4
0
HOW TO INSTALL ORACLE APEX 5.0 WITH DATABASE 12C ENTERPRISE EDITION May 1, 2015

Fig: 3-16

End of Document, Thank you

www.apexexplorer.com

4
1

Das könnte Ihnen auch gefallen