SlideShare a Scribd company logo
1 of 33
Download to read offline
Introduce ORDS and Data Live Charting
Project by this service
Mahdi Ahmadi
About Mahdi Ahmadi
• We will keep this short:
• My Name is Mahdi Ahmadi – born1995 in Iran.
• Working since 2016 as a developer on APEX and PL/SQLprojects.
• APEX Developer of the Year 2017. You can always reach me under the following email
address: ma.ahm.325@gmail.com
■ Why using ORDS?
■ Things to consider
■ Understanding the Architecture
■ Rest Data Live Charting
Agenda
Why using ORDS ?
Why ORDS ??
▪ Oracle REST Data Services (ORDS) is a Java EE-based alternative
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.
 This is my Resource page for Oracle REST Data Services (ORDS),
formerly known as the APEX Listener.
 ORDS doesn’t require APEX, and you can run APEX without
ORDS. My posts here concentrate on core ORDS features,
generally REST enabling your Oracle Database.
 ORDS is our middle tier JAVA application that allows you to access
your Oracle Database resources via REST. In the tiniest and
simplest of nutshells, GET|POST|PUT|DELETE|HEAD /db_stuff/ –
ORDS maps a URI to something in your Oracle Database (a query,
an object, an anonymous block, etc.), runs the appropriate
SQL/PLSQL, and returns any output as JSON.
 By using a stateless protocol and standard operations, REST
resources are created to optimize for fast performance, reliability,
portability, and growth. This is achieved by creating reusable
underlying components that can be managed and updated without
affecting the system, even while REST is running.
 RESTful services, is divided into two sections: Consuming RESTful
services and Providing RESTful services.
 While consuming RESTful Services uses the standard HTTP
operations, processing the data returned through a RESTful service
is different. Oracle Application Express 18.1 provides a
comprehensive set of components to make consuming RESTful
services easier.
MANAGE ORDS FROM YOUR TERMINAL, VIA PL/SQL APIS, OR OUR GUI IN SQL DEVELOPER.
▪ If using a setup with Oracle RDS, you can provide RESTFul Web
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.name">EXCEL_COLLECTION</entry>
<entry key="apex.excel2collection.useSheetName">true</entry>
</properties>
Why this kind of setup at all?
▪ Infrastructure for Oracle APEX production environments often poorly
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:
▪ 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:
▪ 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 ORDS
▪ Download Tomcat (newest version) here:
▪ http://tomcat.apache.org/
Prerequisites
Understanding the
Architecture
Understanding the Architecture
 Representational State Transfer, or REST, is an architecture used
for Web Services that is rapidly becoming an important standard for
Web data access. RESTful Web Services operates over HTTP/S
frequently in the form of a set of data. Oracle REST Data Services
provide a RESTful interface to data and logic in an Oracle Database
and was formerly known as “Oracle APEX Listener”.
 Installed into any J2EE compliant Web Server such as Apache
Tomcat or Weblogic, Oracle REST Data Services provide Explorer
with the ability to open up APEX applications to external and remote
data sources and tightly integrate applications.
Understanding the Architecture
http http JDBC
Oracle
Browser Webserver PL/SQL Gateway Oracle DB
Serve static files
SSL termination
Cache / Proxy
Translate URL
/ords/f?p=100:1
=>
APEX:
Execute Logic
https AJP SQLNet
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
Understanding the Architecture
▪ The WORK is done IN THE DATABASE
▪ The Webserver and PL/SQL gateway don’t need a lot of
processing power, most of the time idle
▪ The components in this presentation:
▪ Windows 8 64 bit (virtual machine)
▪ ORDS 3.0
▪ Oracle XE 11g
▪ APEX 5.0.0
saTESnt Reurrncoo cgdinoracceSi
sona iepoTSERor aol fopnoectnonCTSRE
)4.2.2+XEPAhwiR (ESU_CLIBUP_STERX_EPA
002400_XEPy Aorosipeom rs fnon tDe iTESs RdaReads RES Definitions from repository APEX 040200e
+)24.2.XEPAhwitR (ENETLISX_EPAPEX_LISTENER( WITH APEX 4.2.2+)
OPTIONALLY installed
when using
REST services
APEX_PUBLIC_USER
APEX / OWA main connection pool
Size according to number of concurrent apex users
i
t
ORDS2.0
r t
z
i ll
t c ll
■ Users APEX_LISTENER and APEX_REST_PUBLIC_USER were
created using the script apex_rest_config.sql as part of the
APEX installation.
R:ESU_CLIBPU_TSER_XEPA
ndaRENTESLI_XEPAsersuehor td feenehst te iserhyntleurrC
ORDS3.0
■ ORDS 3.0 support RESTful Webservices even without APEX
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
■ t ill
■ 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)
 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”
