SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Downloaden Sie, um offline zu lesen
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?

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Oracle Database 19c (19.3) Installation on Windows (Step-by-Step)
Oracle Database 19c (19.3) Installation on Windows (Step-by-Step)Oracle Database 19c (19.3) Installation on Windows (Step-by-Step)
Oracle Database 19c (19.3) Installation on Windows (Step-by-Step)
 
[20171019 三木会] データベース・マイグレーションについて by 株式会社シー・エス・イー 藤井 元雄 氏
[20171019 三木会] データベース・マイグレーションについて by 株式会社シー・エス・イー 藤井 元雄 氏[20171019 三木会] データベース・マイグレーションについて by 株式会社シー・エス・イー 藤井 元雄 氏
[20171019 三木会] データベース・マイグレーションについて by 株式会社シー・エス・イー 藤井 元雄 氏
 
Oracle Database Availability & Scalability Across Versions & Editions
Oracle Database Availability & Scalability Across Versions & EditionsOracle Database Availability & Scalability Across Versions & Editions
Oracle Database Availability & Scalability Across Versions & Editions
 
Achieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAAAchieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAA
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Automating Your Clone in E-Business Suite R12.2
Automating Your Clone in E-Business Suite R12.2Automating Your Clone in E-Business Suite R12.2
Automating Your Clone in E-Business Suite R12.2
 
Oracle使用者安全設定
Oracle使用者安全設定Oracle使用者安全設定
Oracle使用者安全設定
 
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
SQL Server運用実践 - 3年間80台の運用経験から20の教訓
SQL Server運用実践 - 3年間80台の運用経験から20の教訓SQL Server運用実践 - 3年間80台の運用経験から20の教訓
SQL Server運用実践 - 3年間80台の運用経験から20の教訓
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Oracle Database – Mission Critical
Oracle Database – Mission CriticalOracle Database – Mission Critical
Oracle Database – Mission Critical
 
Enable oracle database vault
Enable oracle database vaultEnable oracle database vault
Enable oracle database vault
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 
Step By Step to Install Oracle Business Intelligence
Step By Step to Install Oracle Business IntelligenceStep By Step to Install Oracle Business Intelligence
Step By Step to Install Oracle Business Intelligence
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Stop the Chaos! Get Real Oracle Performance by Query Tuning Part 1
Stop the Chaos! Get Real Oracle Performance by Query Tuning Part 1Stop the Chaos! Get Real Oracle Performance by Query Tuning Part 1
Stop the Chaos! Get Real Oracle Performance by Query Tuning Part 1
 
Automate DBA Tasks With Ansible
Automate DBA Tasks With AnsibleAutomate DBA Tasks With Ansible
Automate DBA Tasks With Ansible
 
High Availability for Oracle SE2
High Availability for Oracle SE2High Availability for Oracle SE2
High Availability for Oracle SE2
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 

Ähnlich wie configuring+oracle+rds+with+glasfish+server

Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installation
Amit Sharma
 
Oracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_SovannOracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_Sovann
Voeurng Sovann
 

Ähnlich wie configuring+oracle+rds+with+glasfish+server (20)

Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
 
APEX richtig installieren und konfigurieren
APEX richtig installieren und konfigurierenAPEX richtig installieren und konfigurieren
APEX richtig installieren und konfigurieren
 
State of The Dolphin - May 2021
State of The Dolphin - May 2021State of The Dolphin - May 2021
State of The Dolphin - May 2021
 
How to connect sql server to oracle server
How to connect sql server to oracle serverHow to connect sql server to oracle server
How to connect sql server to oracle server
 
MySQL Shell for DBAs
MySQL Shell for DBAsMySQL Shell for DBAs
MySQL Shell for DBAs
 
Oracle WebLogic
Oracle WebLogicOracle WebLogic
Oracle WebLogic
 
oracle-rest-data-service-instal-config
oracle-rest-data-service-instal-configoracle-rest-data-service-instal-config
oracle-rest-data-service-instal-config
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administrators
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administrators
 
Oracle Apex Intoduction.pptx
Oracle Apex Intoduction.pptxOracle Apex Intoduction.pptx
Oracle Apex Intoduction.pptx
 
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
 
New em12c kscope
New em12c kscopeNew em12c kscope
New em12c kscope
 
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13cClone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
 
PHP Oracle
PHP OraclePHP Oracle
PHP Oracle
 
Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!Pluggable Databases: What they will break and why you should use them anyway!
Pluggable Databases: What they will break and why you should use them anyway!
 
PDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationPDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service Application
 
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
Aioug2017 deploying-ebs-on-prem-and-on-oracle-cloud v2
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installation
 
Oracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_SovannOracle WebLogic Server_OL7_Sovann
Oracle WebLogic Server_OL7_Sovann
 
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create Database
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

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: deneskubicek@yahoo.de
  • 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