SlideShare a Scribd company logo
Installing Oracle XE with ORDS and Apache
Tomcat or Oracle Glassfish ServerTomcat or Oracle Glassfish Server
Denes Kubicek
Denes Kubicek
• We will keep this short:
• My Name is Denes Kubicek – born1965 in Croatia.• My Name is Denes Kubicek – born1965 in Croatia.
• Working since 2007 as a freelancer on APEX and PL/SQL projects.
• APEX Developer of the Year 2008.
• Oracle ACE Director.
• I have many customers in Germany, Switzerland and other countries around the world.
• I am an active member of the APEX Forum and have more than 6000 postings – usually
answering the questions.
• Published three books on APEX – one in German and two books in English.• Published three books on APEX – one in German and two books in English.
• I have my own APEX blog:
http://www.deneskubicek.blogspot.de/
• You can always reach me under the following email address:
deneskubicek@yahoo.de
Denes Kubicek
Why using ORDS / Tomcat / Glassfish?
Agenda
Things to consider
Understanding the Architecture
Installing Glassfish Server
Installing Tomcat Server
Setting up ORDSSetting up ORDS
Getting the components together
Why using ORDS / Tomcat / Glassfish?Why using ORDS / Tomcat / Glassfish?
Oracle REST Data Services (ORDS) is a Java EE-based alternative
for Oracle HTTP Server (OHS) and mod_plsql.
Why ORDS?
for Oracle HTTP Server (OHS) and mod_plsql.
The Java EE implementation offers increased functionality including
command line based configuration, enhanced security, file caching
and RESTful Web Services.
Oracle REST Data Services also provides increased flexibility by
supporting deployments using Oracle WebLogic Server, Oracle
Glassfish Server, Apache Tomcat, and a standalone mode.
If using a setup with Oracle RDS, you can provide RESTFul Web
Services using APEX Builder interface.
Why ORDS?
Services using APEX Builder interface.
If using Oracle RDS, you can use native Excel file upload in your
APEX applications by extending the defaults.xml file:
<properties>
...
<entry key="apex.excel2collection">true</entry>
<entry key="apex.excel2collection.onecollection">true</entry><entry key="apex.excel2collection.onecollection">true</entry>
<entry key="apex.excel2collection.name">EXCEL_COLLECTION</entry>
<entry key="apex.excel2collection.useSheetName">true</entry>
</properties>
Infrastructure for Oracle APEX production environments often poorly
configured:
Why this kind of setup at all?
configured:
Still use the embedded PL/SQL gateway
ORDS connection pool not properly configured
People find it hard to implement the recommended setup with an
Apache http server and ORDS, because it seems to be complicated
My personal interest:My personal interest:
Want to have a step-by-step guide to implement the recommended
architecture
Want to have a presentation to educate my clients regarding the
architecture and the best setup
Download Oracle REST Data Services (ORDS) here:
Prerequisites
http://www.oracle.com/technetwork/developer-tools/rest-data-
services/downloads/index.html
Download Glassfish here:
http://www.oracle.com/technetwork/java/javaee/downloads/ogs-3-1-
1-downloads-439803.html
You will need Java installed on your server, in order to configure ORDSYou will need Java installed on your server, in order to configure ORDS
Download Tomcat (newest version) here:
http://tomcat.apache.org/
Understanding the ArchitectureUnderstanding the Architecture
Understanding the Architecture
http http JDBC
Oracle
Browser Webserver PL/SQL Gateway Oracle DB
Serve static files
SSL termination
Cache / Proxy
Compression
Translate URL
/ords/f?p=100:1
=>
call to stored
APEX:
Execute Logic
&
https AJP SQLNet
Cache / Proxy
Compression
...
=>
call to stored
procedure
&
Generate HTML
Apache Http Server,
Nginx,
IIS / Windows
Apache Tomcat,
Oracle XML DB
ORDS
mod_plsql
dbms_epg
...
Oracle 11.1.0.7
and higher
Oracle XE 11g
The WORK is done IN THE DATABASE
Understanding the Architecture
The Webserver and PL/SQL gateway don’t need a lot of processing
power, most of the time idle
The components in this presentation:
Understanding the Architecture
Windows 8 64 bit (virtual machine)
Tomcat 8
Oracle Glassfish 3.1.2.2
ORDS 3.0
Oracle XE 11gOracle XE 11g
APEX 5.0.0
APEX_PUBLIC_USER
APEX / OWA main connection pool
OPTIONALLY installed
when using
REST services
Understanding the Architecture
APEX / OWA main connection pool
Size according to number of concurrent apex users
APEX_LISTENER (with APEX 4.2.2+)
Reads REST Definitions from repository APEX_040200
APEX_REST_PUBLIC_USER (with APEX 4.2.2+)
REST Connection pool for all REST operations
ORDS2.0
REST Connection pool for all REST operations
Size according to concurrent REST calls
Users APEX_LISTENER and APEX_REST_PUBLIC_USER were
created using the script apex_rest_config.sql as part of the
APEX installation.
ORDS 3.0 support RESTful Webservices even without APEX
APEX_PUBLIC_USER
Understanding the Architecture
APEX_PUBLIC_USER
APEX / OWA main connection pool
Size according to number of concurrent apex users
ORDS_METADATA
Stores REST Definitions
ORDS_PUBLIC_USER
REST Connection pool for all REST operations
Size according to concurent REST calls
ORDS3.0
Size according to concurent REST calls
Currently there is still the need for the users APEX_LISTENER and
APEX_REST_PUBLIC_USER:
The new download of static application files and static workspace files require it
So that you can continue to use the management interface in the SQL
Workshop (else you have to use SQL Developer)
Should we migrate the existing RESTful definitions in our APEX environment?
=> !!! NO !!!
Understanding the Architecture
=> !!! NO !!!
What happens?
They get copied over from APEX_050000 => ORDS_METADATA
Now they exist in two places redundantly
In this situation the definition stored in ORDS_METADATA “wins” over the
definition stored in APEX
Through the management interface in APEX you still manage the “OLD”
definitiondefinition
This is too confusing, thus:
Keep the definitions separate
Either create new ones with SQL Dev directly or still using the SQL Workshop in
APEX
Installing Glassfish ServerInstalling Glassfish Server
Starting Glasfish installation.
Installing Glassfish Server
Installation is Custom.
Installing Glassfish Server
Installation and Configuration.
Installing Glassfish Server
Page 19Denes Kubicek
Installation Folder.
Installing Glassfish Server
Make sure you have Java SDK installed on your machine. Use 32-bit
Java version on Windows 64-bit.
Installing Glassfish Server
Java version on Windows 64-bit.
Confirm and start the installation.
Installing Glassfish Server
Choose Server Domain installation.
Installing Glassfish Server
Choose a port and ADMIN password.
Installing Glassfish Server
The setup will show the results after it is finished.
Installing Glassfish Server
You can now login using the following link:
http://localhost:4848/common/index.jsf.
Installing Glassfish Server
http://localhost:4848/common/index.jsf.
Installing Apache Tomcat ServerInstalling Apache Tomcat Server
Starting Tomcat installation.
Installing Apache Tomcat Server
Port / Admin Credentials (if Port is 8080
then the xdb port has to be set to 0):
Installing Apache Tomcat Server
BEGIN
DBMS_XDB.sethttpport ('0');
DBMS_XDB.setftpport ('0');
COMMIT;
then the xdb port has to be set to 0): COMMIT;
END;
/
JRE Path.
Installing Apache Tomcat Server
Folder Structure.
Installing Apache Tomcat Server
Setting up ORDS (as of version 3.x)Setting up ORDS (as of version 3.x)
Switching to the Folder with Installation Files:
Setting up ORDS
cd c:UsersDenes KubicekDownloadsords.3.0.1.177.18.02
Extract the ORDS Scripts:
Setting up ORDS
java -jar ords.war ords-scripts
Switch to the script location and install the required objects:
Setting up ORDS
cd c:ordsords_scriptsscriptsinstallcore
sqlplus sys@xe as sysdba
@ords_manual_install SYSAUX TEMP c:ordsscriptslog
Set user credentials:
Setting up ORDS
Process will complete and install the required objects:
Setting up ORDS
Switch to the script location and and start the ORDS setup:
Setting up ORDS
cd c:UsersDenes KubicekDownloadsords.3.0.1.177.18.02
java -jar ords.war setup
Configure i.war for Glassfish:
Setting up ORDS
java -jar ords.war static c:ordsimages
Configuring Apache TomcatConfiguring Apache Tomcat
Copy the ords.war to the server webapps folder:
Configuring Apache Tomcat
COPY "C:UsersDenes KubicekDownloadsords.3.0.1.177.18.02ords.war" "C:Program Files
(x86)Apache Software FoundationTomcat 8.0webappsords.war"
Copy the APEX images to the Tomcat root folder /i/:
Configuring Apache Tomcat
Run APEX over Tomcat using:
http://localhost:8080/ords
Configuring Apache Tomcat
http://localhost:8080/ords
If a message like this appears, clear the browser cache:
Configuring Apache Tomcat
Configuring Glassfish ServerConfiguring Glassfish Server
We will need the two files to configure Glassfish
ords.war
Configuring Glassfish Server
ords.war
i.war
Go to Glassfish Administration and let us configure the two files in
order to start APEX.
Choose „Application“ > „Deploy“
Configuring Glassfish Server
Locate the ords.war and click „OK“
Configuring Glassfish Server
Repeat that step for the i.war file
Configuring Glassfish Server
Now, we can get the APEX link
Configuring Glassfish Server
Glassfish will propose a domain name, we can also use
localhost:port
Configuring Glassfish Server
localhost:port
localhost:8084/ords/f?p=4550:1
Page 51Denes Kubicek
We can now start using APEX
Configuring Glassfish Server
Page 52Denes Kubicek
Upload of native Excel files
Advantages
Deploy RESTful Web Services
Advantages
Questions?