■ Should we migrate the existing RESTful definitions in our APEX environment?
■ => !!! NO !!!
■ What happens?
definition
■ 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
Rest Data Live Charting
Purpose of this app
 The science of statistics is one of the branches of mathematical science that studies
and analyzes statistical data. The statistical data is a collection of numbers that are
derived from measurements and counting
 Different planning in social and economic affairs is not possible without the use of
statistics and statistical analysis. Collection and adjustment of data is the first stage
in statistical studies
 Charts are images that can quickly access existing information; you've heard that a
good image worth a thousand words. By looking at a graph at a glance, you can see
many features of a set of information. Today, the use of charts is very common.
Graphs or curves show numerical and statistical information on a regular basis and
map the relationship between two or more factors
 Type Of Charts :
 You can put all sorts of charts in a few categories: linear, columnar, circular, and
gauge.
 There are other types, but the basis of each of them is more and less in the form
of one of three categories. For example, a graphic illustration of images of
individuals and objects in relation to one of the three categories mentioned above.
JET Charts in Application Express 5.1
 One of the most-mentioned new features in Application Express 5.1 are the new charts
based on Oracle JET. JET is the abbreviation for Javascript Extension Toolkit. It is
targeted at intermediate to advanced JavaScript developers working on client-side
applications. It's a collection of open source JavaScript libraries along with a set of
Oracle contributed JavaScript libraries that make it as simple and efficient as possible
to build applications that consume and interact with Oracle products and services,
especially Oracle Cloud services
 Oracle JET contains a lot of components
for data visualization - and these are the
foundation for the new chart types in
Application Express 5.1. Note that not all
JET visualizations are available as
Application Express charts (at least at this
time)
Describe Data Live Charting : Add Rest Services
 This application enables you to access RESTful services defined in your
workspace as well as public services. The application provides metadata-driven
mapping from service response data to SQL result set columns. Generated SQL
and PL/SQL code can be and used in own applications.
 The examples in this application illustrate how to create a simple report on REST
service data, how to filter, and how to add pagination. REST data can also be
downloaded as csv file and staged into a local table for further processing,
analysis, usage and creating customized any type of charts by Oracle Application
Express components.
 As shown in the below screenshots, you must do the following to get the data
associated with the service:
 Naming the service and giving information related to its authentication
 Getting data in the selected response type
 Selecting the desired columns
 Selecting the service created and getting relevant data
 By adjusting and setting values in the “Chart Settings” section to any of the chart types,
you can have dashboard like below images.
Describe Data Live Charting : Page Settings
 Each chart type has its own customizable item in “Chart Setting” section
 For example : Orientation, Label, Value, Aggregation, Sort by, Direction,…
and other items settings in Gauge chart type are Value Type, color or value
ranges, …
 The values of the selected list for the items listed are completely dynamically
generated, and each one varies depending on the Rest Services.
Describe Data Live Charting : Other Settings
 In the final section of this professional program we can point out:
 Ability to save settings of different type of charts
 Ability to save different settings of one type of charts
 Ability to select and activate one of the settings you are looking for
 Possibility to comment on the settings
 …
