Install Apex Using WebLogic11g - 12C PDF
Install Apex Using WebLogic11g - 12C PDF
Fig: 1 Showing Oracle Apex direct access without any Middle tier Like Oracle WebLogic Server.
Fig: 2 Showing Oracle Apex access using Middle Tier using Oracle WebLogic Server.
Installation Steps:
1. Oracle Database Server Installation & Configuration
2. Oracle Apex Installation & Configuration
3. Oracle WebLogic Server Installation & configuration
4. Deploying Oracle Apex into Oracle WebLogic Server
If you have already Installed and configured Oracle Database server 11g or prior versions then skip
this installation Step-1. Also keep in mind, you can use Oracle Database Express edition in this
installation process. I have used Oracle Database 11g Enterprise Edition Release 2 in this Installation
guide.
Go to the site mentioned below and download Oracle Database 11g Release 2:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
After downloading Oracle Database 11g R2 (Enterprise or Express edition), Install & configure it. Oracle
Installer GUI window is so user friendly which will guide you through to install the entire process.
Note: you can download and configure Other Prior version of Oracle Database like 10g (Express or
Enterprise edition) that will work for you.
If you have already Installed and configured Oracle Apex 4.2.1 or prior any versions like Apex 4.2 or
Apex 4.x.x then skip this installation Step -2
Step 2-A: Downloading & Extracting Oracle Apex from Oracle official site
Here I assume you have downloaded the file in your Computer Drive: D, Rest of the entire installation
process we will consider the directory path Drive D, but you can change your drive here if different.
Now unzip your Apex folder in the Drive D and finally after Unzipped it will look like below:
If you already have a Tablespace with minimum size 500MB then you can skip this part. Here keep in
mind we should not use any Oracle Database System used Tablespace like SYSTEM, SYSAUX, TEMP etc.
It is recommended to use user defined Tablespace.
May be I am giving you the sad news; there is no GUI for Oracle Apex Installation. You have to install it in
the Oracle Database Server, and to complete the installation process smoothly we are creating a
separate Tablespace named APEX where Oracle Apex will store all associated files in it.
Open a command prompt window from Windows start menu: (For quick invoking type cmd in the run)
Now type SQLPLUS SYS AS SYSDBA , See Figure - 3
To complete the entire installation process of Apex Installation you have to login to the Database
using User SYS with SYSDBA Privilege
Fig: 3 Command prompt window showing to connect database using SYS user with SYSDBA privilege
After connected with Database you have to execute the blow Tablespace command to create new
Tablespace. Here you might have different data file location. Please check your physical directory.
Note: in the above command of creating Tablespace you can consider any Drive of your computer to
locate the Tablespace data file. Here I have tried to keep the Tablespace in the directory where Oracle
Database has created its own Tablespace. In the above command HOMEDBASE is my oracle Database
SID, D:\OraHOME11GR2 is my Oracle database home directory that I defined during Oracle database
installation.
Step 2-C: Installing Oracle Apex 4.2.1 (you can install Apex 3.x.x or Apex 4.x.x as the same process)
Open your command prompt terminal and go into Directory where you have downloaded and Unzipped
your Oracle Apex Folder:
Type in the command prompt CD D:\apex_4.2.1_en\apex
See in Figure - 4
Fig: 4 showing how to change directory in command prompt and connect to the database.
After going into the directory of D:\apex_4.2.1_en\apex from command prompt, you have to connect
to the Database with the user SYS with SYSDBA Privilege as shown in Figure - 4.
D:\apex_4.2.1_en\apex> SQLPLUS SYS AS SYSDBA
Now let us execute the script apexins.sql and start the installation as the below way:
SQL> @apexins APEX APEX TEMP /i/
After typing the above command Press Enter, See in Figure – 5
After executing the above command your Apex IDE installation process will be started and it will take 40
to 50 minutes but it depends on your system’s configuration.
Step 2-D: To Load Apex Images into Oracle Database which is mandatory to run Apex IDE
If you are not connected in the Database using SYS with SYSDBA privilege then please connect to the
database and execute the script apxldimg.sql , Also keep in mind you must have to get into the apex
directory D:\apex_4.2.1_en\apex in the command prompt before connecting to the database and
executing the script as you have done in the prior steps. Otherwise you cannot open the script to
execute
If you are not connected in the Database using SYS with SYSDBA privilege then please connect to the
database and execute the script apxchpwd.sql , Also keep in mind you must have to get into the apex
directory D:\apex_4.2.1_en\apex in the command prompt before connecting to the database and
executing the script as you have done in the prior steps. Otherwise you cannot open the script to
execute
SQL> @apxchpwd.sql
If you are not connected again in the database then connect using SYS with SYSDBA privilege and
execute the below command, in this case you need not to go any Directory in the command prompt.
Open a browser window and type the below url to run Oracle Apex IDE :
So, if your computer name like HomeOffice and port is 2013 then type below:
http://homeoffice:2013/apex
http://homeoffice:8080/apex (if your HTTP port is 8080 and computer name homeoffice)
http://localhost:8080/apex (if you type localhost and the HTTP port is 8080)
http://192.168.1.101:2013/apex (if you type your computer IP and your HTTP port is 2013)
Note: After opening your Oracle Apex login screen, as it is the first time login, please put the below
authentication:
WORKSPACE = Internal
USERNAME = admin
Password = <the password that you had assigned in Step 2-E>
**If you forget password then you can reset password running the script @apxchpwd same as Step 2-E
After successfully login you will be asked to change the password, please put your old password, new
password & Confirm password, Apply changes and return again to Login screen.
Now put your new password and get into the Oracle Apex home page.
Step 3-A: Downloading Oracle WebLogic 11g 10.3.3.0 from Oracle official site
Download Oracle WebLogic Server 12C or 11g from Oracle official site, see Figure -6 which file you need
to select to download. Remember after downloading please compare the file size with the source file to
be ensured that downloading was successful otherwise you will find an error during installation.
http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
Fig: 6 showing the short list of Oracle WebLogic Files with different version and Environment.
In this Installation example we are using Oracle WebLogic 11g 10.3.3.0 version, you can do the same
way for WebLogic 12C
After downloading the above WebLogic server Installation file you will have the .exe File as shown below
Now click the above wls1033_win32.exe file and then the screen shown in Figure – 7 displays.
Now click Next> button and the screen shown in Figure – 9 displays
Type the Middleware Home Directory as shown in Fig: 9, (D:\Oracle\Middleware) here you can change
to different directory.
Click Next> button and the screen shown in Figure – 10 displays
Fig: 10 showing Register and security update – this part we will skip in this stage.
In Fig: 11 Leave the type Typical and Press Next> button and the screen shown in Figure – 12 displays.
In Figure – 13 Leave “All Users” Start menu Folder, click Next> button and the screen shown in
Figure -14 displays.
In Figure - 15 you will see the final installation process going on wait here until the process is completed
100%. After completing Installation in Figure – 15 the screen shown in Fig-16 displays.
After a few seconds later the screen shown in Figure – 18 automatically displays.
In the Figure – 19 after initializing configuration wizard the screen shown in Figure – 20 displays
automatically.
In the Figure- 21 leave the “Generate a domain configured automatically to ….” Option and check all
the check boxes that shown, Click Next> button and the screen shown in Figure – 22 displays.
In the Figure – 22 leave the Domain Name and Location that showing default, Click Next> button and the
screen shown in Figure – 23 displays
In the Figure – 23 Leave the Name weblogic and put your desired Password and confirm password, click
Next> button and the screen shown in Figure- 24 displays.
In the Figure – 24 Leave the Available JDKs option and click to highlight the 2nd Sun SDK.. under
available JDKs option shown in the Figure, now click Next> button and the screen shown in Figure- 25
displays.
In the Figure – 25 check all the Check boxes, Click Next> button and the screen shown in Figure- 26
displays.
In the Figure – 26 Leave the Name AdminServer, Enable SSL by clicking the checkbox and Leave all the
Listen port default that shown in the Figure, Click Next> button and the screen shown in Figure – 27
displays.
In the Figure – 27 Leave all the default value that shown, Click Next> button and the screen shown in
Figure – 28 displays.
In Figure- 28 you have a chance displaying an Overriding Warning message, simply click OK button and
the screen shown in Figure – 29 displays.
In the Figure – 29 click the Add link button that you will find at the left top, now fill up the name
weblogic_2, Enables SSL by checking the checkbox and leave all the default port that shown in the
Figure. Now click Next> button and the screen shown in Figure – 30 displays.
In the Figure – 30, Leave this page undone as shown in the Figure, Click Next> button and the screen
shown in Figure – 31 displays.
In the Figure – 31 click Add button that you will find at the top left of the window, for Name put your
computer name, My Machine where I have installed WebLogic Server name is Homeserver, please put
your computer name where the WebLogic server installed. In the Node Manager Listen Address put the
IP address of your computer. To verify the IP address open a command prompt window and Ping the IP
address
Ping 192.168.1.101 –t
Leave the Node manager Listen port default that shown in the Figure.
Now Click Next> button and the screen shown in the Figure – 32 displays.
In the Figure – 33 select the entire Server from Left vertical Pane and Click right Arrow to move to the
Machine vertical Pane. Make sure to move the entire server to the right as shown in the Figure.
Now Click Next> button and the screen shown in Figure – 33 displays.
In the Figure – 33, Check all the check boxes that shown in the Figure. Now click Next> button and the
screen shown in the Figure – 34 displays.
In the Figure – 34 leave the entire name and directory default that shown in the Figure, click Next>
button and the screen shown in the Figure – 35 displays.
In the Figure – 35 Leave Default that shown in the Figure, Click Next> button and the screen that shown
in Figure – 36 displays.
In the Figure – 36 , it is just the summary information of the entire installation and configuration process
that we have made so far, nothing to do here, just click Create button and the screen that shown in
Figure – 37 displays.
In this stage you have to wait until the progress is 100% as shown in the Figure - 38
In the Figure – 38, after the progress of 100% at the bottom of the window check the Start Admin
Server checkbox, click Done button, the screen shown in the Figure – 39 displays.
In the Figure – 40 the WebLogic server is starting up executing the startWebLogic.cmd command file.
Open a new browser window and type the url below to open WebLogic Server Console:
http://<computer name or IP address> : <port> / console
If your computer name homeserver or IP address is 192.168.1.101 and Port 7001 then url will be as
http://homeserver:7001/console
Or
http://192.168.1.101:7001/console
For the first time access after restarting or Installation of WebLogic Server you will have the screen
shown in the Figure – 41, after initiating the WebLogic Server the screen shown in the Figure – 42
displays.
In the Figure – 42, this is the Login screen, Put your username: weblogic and password: the password
that you assigned during configuration, just recall your mind in the steps shown in the Figure – 23
Following same way you can installation Oracle WebLogic Server 12C
Go to your computer Drive in which machine you have installed WebLogic Server:
Go to Drive C and create a Folder named APEXProxy that shown in the Fig: 44
Note: here I consider Drive C; you can change your desired drive (D, E, F...) here
In the Figure – 44 we have created a folder APEXProxy in the C drive, now go inside the Folder
C:\APEXProxy and create a subfolder named apexproxy.war inside it. You will find the final look shown
in the Figure - 45
In the Figure – 45 go inside the apexproxy.war folder and create an index.html page as shown in the
Figure – 46, to create an index.html page you can use notepad++ editor or simply windows notepad.
Fig: 47 showing how to create an index.html and save it to the apexproxy.rar folder
<html>
<head>
<meta http-equiv="refresh" content="0;url=apex">
</head>
<body>
</body>
</html>
Fig: 48 showing creating new folder WEB-INF inside the folder C:\APEXProxy\apexproxy.rar
Now as shown in Figure – 48 create a new Folder named WEB-INF in the Directory
C:\APEXProxy\apexproxy.rar
In the Figure -49 showing to create a new file named web.xml in the directory
C:\APEXProxy\apexproxy.rar\WEB-INF, To do that simply take another new notepad window and copy
the source code of web.xml from below and paste directly in the notepad and save as type = All files and
give the file name = web.xml and save it to the directory of C:\APEXProxy\apexproxy.rar\WEB-INF
Note: please be noted in the above source code of web.xml you will find a line of param value shown as
<param-value>http://localhost:2013</param-value>
This is very important parameter that holds the machine name and oracle apex port. During installation
of Apex you have done this steps default port or had reset the port to new port. If you don’t know what
is the port in your Oracle using now. Then login to the database using SYS with SYSDBA privilege and
type the below command:
GETHTTPPORT
-----------
2013
For the same process open a new notepad window and copy the source code of weblogic.xml from
below and paste directly in notepad and save it the as the prior steps in the directory of
C:\APEXProxy\apexproxy.rar\WEB-INF
Source code of weblogic.xml
http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-
app.xsd">
<session-descriptor></session-descriptor>
<jsp-descriptor></jsp-descriptor>
<container-descriptor></container-descriptor>
<context-root>/</context-root>
<servlet-descriptor>
<servlet-name>ProxyServlet</servlet-name>
</servlet-descriptor>
</weblogic-web-app>
Fig: 51 Showing WebLogic Server Home screen where you will find deployment link button
In the Figure – 51 you will find a link button named “deployment” In the Left vertical action pane that
shown in the figure, click deployment button and the screen shown in the Figure – 52 displays.
Fig: 53 showing the list of path directory and we have to select our configuration script.
In the Figure – 53 Type C:\ in the path field and press enter because you recall your mind we created a
Script APEXProxy in the drive C
Now you will see the folder in the Drive C and click the Folder APEXProxy as you see in the Figure – 53.
After clicking the folder APEXProxy you will see the Fig: 54
In the Figure -54 you must click the radio button that shown and indicated in the Figure. Then you will
get the exact path and location same as shown in the Figure.
Now Click Next> button and the screen shown in Figure – 55 displays.
In Figure 56 check the check box of AdminServer and click Next> button, screen shown in the Figure – 57
displays.
In the Figure-57 leave the default setting that showing in the Figure. And click Next> button, the screen
shown in the Figure – 58 displays.
In the Figure – 58 leave the default setting that shown in the figure and click Finish button, the screen
shown in the Figure – 59 displays
Now click the deployment link button from left vertical action pane and you will get the below list of
deployment summery and the status in the Figure – 61: