Big Data. Big Decisions
InformationWeek
Special Coverage Series

Commentary


Apex for Web Applications Based on Oracle Databases



Oracle has just released version 3.1 of Oracle Application Express (Apex), the tool of choice for building secure web applications based on Oracle databases without the need for a middle tier.

I just finished upgrading my development and demonstration environments from 3.0 to 3.1 and Apex seems like a natural place to start blogging on application development tools. The only hitch here is that Oracle tools and software are very rarely covered in DDJ, which has been unfortunate considering the richness and capabilities of the tools.

If you are not aware of Apex, there is a large amount of information available on otn.oracle.com under both database and application development. The links point to the same place. Apex is included for free with Oracle 10g and comes preloaded in the new Oracle 11g version of the database product.

I use Apex to build web apps that are in the 100-200 page range which includes both functional pages and administration pages. The apps themselves are build on an Oracle schema containing a data model representing the business functionality. The Apex application is generated by the Apex Application Builder and then interpreted at runtime by the Apex engine, all of which runs from the database. The application web pages are generated either through Apache configured with an Oracle extension mod_plsql or through a plsql gateway. There is no application server involved.

The application builder creates pages using templates and common templates are available for overall page and application look and feel as well as actual page layout. My experience is that this is an enormous time saver since database-based applications generally have a lot of the same functionality repeated as needed. For instance, maintenance pages for lookup tables are a bane and are generally coded last and not given much attention. With Apex, a form on report template is used that builds a report on the table with selected columns displayed and provides a link for editing. The link navigates to a forms page that allows for input or modification, provides standard buttons for controlling actions, and also provides the DML (data manipulation language) to fetch as well as save a row. The upshot is that a maintenance page on a table can be assembled fully functional and tested in less than 5 minutes. Once created, the pages can be customized as needed.

In some sense, it is old school in forcing a lot of attention on the data model, but with a proper data model that represents the functional business of the application, the application development becomes the easy part. Data modeling is also something we do not hear a lot about, but is in my mind a fundamental skill regardless of whether it is for a database engine like Oracle or is for a java app.

I am in the middle of another one of these 100-200 page web applications intended to help protect personal data in other enterprise applications like Social Security numbers. You may not be aware that an SSN is worth about $14 each and the organization that lost the SSN usually have to spend upwards of $184 per SSN to correct the damage. SSN security breaches usually involve 10s of thousands of SSN making theft very profitable and recovery very expensive. Applications that manage SSN need to be hardened against hacker attack and the Apex applications I have build so far have passed 3rd party security audits. In general, security has to be in everything; I can't imagine applications built without some form of hardening including linking into identity management processes to make sure only the right people in the right roles can access the application and see only that data they are allowed to see.

More to come including some illustrations and code. Apex uses Oracle's procedural language - PL/SQL - which will look very familiar to Ada programmers. PL/SQL is the choice because Apex can execute code dynamically from within the application, a feature not supported for Java. To do Java, the procedural code needs to be compiled into the database schema separately where the Java is wrapped in PL/SQL then can be referenced from the Apex application. PL/SQL is specific for Oracle creating a portability problem, but considering how many customers have the Oracle database and all of them know PL/SQL, portability is not really a problem. In fact, I have some customers that will not take an application not in PL/SQL due to support issues.

All of this is available on otn.oracle.com. The database is available for free with a developer license and runs nicely on recent windows XP Pro laptops with 2G RAM giving you a chance to take a look at the full technology. Apex is bundled with the database for free. If you build web apps on top of Oracle databases, this is the tool. Works for me. More to come on this.

++B



Related Reading


More Insights




Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

BYTE encourages readers to engage in spirited, healthy debate, including taking us to task. However, BYTE moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing/SPAM. BYTE further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.

Follow InformationWeek

By The Numbers

What Are Your Primary Concerns About Using Big Data Software?

Base: 417 respondents at organizations using or planning to deploy data analytics, BI or statistical analysis software
Data: InformationWeek 2013 Analytics, Business Intelligence and Information Management Survey of 541 business technology professionals, October 2012

What Do You Think?

What's your attitude about SQL analysis on top of Hadoop?
We want fast, standard SQL analysis capabilities on Hadoop ASAP
Hadoop is for unstructured data; SQL is for relational databases
We'll give SQL on Hadoop a try, but relational DBs will remain the mainstay
Given strong SQL support on Hadoop, we'd nix the data warehouse
We're not interested in Hadoop
No opinion



Related Content

From Our Sponsor

Five Big Data Challenges and How to Overcome Them with Visual Analytics

Five Big Data Challenges and How to Overcome Them with Visual Analytics

Business leaders often need a visual snapshot of data to quickly grasp and use it. This paper identifies five challenges in presenting data and how visual analytics can resolve them. Solutions are suggested to overcome the challenges of: speed, data clarity, data quality, displaying meaningful results, and dealing with outliers.

Game-Changing Analytics: How IT Executives Can Use Analytics to Create Innovation and Business Success

Game-Changing Analytics: How IT Executives Can Use Analytics to Create Innovation and Business Success

Today's competitive advantage requires a deeper understanding of your business, your market and your customers. As an IT executive, you can drive that knowledge transformation. In this white paper, learn how to make decisions as a strategic business leader and three steps to begin an analytics initiative within your enterprise.

Data Visualization Techniques: From Basics to Big Data with SAS Visual Analytics

Data Visualization Techniques: From Basics to Big Data with SAS Visual Analytics

High-performance data visualization turns sophisticated analyses into meaningful graphics, leading to faster and smarter decision making. In this white paper, learn how visual analytics can transform big data, with additional features such as real-time functionality, mobile compatibility, robust applications for technical groups and accessibility for nontechnical users.

Big Data: Lessons from the Leaders

Big Data: Lessons from the Leaders

Financial performance, competitive advantage, operational efficiency, strategic decision making - every business goal can extract value from big data, and the time for doubt or inaction has long passed. In this Economist Intelligence Unit report, in-depth interviews with data pioneers reveal the link between the effective use of big data and the bottom line among other results.

Decision-Driven Data Management: A Strategy for Better Decisions with Better Data

Decision-Driven Data Management: A Strategy for Better Decisions with Better Data

Which came first, the data or the decision? This white paper makes the case for having a decision in mind, then tailoring big data's volume, variety and velocity to achieve business results such as overcoming customer dissatisfaction or creating well-informed strategies in real time.

Informationweek Reports

Research: The Big Data Management Challenge

Research: The Big Data Management Challenge

The challenge of big data is real, but most organizations don't differentiate 'big data' from traditional data, and nearly 90% of respondents to our survey use conventional databases as the primary means of handling data. We'll help you understand what constitutes big data (it's not just size) and the numerous management challenges it poses.