Questions?

More Related Content

What's hot

Introduction of Oracle
Introduction of Oracle Introduction of Oracle
Introduction of Oracle Salman Memon
 
Oracle Apex Installation (EPG)
Oracle Apex Installation (EPG)Oracle Apex Installation (EPG)
Oracle Apex Installation (EPG)Khairul Islam
 
SQL Server Integration Services
SQL Server Integration ServicesSQL Server Integration Services
SQL Server Integration ServicesRobert MacLean
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical ManualHossam El-Faxe
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssisdeepakk073
 
Preparing a Dataset for Processing
Preparing a Dataset for ProcessingPreparing a Dataset for Processing
Preparing a Dataset for ProcessingManish Chopra
 
Oracle Application Express 20.2 New Features
Oracle Application Express 20.2 New FeaturesOracle Application Express 20.2 New Features
Oracle Application Express 20.2 New Featuresmsewtz
 
SQL Server Reporting Services 2008
SQL Server Reporting Services 2008SQL Server Reporting Services 2008
SQL Server Reporting Services 2008VishalJharwade
 
Generating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data ModelerGenerating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data ModelerRob van den Berg
 
Tips on successfully upgrading to apps 11i for the non apps dba
Tips on successfully upgrading to apps 11i for the non apps dbaTips on successfully upgrading to apps 11i for the non apps dba
Tips on successfully upgrading to apps 11i for the non apps dbachidba
 
Oracle APEX Introduction (release 18.1)
Oracle APEX Introduction (release 18.1)Oracle APEX Introduction (release 18.1)
Oracle APEX Introduction (release 18.1)Michael Hichwa
 
SQL Server Integration Services
SQL Server Integration ServicesSQL Server Integration Services
SQL Server Integration ServicesRobert MacLean
 
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...Tammy Bednar
 
Rational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System ArchitectRational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System ArchitectGEBS Reporting
 

What's hot (20)

Introduction of Oracle
Introduction of Oracle Introduction of Oracle
Introduction of Oracle
 
Ado
AdoAdo
Ado
 
Oracle Apex Installation (EPG)
Oracle Apex Installation (EPG)Oracle Apex Installation (EPG)
Oracle Apex Installation (EPG)
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
SQL Server Integration Services
SQL Server Integration ServicesSQL Server Integration Services
SQL Server Integration Services
 
Olap
OlapOlap
Olap
 
Ssis 2008
Ssis 2008Ssis 2008
Ssis 2008
 
Oracle Apps Technical Manual
Oracle Apps Technical ManualOracle Apps Technical Manual
Oracle Apps Technical Manual
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
 
Oracle apex hosting
Oracle apex hostingOracle apex hosting
Oracle apex hosting
 
Preparing a Dataset for Processing
Preparing a Dataset for ProcessingPreparing a Dataset for Processing
Preparing a Dataset for Processing
 
Oracle Application Express 20.2 New Features
Oracle Application Express 20.2 New FeaturesOracle Application Express 20.2 New Features
Oracle Application Express 20.2 New Features
 
SQL Server Reporting Services 2008
SQL Server Reporting Services 2008SQL Server Reporting Services 2008
SQL Server Reporting Services 2008
 
Generating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data ModelerGenerating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data Modeler
 
Tips on successfully upgrading to apps 11i for the non apps dba
Tips on successfully upgrading to apps 11i for the non apps dbaTips on successfully upgrading to apps 11i for the non apps dba
Tips on successfully upgrading to apps 11i for the non apps dba
 
Oracle APEX Introduction (release 18.1)
Oracle APEX Introduction (release 18.1)Oracle APEX Introduction (release 18.1)
Oracle APEX Introduction (release 18.1)
 
SQL Server Integration Services
SQL Server Integration ServicesSQL Server Integration Services
SQL Server Integration Services
 
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
 
