This introduction to Oracle APEX shows how to build a browser-based application on top of an Oracle database. You’ll create a simple task tracker with a report for browsing tasks and a form for adding or updating them. Along the way, you’ll learn where to write SQL, where to configure page behavior, and when you need PL/SQL instead of a built-in component.
What is Oracle APEX?
Oracle APEX, or Oracle Application Express, is a low-code platform for building web applications that use Oracle Database. It provides configurable reports, forms, charts, and navigation, so you don’t have to write every page or database operation from scratch. Common uses include internal dashboards, inventory trackers, and tools that replace spreadsheets with a shared source of data.
An APEX application has two distinct parts: the database objects that hold the data and the application definitions that describe how people interact with it. For example, a task title is stored in a database table, while the form label, display order, and Save button are configured in APEX. Understanding that distinction helps you decide whether a change belongs in the database or on the page.
You develop in an APEX workspace, which gives you access to applications and one or more associated database schemas. A schema owns objects such as tables and views. Each application has a parsing schema, which determines the database privileges available to the application when it runs SQL and PL/SQL. If a table appears to be missing, check which schema owns it and which schema the application uses before creating another copy.
Introduction to Oracle APEX: The main development tools
App Builder and Page Designer
Use App Builder to create an application, add pages, and manage application-level settings. Open an individual page in Page Designer to edit its components. For example, use App Builder to add a task report page, then use Page Designer to change the report’s query or add a filter.
In Page Designer, a region groups content such as a report or form. An item holds a value, such as a task title or a selected status. Buttons let users take actions, while validations check submitted data and processes perform work such as saving a row. Dynamic actions respond to browser events, such as showing a field when someone chooses a particular option. Start with declarative settings and add custom code when they can’t express the behavior you need.
SQL Workshop
SQL Workshop is where you work with database objects and data. Use Object Browser to inspect tables, columns, and constraints. Use SQL Commands to run individual statements and check their results. If you have several statements that need to run in order, use SQL Scripts to keep them together. Testing a query here before adding it to a report makes it easier to tell whether a problem comes from the SQL or the page configuration.
Shared Components
Shared Components contains settings and definitions that can be reused across the application. These include lists of values, navigation elements, and authentication and authorization schemes. For a task tracker, you could define the status choices once and reuse them in both the edit form and the report filter. That keeps the choices consistent when you change their labels or display order.
How to develop your first Oracle APEX application
1. Create a task table
Start by deciding what one row represents. In this example, one row is one task. It needs a stable ID, a title, a status, and an optional due date. In SQL Workshop, run the following statement in the schema you plan to use for the application:
CREATE TABLE tasks (
task_id NUMBER GENERATED ALWAYS AS IDENTITY PRIMARY KEY
, title VARCHAR2(200) NOT NULL
, status VARCHAR2(20) DEFAULT 'OPEN' NOT NULL
, due_date DATE
, CONSTRAINT tasks_status_ck CHECK (status IN ('OPEN', 'DONE'))
);
The identity column lets Oracle assign each task ID. The primary key gives APEX a reliable way to locate a row for editing, even if several tasks have the same title. The status constraint prevents invalid values regardless of whether the row is written by an APEX form or by another tool. The default applies when an insert omits the status column; configure an initial value in the form as well if you want users to see Open before saving.
2. Generate a report and form
Create an application in App Builder and name it Task Tracker. Use the page wizard to create an interactive report based on the TASKS table. Where the wizard offers a companion form, include it; otherwise, create a form page separately and link to it from the report. Wizard labels and options can vary by APEX release.
Run the application and check that the report has a way to open the form for a new task and to edit an existing task. When editing, the report should pass the selected row’s ID to the form’s primary-key item. When creating, the form should open without an existing ID. The generated form’s automatic row-processing configuration handles the database write, so you usually don’t need to add your own INSERT or UPDATE process.
3. Configure the form and report
In Page Designer, make the task title required and configure the due date as a date picker. Use a select list for status instead of a text field. Define Open and Done as display labels, with OPEN and DONE as the return values that match the database constraint. This gives users readable choices without changing what the database stores.
On the report, put the title, status, and due date in a useful reading order. You can hide the task ID as a visible column while keeping it available for edit links. Confirm that saving a task returns the user to a sensible destination, such as the report, and that the changed row appears there.
4. Test the complete workflow
Create a task without a due date, edit it to add one, and mark it as done. Try submitting a blank title to check that the form gives a clear error. Create two tasks with the same title and edit just one to verify that the link uses the ID rather than the title. If you leave deletion enabled, make sure users are asked to confirm it and that only the intended row is removed.
Use the application as an end user as well as a developer. Before sharing it, decide who can sign in and what those people can do. Authentication establishes who the user is; authorization controls what that user can access. If some users may view tasks but not edit them, protect the edit page and the save operation rather than merely hiding the Edit button.
Basic SQL commands used in Oracle APEX
APEX can generate many routine queries and form operations, but knowing the underlying SQL makes it easier to build reports and diagnose unexpected results. Practice these statements against your development table. For the update and delete examples, replace the example ID of 1 with the ID of a test row you’ve verified.
SELECT: Read rows for a report
A SELECT statement retrieves data without changing it. Use WHERE to filter rows and ORDER BY to set their order. This query shows open tasks with dated tasks first:
SELECT task_id, title, status, due_date FROM tasks WHERE status = 'OPEN' ORDER BY due_date DESC, task_id;
Include task_id in the query if report links need it, even if you don’t display it. If you want to show every task, remove the status condition. If a newly completed task disappears from this particular report, that’s expected: it no longer matches the filter.
INSERT: Add a row
An INSERT statement adds a record. The following example names the columns it supplies and leaves the identity column for Oracle to generate:
INSERT INTO tasks (title, status, due_date)
VALUES ('Review project notes', 'OPEN', DATE '2027-01-15');
The date literal uses a fixed year-month-day format and doesn’t rely on the session’s default date format. You can omit the due date if the task has no deadline. After inserting the example, run a SELECT to find the generated task ID before trying the next command.
UPDATE: Change an existing row
An UPDATE statement changes rows that match its condition. Here the primary key identifies one task:
UPDATE tasks SET status = 'DONE' WHERE task_id = 1;
When practicing a manual update, first use a SELECT with the same WHERE clause to confirm which rows match. An UPDATE without a WHERE clause changes every row in the table, not just the row you last viewed.
DELETE: Remove a row
A DELETE statement removes matching rows. Use a disposable test record for this example:
DELETE FROM tasks WHERE task_id = 1;
As with UPDATE, omitting the WHERE clause affects the entire table. In an application, consider whether users should delete records at all. If the business needs a history of completed or cancelled tasks, preserving those tasks with an appropriate status is usually more useful than deleting them.
Functions: Calculate or transform values
Functions return a value. For example, the built-in aggregate function COUNT can produce a task total for each status:
SELECT status, COUNT(*) AS task_count FROM tasks GROUP BY status;
This query returns one row per status present in the table, so a status with no tasks won’t appear with a zero count. A report or chart can use these totals without storing a separate count that would need to be kept in sync.
How page items, SQL, and PL/SQL work together
SQL retrieves or changes data. PL/SQL adds procedural logic, including conditions and calls to stored procedures or functions. In APEX, you might use SQL as a report source and PL/SQL to call an existing business procedure when a form is submitted. Use the built-in form process for straightforward row saves and keep rules that must apply across applications in the database where practical.
APEX stores page item values in session state so server-side components can use them. Suppose page 1 has a status filter named P1_STATUS. The report query can read that item with a bind variable:
SELECT task_id, title, status, due_date FROM tasks WHERE (:P1_STATUS IS NULL OR status = :P1_STATUS) ORDER BY due_date DESC, task_id
When the item is empty, the query shows all tasks. When it contains OPEN or DONE, the query shows the corresponding rows. If the report refreshes without a full page submit, configure the refresh to submit P1_STATUS to the server. Otherwise, the browser may show the new selection while the report still uses the previous value. Use bind variables rather than concatenating item values into SQL text.
If a page behaves differently from what you expect, check the database row first, then the item’s session state and the conditions on page processes. A save might be blocked by a validation, for example, while a filter problem might simply mean the new item value never reached the server. For more on using database logic in your application, see this Oracle APEX and PL/SQL guide.
What to build next
Once the report and form work, add one improvement at a time. A status filter is a good next step because it connects a page item, a shared list of values, and a SQL query. A chart based on the task count query lets you reuse the same table for a different view of the data. Test each change before adding the next so that any unexpected behavior is easier to trace.
When you’re ready to move the app to another environment, plan for both the APEX application export and the database objects it depends on. Importing the application alone does not recreate your table or copy its rows unless you have explicitly packaged the necessary setup. Keep your table definition and later schema changes in versioned SQL scripts so you can reproduce the application in a clean environment.