You are on page 1of 27

Installation Guide

of
Apex 20.2 with ORDS & Apache Tomcat
Prepared by
Md Shwadhin Hossain
Oracle Developer
Gmail: mr.shwadhin95@gmail.com
Download Apex20.2 from below link:
https://drive.google.com/file/d/1erRcgEVL0OZIa8xm9ctmFthwQulbc0oQ/view?usp=sha
ring

1. Unzip apex_20.2_en.zip file to your installation directory.

2. Open Sqlplus login as sysdba & Create a Tablespace for apex installation.

SQL> CREATE TABLESPACE APEX


DATAFILE 'C:\Database\oradata\orcl\APEX.DBF'
SIZE 100M AUTOEXTEND ON;

NOTE: Change your datafile location as my location is <'C:\Database\oradata\orcl>.


3. Open Command Prompt.

4. Set your Apex unzip directory connect sqlplus & paste that line
@apexins apex apex temp /i/
and press enter. It will take 10-15 minutes.

NOTE: My unzip apex directory is in C: drive.


SQL> @apexins apex apex temp /i/
5. After step 4 completed the following screen of your command prompt looks like below
snapshoot and jump to the next step.

6. After complete previous steps paste the below line and give the user name, email address and
password.

SYS> @apxchpwd.sql

NOTE: Remember the User name & Password that you give. Password should contain at least
one Upper alphabetical letter, one symbol and one number as like my password is :
$Shwadhin_20
7. After complete steps 6 paste the below line and give Password twice like: admin_123

SYS>@apex_rest_config.sql

NOTE: To remember the password use same password to all. As I used “admin_123”.
8. After complete previous steps paste the below lines:
ALTER USER APEX_LISTENER ACCOUNT UNLOCK identified by admin_123;

ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK identified by admin_123;

ALTER USER APEX_REST_PUBLIC_USER ACCOUNT UNLOCK identified by admin_123;

ALTER USER APEX_INSTANCE_ADMIN_USER ACCOUNT UNLOCK identified by admin_123;

ALTER USER APEX_200200 ACCOUNT UNLOCK identified by admin_123;

ALTER USER ORDSYS ACCOUNT UNLOCK identified by admin_123;


9. For Oracle Database version 12c or later run the below script:

BEGIN
DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
host => '*',
ace => xs$ace_type(privilege_list => xs$name_list('connect'),
principal_name => 'APEX_200200',
principal_type => xs_acl.ptype_db));
END;
/

BEGIN
DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
host => 'localhost',
ace => xs$ace_type(privilege_list => xs$name_list('connect'),
principal_name => 'APEX_200200',
principal_type => xs_acl.ptype_db));
END;
/

EXEC DBMS_XDB.sethttpport(0);

commit;
10. Download JDK 8 from below link and install it to your computer.

https://drive.google.com/file/d/1j-iQaj74sLqLvGiX_SkPIbHxrR5IUlae/view?usp=sharing

Go to your file directory where you have stored installation file. In the directory
folder right click on “jdk” file & chose (Run as administration).

Note: After click (Run as administration) a pop-up will show to give permission, Click
“Yes”.

11. Click “Next”.

12. Click “Next”


13. Wait few moment for the following screen.

14. Click “Next”.


15. Wait few moment for the following screen.

16. Click “Close”.


17. Download ords file from below link put to your destination folder and extract it there.
https://drive.google.com/file/d/1geOJFNYDhUPusnmmvHv0OMSvMYcUXCCO/view?usp=sharing

NOTE: I create a folder in C: drive as named “ords” and extract it there.

18. Now copy the “image” folder from apex installation directory to “ords” folder.
19. Create a folder named “config” inside ords folder.
20. Set your Java home user variable in Environment Variable. Right click on “This Pc” and click
“Propertise”.

21. Click “Advance system settings” from the left side.

22. Click “Environment Variable”

23. Click “New” under “User variable….” Block


24. Write “JAVA_HOME” in the Variable Name field & click Browse Directory button from
bellow & choose system drive such as “Local Disk (C)” & follow the next step.

25. Expand “Program File”. From C: directory.


26. Expand “Java” folder user “Program Files” & chose “jdk1.8.0_281” folder and click “OK”
button.

27. Press “OK” button.


28. Open Command Prompt and set your directory to ords folder and type bellow lines and press enter:

29. Copy the config folder directory that was created in ords folder paste it and press enter.
30. Change or press enter as your default database server location, listener port & database service name.
as my database service name is orcl.

31. After previous step you should give several time password like admin_123 and to the resources
location give your image folder directory location that pasted in ords folder and press enter.
32. In that following snapshoot your Installation is done.

33. Now open your browser and paste the below URL.

http://localhost:8080/ords/

---End ---
Installing Apache Tomcat for Apex ORDS server

1. Download Apache Tomcat Server from the below link.


https://drive.google.com/file/d/1IJySdr30h-HxvjCcyGxW9ovSrw8-D70G/view?usp=sharing

2. Right click on apache-tomcat-9.0.43.exe file and click open.

3. Click “Next”
4. Click “I Agree”

5. Check “Host Manager” & “Example” and click “Next”


6. Set Server Shutdown Port to: 8085
Set HTTP/1.1 Connector Port to: 8080
Set Windows Service Name As: Tomcat9_ords
Set User Name: admin
Set Password: admin_123
And click “Next”

7. Click “Next”
8. Click “Install”

9. Click “Finish”
10. Go to the ords folder copy ords.war file.

11. Paste the ords.war file to this directory “C:\Program Files\Apache Software Foundation\Tomcat
9.0_Tomcat9_ords\webapps”
12. Copy the image folder from ords folder.

13. And paste the image folder to this directory “C:\Program Files\Apache Software
Foundation\Tomcat 9.0_Tomcat9_ords\webapps” and rename it as( i )
14. Go to Service
15. Right click on Apache Tomcat 9.0……… and click Properties.
16. Choose “Automatic” then click Apply and click Ok.

17. Then Click “Restart” from left side. After restart close it and open your browser.

18. Now go to your Web Browser and paste the line:

http://localhost:8080/ords/

---End---

You might also like