More Related Content

What's hot (20)

PDF
最適なOpenJDKディストリビューションの選び方 #codetokyo19B3 #ccc_l5
Takahiro YAMADA
 
PDF
大規模Redisサーバ縮小化の戦い
Yuto Komai
 
PDF
DockerとKubernetesをかけめぐる
Kohei Tokunaga
 
PPTX
ウェブセキュリティの常識
Hiroshi Tokumaru
 
PDF
GoldenGateテクニカルセミナー4「テクニカルコンサルタントが語るOracle GoldenGate現場で使える極意」(2016/5/11)
オラクルエンジニア通信
 
PPTX
Metaspace
Yasumasa Suenaga
 
PDF
Zabbix監視運用業務の自動化事例
OSSラボ株式会社
 
PDF
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
 
PDF
シンプルでシステマチックな Oracle Database, Exadata 性能分析
Yohei Azekatsu
 
PPT
インフラエンジニアのためのcassandra入門
Akihiro Kuwano
 
PPTX
Oracle Database Vaultのご紹介
オラクルエンジニア通信
 
PPTX
V$SQLとその周辺でER図を描いてみよう!
歩 柴田
 
PPT
Sql Server Basics
rainynovember12
 
PDF
使ってみよう!JDK Flight Recorder
Yoshiro Tokumasu
 
