Application Express

PreviousNext

Architecture

Application Express utilizes a Web browser on the user's computer communicating through a Web listener to the Oracle Database. No client software, other than a browser, is required for development, deployment or runtime. Application Express pages are rendered using HTML within the browser. Page requests and submissions are sent to the Application Express engine within the Oracle Database.


Metadata Driven

Oracle Application Express is an integrated feature of the Oracle database. The essence of Oracle Application Express is over 300 tables and 200 PL/SQL objects containing more then 300,000 lines of code. The Oracle Application Express engine renders pages dynamically in real time from the data contained within the Oracle Application Express metadata repository.

When you create or extend an application, Oracle Application Express creates or modifies the metadata stored in its database tables. When the application is run, the Oracle Application Express engine then reads the metadata and displays the requested page or processes page submissions.

To provide stateful behavior within an application, Oracle Application Express transparently manages session state in the database. Application developers can get and set session state using simple substitutions as well as standard SQL bind variable syntax.

Web Listener

Oracle Application Express Listener

The Oracle Application Express Listener is a Java based alternative to Apache mod_plsql. The Oracle Application Express listener is supported to run on Oracle WebLogic Server and OC4J.

Apache MOD_PLSQL

One way to access the Oracle Application Express engine is to configure the Oracle HTTP Server (Apache) containing the mod_plsql plug-in . The plugin functions as communication broker between the Web server and the Oracle Application Express objects in the Oracle database. This maps browser requests into database stored procedure calls. Images are stored on the file system and served by Apache. Using Apache allows the web listener to be placed on the same physical machine as the database, or on a separate physical machine.

Embedded PL/SQL Gateway

The Embedded PL/SQL Gateway (EPG) runs in the XML DB HTTP server in the Oracle database and includes the core features of mod_plsql, but does not require the Oracle HTTP Server powered by Apache. The EPG stores and serves all files, including images, CSS, and JavaScript from the database. The EPG is convenient for smaller configurations. The EPG is not recommended for larger scale production use cases or Internet facing applications.

Multi Tenant

Oracle Application Express enables a single database to host large numbers of applications and users. Developers work in a dedicated work area called a workspace to develop applications against one or more schemas. This flexible architecture enables a single database instance to act as a "Platform as a Service" (PaaS), providing a hosted Intranet capability within the organization.

Reporting

Oracle BI Publisher

If you have Oracle BI Publisher then Oracle Application Express can be configured to provide "high-fidelity" printing capabilities. Within Oracle Application Express, developers can declaratively define multiple queries, including bind variables, to form the basis of report layouts in Oracle BI Publisher and then integrate these reports into their Oracle Application Express applications.

Other Report Servers

Your report server can be Oracle BI Publisher, OC4J with Apache FOP or another standard XSL-FO processing engine.

Configuring a report server within Application Express enables you to download various report formats, such as PDF, from interactive report regions.

Interoperability

Web Services Support

The Application Express Web services engine supports loosely defined types and document style Web services. This makes it possible to support JDeveloper created Web services and Oracle BPEL synchronous Web services. It is possible to interact with Web services over SSL (HTTPS) as well as Web services that require basic authentication. There is also support for manually creating a Web service reference if the Application Express engine cannot correctly parse the WSDL document for a particular service. You simply supply the SOAP request envelope and the URL endpoint among other information.

Application Express provides wizards to simplify the task of defining RESTful Web Services. Public regions can also be defined to emit REST Web Services.

Database Integration

Oracle Application Express is tightly integrated with the Oracle database.

SQL

Natively write SQL queries, and DML operations. Use bind variable syntax to access bind variables.

select ename, job from emp where empno = :P2_EMPNO
PL/SQL

Natively use PL/SQL as region source, in page processing, in application-level processes, and in component condition text. Reference session state using bind variable syntax. Set session state using bind variable syntax.

Calls to Oracle Database packages, procedures and functions can also be incorporated into region source.

begin
   htp.p('HELLO WORLD'); 
end;
Oracle Text

Perform full text search of documents using Oracle Text contains clause.

select * from emp where contains(resume, :P1_SEARCH, 1) > 0
XML DB

Query data stored as XML, access data in XML datatypes, perform xpath queries that leverage the capabilities of Oracle XML DB.

select XMLCast( XMLQuery ('$p/PurchaseOrder/Reference/text()' 
passing object_value as "p" returning content) as VARCHAR2(32)) "Reference" 
from purchaseorder 
where XMLExists('$p/PurchaseOrder[User/text()="SBELL"]' 
passing object_value as "p")
Oracle Real Application Clusters

The high availability and scalability offered by Oracle Real Application Clusters (RAC) enables businesses to ensure high returns on their IT investments. Combining Oracle Application Express with Oracle RAC enables users to quickly build, modify and deploy their applications with continued access to mission critical data while drawing benefit from the robust and transparent infrastructure provided by Oracle RAC.

Oracle Spatial

Integrate spatial queries and spatial data using Oracle Application Express.

declare
   l_thumb    blob;
begin
   -- resize image
   select blob_content into l_thumb from mytable where id = :ID
   ordsys.ordimage.process(l_thumb, 'maxScale=64 64');
end;
Multimedia

Oracle Multimedia is a feature of Oracle Database Standard Edition and Enterprise Edition. It provides support for the most popular multimedia formats with built-in metadata extraction and basic image processing. Oracle multimedia also provides comprehensive support for DICOM content. Multimedia can be accessed using PL/SQL API's from within Oracle Application Express applications.

Analytic Functions

Write SQL that uses analytic functions to integrate powerful lag, lead and other analytic functions.