Rational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System ArchitectRational Publishing Engine and Rational System Architect
Rational Publishing Engine and Rational System Architect
 
Tableau Architecture
Tableau ArchitectureTableau Architecture
Tableau Architecture
 

Similar to Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده ی غیر محلی)

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)sheriframadan18
 
application-template-deployment-guide.pdf
application-template-deployment-guide.pdfapplication-template-deployment-guide.pdf
application-template-deployment-guide.pdfamazon4it
 
oracle-rest-data-service-instal-config
oracle-rest-data-service-instal-configoracle-rest-data-service-instal-config
oracle-rest-data-service-instal-confighunghtc83
 
Aucfanlab Datalake - Big Data Management Platform -
Aucfanlab Datalake - Big Data Management Platform -Aucfanlab Datalake - Big Data Management Platform -
Aucfanlab Datalake - Big Data Management Platform -Aucfan
 
Database Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wiDatabase Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wiOllieShoresna
 
Configuration Management Database System on High-Performance Computing
Configuration Management Database System on High-Performance ComputingConfiguration Management Database System on High-Performance Computing
Configuration Management Database System on High-Performance ComputingRusif Eyvazli
 
APEX Boston Meetup - October 1st, 2019
APEX Boston Meetup - October 1st, 2019APEX Boston Meetup - October 1st, 2019
APEX Boston Meetup - October 1st, 2019msewtz
 
Oracle Apex Intoduction.pptx
Oracle Apex Intoduction.pptxOracle Apex Intoduction.pptx
Oracle Apex Intoduction.pptxAbhishekJha401
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express pptAbhinaw Kumar
 
Oracle Application Express
Oracle Application ExpressOracle Application Express
Oracle Application ExpressHBoone
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseJeff Smith
 
Application express
Application expressApplication express
Application expressAntony Alex
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptxTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptxkmani5
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).pptTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).pptHusseinWassof
 

Similar to Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده ی غیر محلی) (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)
 
application-template-deployment-guide.pdf
application-template-deployment-guide.pdfapplication-template-deployment-guide.pdf
application-template-deployment-guide.pdf
 
oracle-rest-data-service-instal-config
oracle-rest-data-service-instal-configoracle-rest-data-service-instal-config
oracle-rest-data-service-instal-config
 
r4
r4r4
r4
 
Aucfanlab Datalake - Big Data Management Platform -
Aucfanlab Datalake - Big Data Management Platform -Aucfanlab Datalake - Big Data Management Platform -
Aucfanlab Datalake - Big Data Management Platform -
 
PPT temp.pptx
PPT temp.pptxPPT temp.pptx
PPT temp.pptx
 
Adf 11
Adf 11Adf 11
Adf 11
 
Database Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wiDatabase Integrated Analytics using R InitialExperiences wi
Database Integrated Analytics using R InitialExperiences wi
 
Oracle Intro.ppt
Oracle Intro.pptOracle Intro.ppt
Oracle Intro.ppt
 
Configuration Management Database System on High-Performance Computing
Configuration Management Database System on High-Performance ComputingConfiguration Management Database System on High-Performance Computing
Configuration Management Database System on High-Performance Computing
 
APEX Boston Meetup - October 1st, 2019
APEX Boston Meetup - October 1st, 2019APEX Boston Meetup - October 1st, 2019
APEX Boston Meetup - October 1st, 2019
 
Intro to Application Express
Intro to Application ExpressIntro to Application Express
Intro to Application Express
 
Oracle Apex Intoduction.pptx
Oracle Apex Intoduction.pptxOracle Apex Intoduction.pptx
Oracle Apex Intoduction.pptx
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
 
Oracle Application Express
Oracle Application ExpressOracle Application Express
Oracle Application Express
 
Jacob Keecheril
Jacob KeecherilJacob Keecheril
Jacob Keecheril
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle Database
 