PDF
Where狙いのキー、order by狙いのキー
yoku0825
 
PDF
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
オラクルエンジニア通信
 
PDF
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Markus Michalewicz
 
PDF
How To Become Better Engineer
DaeMyung Kang
 
PPTX
Getting started with postgresql
botsplash.com
 
PDF
Oracle運用Tips大放出! ~ RAC環境のRMANのパラレル化を極める 編 ~ @2016-02-23 JPOUG
Yuya Ohta
 
最適なOpenJDKディストリビューションの選び方 #codetokyo19B3 #ccc_l5
Takahiro YAMADA
 
大規模Redisサーバ縮小化の戦い
Yuto Komai
 
DockerとKubernetesをかけめぐる
Kohei Tokunaga
 
ウェブセキュリティの常識
Hiroshi Tokumaru
 
GoldenGateテクニカルセミナー4「テクニカルコンサルタントが語るOracle GoldenGate現場で使える極意」(2016/5/11)
オラクルエンジニア通信
 
Metaspace
Yasumasa Suenaga
 
Zabbix監視運用業務の自動化事例
OSSラボ株式会社
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
 
シンプルでシステマチックな Oracle Database, Exadata 性能分析
Yohei Azekatsu
 
インフラエンジニアのためのcassandra入門
Akihiro Kuwano
 
Oracle Database Vaultのご紹介
オラクルエンジニア通信
 
V$SQLとその周辺でER図を描いてみよう!
歩 柴田
 
Sql Server Basics
rainynovember12
 
使ってみよう!JDK Flight Recorder
Yoshiro Tokumasu
 
Where狙いのキー、order by狙いのキー
yoku0825
 
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
オラクルエンジニア通信
 
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Markus Michalewicz
 
How To Become Better Engineer
DaeMyung Kang
 
Getting started with postgresql
botsplash.com
 
Oracle運用Tips大放出! ~ RAC環境のRMANのパラレル化を極める 編 ~ @2016-02-23 JPOUG
Yuya Ohta
 

Similar to configuring+oracle+rds+with+glasfish+server (20)

PDF
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
sheriframadan18
 
PDF
APEX richtig installieren und konfigurieren
Oliver Lemm
 
PDF
State of The Dolphin - May 2021
Frederic Descamps
 
PDF
How to connect sql server to oracle server
Gustavo Bernardo
 
PDF
MySQL Shell for DBAs
Frederic Descamps
 
DOCX
Oracle WebLogic
Anar Godjaev
 
PDF
oracle-rest-data-service-instal-config
hunghtc83
 
PPTX
E business suite r12.2 changes for database administrators
Srinivasa Pavan Marti
 
PPTX
E business suite r12.2 changes for database administrators
Srinivasa Pavan Marti
 
PPTX
Oracle Apex Intoduction.pptx
AbhishekJha401
 
PDF
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
mahdi ahmadi
 
PPT
New em12c kscope
Kellyn Pot'Vin-Gorman
 
PDF
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Alfredo Krieg
 
PPTX
PHP Oracle
Nur Hidayat
 
PDF
Pluggable Databases: What they will break and why you should use them anyway!
Guatemala User Group
 
PPTX
PDB Provisioning with Oracle Multitenant Self Service Application
Leighton Nelson
 
PDF
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
pasalapudi
 
PDF
Oracle olap-installation
Amit Sharma
 
PDF
Oracle WebLogic Server_OL7_Sovann
Voeurng Sovann
 
DOCX
Oracle 12cR2 RAC Database Software Installation and Create Database
Monowar Mukul
 
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
sheriframadan18
 
APEX richtig installieren und konfigurieren
Oliver Lemm
 
State of The Dolphin - May 2021
Frederic Descamps
 
How to connect sql server to oracle server
Gustavo Bernardo
 
MySQL Shell for DBAs
Frederic Descamps
 
Oracle WebLogic
Anar Godjaev
 
oracle-rest-data-service-instal-config
hunghtc83
 
E business suite r12.2 changes for database administrators
Srinivasa Pavan Marti
 
E business suite r12.2 changes for database administrators
Srinivasa Pavan Marti
 
Oracle Apex Intoduction.pptx
AbhishekJha401
 
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
mahdi ahmadi
 
New em12c kscope
Kellyn Pot'Vin-Gorman
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Alfredo Krieg
 
PHP Oracle
Nur Hidayat
 
Pluggable Databases: What they will break and why you should use them anyway!
Guatemala User Group
 
PDB Provisioning with Oracle Multitenant Self Service Application
Leighton Nelson
 
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
pasalapudi
 
Oracle olap-installation
Amit Sharma
 
Oracle WebLogic Server_OL7_Sovann
Voeurng Sovann
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Monowar Mukul
 
Ad

Recently uploaded (20)

PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
PPTX
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Ad