Application express
Application expressApplication express
Application express
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptxTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).pptTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده ی غیر محلی)

  • 1. Introduce ORDS and Data Live Charting Project by this service Mahdi Ahmadi
  • 2. About Mahdi Ahmadi • We will keep this short: • My Name is Mahdi Ahmadi – born1995 in Iran. • Working since 2016 as a developer on APEX and PL/SQLprojects. • APEX Developer of the Year 2017. You can always reach me under the following email address: ma.ahm.325@gmail.com
  • 3. ■ Why using ORDS? ■ Things to consider ■ Understanding the Architecture ■ Rest Data Live Charting Agenda
  • 5. Why ORDS ?? ▪ Oracle REST Data Services (ORDS) is a Java EE-based alternative 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.
  • 6.  This is my Resource page for Oracle REST Data Services (ORDS), formerly known as the APEX Listener.  ORDS doesn’t require APEX, and you can run APEX without ORDS. My posts here concentrate on core ORDS features, generally REST enabling your Oracle Database.  ORDS is our middle tier JAVA application that allows you to access your Oracle Database resources via REST. In the tiniest and simplest of nutshells, GET|POST|PUT|DELETE|HEAD /db_stuff/ – ORDS maps a URI to something in your Oracle Database (a query, an object, an anonymous block, etc.), runs the appropriate SQL/PLSQL, and returns any output as JSON.
  • 7.  By using a stateless protocol and standard operations, REST resources are created to optimize for fast performance, reliability, portability, and growth. This is achieved by creating reusable underlying components that can be managed and updated without affecting the system, even while REST is running.  RESTful services, is divided into two sections: Consuming RESTful services and Providing RESTful services.  While consuming RESTful Services uses the standard HTTP operations, processing the data returned through a RESTful service is different. Oracle Application Express 18.1 provides a comprehensive set of components to make consuming RESTful services easier.
  • 8. MANAGE ORDS FROM YOUR TERMINAL, VIA PL/SQL APIS, OR OUR GUI IN SQL DEVELOPER.
  • 9. ▪ If using a setup with Oracle RDS, you can provide RESTFul Web 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.name">EXCEL_COLLECTION</entry> <entry key="apex.excel2collection.useSheetName">true</entry> </properties>
  • 10. Why this kind of setup at all? ▪ Infrastructure for Oracle APEX production environments often poorly 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: ▪ 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
  • 11. ▪ Download Oracle REST Data Services (ORDS) here: ▪ 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 ORDS ▪ Download Tomcat (newest version) here: ▪ http://tomcat.apache.org/ Prerequisites
  • 13. Understanding the Architecture  Representational State Transfer, or REST, is an architecture used for Web Services that is rapidly becoming an important standard for Web data access. RESTful Web Services operates over HTTP/S frequently in the form of a set of data. Oracle REST Data Services provide a RESTful interface to data and logic in an Oracle Database and was formerly known as “Oracle APEX Listener”.  Installed into any J2EE compliant Web Server such as Apache Tomcat or Weblogic, Oracle REST Data Services provide Explorer with the ability to open up APEX applications to external and remote data sources and tightly integrate applications.
  • 15. http http JDBC Oracle Browser Webserver PL/SQL Gateway Oracle DB Serve static files SSL termination Cache / Proxy Translate URL /ords/f?p=100:1 => APEX: Execute Logic https AJP SQLNet 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 Understanding the Architecture
  • 16. ▪ The WORK is done IN THE DATABASE ▪ The Webserver and PL/SQL gateway don’t need a lot of processing power, most of the time idle
  • 17. ▪ The components in this presentation: ▪ Windows 8 64 bit (virtual machine) ▪ ORDS 3.0 ▪ Oracle XE 11g ▪ APEX 5.0.0
  • 18. saTESnt Reurrncoo cgdinoracceSi sona iepoTSERor aol fopnoectnonCTSRE )4.2.2+XEPAhwiR (ESU_CLIBUP_STERX_EPA 002400_XEPy Aorosipeom rs fnon tDe iTESs RdaReads RES Definitions from repository APEX 040200e +)24.2.XEPAhwitR (ENETLISX_EPAPEX_LISTENER( WITH APEX 4.2.2+) OPTIONALLY installed when using REST services APEX_PUBLIC_USER APEX / OWA main connection pool Size according to number of concurrent apex users i t ORDS2.0 r t z i ll t c ll ■ Users APEX_LISTENER and APEX_REST_PUBLIC_USER were created using the script apex_rest_config.sql as part of the APEX installation.
  • 19. R:ESU_CLIBPU_TSER_XEPA ndaRENTESLI_XEPAsersuehor td feenehst te iserhyntleurrC ORDS3.0 ■ ORDS 3.0 support RESTful Webservices even without APEX 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 ■ t ill ■ 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)
  • 20.  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” ■ Should we migrate the existing RESTful definitions in our APEX environment? ■ => !!! NO !!! ■ What happens? definition ■ 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
  • 21. Rest Data Live Charting
  • 22. Purpose of this app  The science of statistics is one of the branches of mathematical science that studies and analyzes statistical data. The statistical data is a collection of numbers that are derived from measurements and counting  Different planning in social and economic affairs is not possible without the use of statistics and statistical analysis. Collection and adjustment of data is the first stage in statistical studies  Charts are images that can quickly access existing information; you've heard that a good image worth a thousand words. By looking at a graph at a glance, you can see many features of a set of information. Today, the use of charts is very common. Graphs or curves show numerical and statistical information on a regular basis and map the relationship between two or more factors
  • 23.  Type Of Charts :  You can put all sorts of charts in a few categories: linear, columnar, circular, and gauge.  There are other types, but the basis of each of them is more and less in the form of one of three categories. For example, a graphic illustration of images of individuals and objects in relation to one of the three categories mentioned above.
  • 24. JET Charts in Application Express 5.1  One of the most-mentioned new features in Application Express 5.1 are the new charts based on Oracle JET. JET is the abbreviation for Javascript Extension Toolkit. It is targeted at intermediate to advanced JavaScript developers working on client-side applications. It's a collection of open source JavaScript libraries along with a set of Oracle contributed JavaScript libraries that make it as simple and efficient as possible to build applications that consume and interact with Oracle products and services, especially Oracle Cloud services  Oracle JET contains a lot of components for data visualization - and these are the foundation for the new chart types in Application Express 5.1. Note that not all JET visualizations are available as Application Express charts (at least at this time)
  • 25. Describe Data Live Charting : Add Rest Services  This application enables you to access RESTful services defined in your workspace as well as public services. The application provides metadata-driven mapping from service response data to SQL result set columns. Generated SQL and PL/SQL code can be and used in own applications.  The examples in this application illustrate how to create a simple report on REST service data, how to filter, and how to add pagination. REST data can also be downloaded as csv file and staged into a local table for further processing, analysis, usage and creating customized any type of charts by Oracle Application Express components.
  • 26.  As shown in the below screenshots, you must do the following to get the data associated with the service:  Naming the service and giving information related to its authentication  Getting data in the selected response type  Selecting the desired columns  Selecting the service created and getting relevant data
  • 27.
  • 28.  By adjusting and setting values in the “Chart Settings” section to any of the chart types, you can have dashboard like below images.
  • 29. Describe Data Live Charting : Page Settings  Each chart type has its own customizable item in “Chart Setting” section  For example : Orientation, Label, Value, Aggregation, Sort by, Direction,… and other items settings in Gauge chart type are Value Type, color or value ranges, …  The values of the selected list for the items listed are completely dynamically generated, and each one varies depending on the Rest Services.
  • 30.
  • 31. Describe Data Live Charting : Other Settings  In the final section of this professional program we can point out:  Ability to save settings of different type of charts  Ability to save different settings of one type of charts  Ability to select and activate one of the settings you are looking for  Possibility to comment on the settings  …
  • 32.