configuring+oracle+rds+with+glasfish+server

  • 1. Installing Oracle XE with ORDS and Apache Tomcat or Oracle Glassfish ServerTomcat or Oracle Glassfish Server Denes Kubicek
  • 2. Denes Kubicek • We will keep this short: • My Name is Denes Kubicek – born1965 in Croatia.• My Name is Denes Kubicek – born1965 in Croatia. • Working since 2007 as a freelancer on APEX and PL/SQL projects. • APEX Developer of the Year 2008. • Oracle ACE Director. • I have many customers in Germany, Switzerland and other countries around the world. • I am an active member of the APEX Forum and have more than 6000 postings – usually answering the questions. • Published three books on APEX – one in German and two books in English.• Published three books on APEX – one in German and two books in English. • I have my own APEX blog: http://www.deneskubicek.blogspot.de/ • You can always reach me under the following email address: [email protected]
  • 4. Why using ORDS / Tomcat / Glassfish? Agenda Things to consider Understanding the Architecture Installing Glassfish Server Installing Tomcat Server Setting up ORDSSetting up ORDS Getting the components together
  • 5. Why using ORDS / Tomcat / Glassfish?Why using ORDS / Tomcat / Glassfish?
  • 6. Oracle REST Data Services (ORDS) is a Java EE-based alternative for Oracle HTTP Server (OHS) and mod_plsql. Why ORDS? for Oracle HTTP Server (OHS) and mod_plsql. The Java EE implementation offers increased functionality including command line based configuration, enhanced security, file caching and RESTful Web Services. Oracle REST Data Services also provides increased flexibility by supporting deployments using Oracle WebLogic Server, Oracle Glassfish Server, Apache Tomcat, and a standalone mode.
  • 7. If using a setup with Oracle RDS, you can provide RESTFul Web Services using APEX Builder interface. Why ORDS? Services using APEX Builder interface. If using Oracle RDS, you can use native Excel file upload in your APEX applications by extending the defaults.xml file: <properties> ... <entry key="apex.excel2collection">true</entry> <entry key="apex.excel2collection.onecollection">true</entry><entry key="apex.excel2collection.onecollection">true</entry> <entry key="apex.excel2collection.name">EXCEL_COLLECTION</entry> <entry key="apex.excel2collection.useSheetName">true</entry> </properties>
  • 8. Infrastructure for Oracle APEX production environments often poorly configured: Why this kind of setup at all? configured: Still use the embedded PL/SQL gateway ORDS connection pool not properly configured People find it hard to implement the recommended setup with an Apache http server and ORDS, because it seems to be complicated My personal interest:My personal interest: Want to have a step-by-step guide to implement the recommended architecture Want to have a presentation to educate my clients regarding the architecture and the best setup
  • 9. Download Oracle REST Data Services (ORDS) here: Prerequisites http://www.oracle.com/technetwork/developer-tools/rest-data- services/downloads/index.html Download Glassfish here: http://www.oracle.com/technetwork/java/javaee/downloads/ogs-3-1- 1-downloads-439803.html You will need Java installed on your server, in order to configure ORDSYou will need Java installed on your server, in order to configure ORDS Download Tomcat (newest version) here: http://tomcat.apache.org/
  • 11. Understanding the Architecture http http JDBC Oracle Browser Webserver PL/SQL Gateway Oracle DB Serve static files SSL termination Cache / Proxy Compression Translate URL /ords/f?p=100:1 => call to stored APEX: Execute Logic & https AJP SQLNet Cache / Proxy Compression ... => call to stored procedure & Generate HTML Apache Http Server, Nginx, IIS / Windows Apache Tomcat, Oracle XML DB ORDS mod_plsql dbms_epg ... Oracle 11.1.0.7 and higher Oracle XE 11g
  • 12. The WORK is done IN THE DATABASE Understanding the Architecture The Webserver and PL/SQL gateway don’t need a lot of processing power, most of the time idle
  • 13. The components in this presentation: Understanding the Architecture Windows 8 64 bit (virtual machine) Tomcat 8 Oracle Glassfish 3.1.2.2 ORDS 3.0 Oracle XE 11gOracle XE 11g APEX 5.0.0
  • 14. APEX_PUBLIC_USER APEX / OWA main connection pool OPTIONALLY installed when using REST services Understanding the Architecture APEX / OWA main connection pool Size according to number of concurrent apex users APEX_LISTENER (with APEX 4.2.2+) Reads REST Definitions from repository APEX_040200 APEX_REST_PUBLIC_USER (with APEX 4.2.2+) REST Connection pool for all REST operations ORDS2.0 REST Connection pool for all REST operations Size according to concurrent REST calls Users APEX_LISTENER and APEX_REST_PUBLIC_USER were created using the script apex_rest_config.sql as part of the APEX installation.
  • 15. ORDS 3.0 support RESTful Webservices even without APEX APEX_PUBLIC_USER Understanding the Architecture APEX_PUBLIC_USER APEX / OWA main connection pool Size according to number of concurrent apex users ORDS_METADATA Stores REST Definitions ORDS_PUBLIC_USER REST Connection pool for all REST operations Size according to concurent REST calls ORDS3.0 Size according to concurent REST calls Currently there is still the need for the users APEX_LISTENER and APEX_REST_PUBLIC_USER: The new download of static application files and static workspace files require it So that you can continue to use the management interface in the SQL Workshop (else you have to use SQL Developer)
  • 16. Should we migrate the existing RESTful definitions in our APEX environment? => !!! NO !!! Understanding the Architecture => !!! NO !!! What happens? They get copied over from APEX_050000 => ORDS_METADATA Now they exist in two places redundantly In this situation the definition stored in ORDS_METADATA “wins” over the definition stored in APEX Through the management interface in APEX you still manage the “OLD” definitiondefinition This is too confusing, thus: Keep the definitions separate Either create new ones with SQL Dev directly or still using the SQL Workshop in APEX
  • 20. Installation and Configuration. Installing Glassfish Server Page 19Denes Kubicek
  • 22. Make sure you have Java SDK installed on your machine. Use 32-bit Java version on Windows 64-bit. Installing Glassfish Server Java version on Windows 64-bit.
  • 23. Confirm and start the installation. Installing Glassfish Server
  • 24. Choose Server Domain installation. Installing Glassfish Server
  • 25. Choose a port and ADMIN password. Installing Glassfish Server
  • 26. The setup will show the results after it is finished. Installing Glassfish Server
  • 27. You can now login using the following link: http://localhost:4848/common/index.jsf. Installing Glassfish Server http://localhost:4848/common/index.jsf.
  • 28. Installing Apache Tomcat ServerInstalling Apache Tomcat Server
  • 30. Port / Admin Credentials (if Port is 8080 then the xdb port has to be set to 0): Installing Apache Tomcat Server BEGIN DBMS_XDB.sethttpport ('0'); DBMS_XDB.setftpport ('0'); COMMIT; then the xdb port has to be set to 0): COMMIT; END; /
  • 33. Setting up ORDS (as of version 3.x)Setting up ORDS (as of version 3.x)
  • 34. Switching to the Folder with Installation Files: Setting up ORDS cd c:UsersDenes KubicekDownloadsords.3.0.1.177.18.02
  • 35. Extract the ORDS Scripts: Setting up ORDS java -jar ords.war ords-scripts
  • 36. Switch to the script location and install the required objects: Setting up ORDS cd c:ordsords_scriptsscriptsinstallcore sqlplus sys@xe as sysdba @ords_manual_install SYSAUX TEMP c:ordsscriptslog
  • 38. Process will complete and install the required objects: Setting up ORDS
  • 39. Switch to the script location and and start the ORDS setup: Setting up ORDS cd c:UsersDenes KubicekDownloadsords.3.0.1.177.18.02 java -jar ords.war setup
  • 40. Configure i.war for Glassfish: Setting up ORDS java -jar ords.war static c:ordsimages
  • 42. Copy the ords.war to the server webapps folder: Configuring Apache Tomcat COPY "C:UsersDenes KubicekDownloadsords.3.0.1.177.18.02ords.war" "C:Program Files (x86)Apache Software FoundationTomcat 8.0webappsords.war"
  • 43. Copy the APEX images to the Tomcat root folder /i/: Configuring Apache Tomcat
  • 44. Run APEX over Tomcat using: http://localhost:8080/ords Configuring Apache Tomcat http://localhost:8080/ords
  • 45. If a message like this appears, clear the browser cache: Configuring Apache Tomcat
  • 47. We will need the two files to configure Glassfish ords.war Configuring Glassfish Server ords.war i.war Go to Glassfish Administration and let us configure the two files in order to start APEX.
  • 48. Choose „Application“ > „Deploy“ Configuring Glassfish Server
  • 49. Locate the ords.war and click „OK“ Configuring Glassfish Server
  • 50. Repeat that step for the i.war file Configuring Glassfish Server
  • 51. Now, we can get the APEX link Configuring Glassfish Server
  • 52. Glassfish will propose a domain name, we can also use localhost:port Configuring Glassfish Server localhost:port localhost:8084/ords/f?p=4550:1 Page 51Denes Kubicek
  • 53. We can now start using APEX Configuring Glassfish Server Page 52Denes Kubicek
  • 54. Upload of native Excel files Advantages
  • 55. Deploy RESTful Web Services Advantages