Professional Documents
Culture Documents
Application Data
Practice 1: Manage Application Data
Overview
Oracle APEX allows you to build robust, feature-rich applications against remote, web, and REST
data sources. In this lab, you log in to a remote database, create a database table, and then
register a schema with RESTful Services. You will then create a new application and then
consume the REST Data Source we created. Then, you will synchronize the data from REST
Data Source to the Local Database table using REST Data Synchronization.
Before starting this lab, you need to provision a new APEX instance or Workspace.
In this hands-on lab, you will log in to a new, remote APEX workspace, create a table, and then
register schema with ORDS.
6. In the next window, leave the attributes to default and then click Save Schema
Attributes.
8. Under AutoREST Enable Object, select the following and click Create.
Create an Application and Integrate Application Data from REST Data Source
In this lab, you create a New Application and then consume the REST Data Source we created
in the previous task. Then, you will synchronize the Data from REST Data Source to the Local
Database table using REST Data Synchronization.
1. Log in to the first workspace, where we have already created multiple applications.
9. Under Create REST Data Source, enter the following and click Next.
• For REST Data Source Type - select Oracle REST Data Services.
• For Name - Enter Employee Details API.
• For URL Endpoint - Enter the URI we copied in Task 1.
In this lab, you will synchronize data from the REST Data source you created in Task 2 to a
Local table.
The Data Synchronization feature enables developers to automatically sync the contents of a
local table with the data from an external REST service. Basically, APEX invokes the REST Service
defined in the REST Data Source, downloads all data, and synchronizes it to a local table.
1. Now that you have created a REST Data Source, Under REST Data Sources, select No
under the Synchronized column for Employee Details API.
3. The synchronization table is not created yet. You can view the SQL that is used to create
the table. Click Show SQL.
4. Under Table Status, click Create Table. The table EMP_2 is now ready for synchronization.
Notice the message The synchronization table exists and matches the Data Profile.
5. You will define a synchronization schedule now. In the Synchronization Schedule field,
you can use the Database Scheduler calendaring syntax to define repeating
synchronization schedules, such as "every Tuesday and Friday at 4:00 p.m." or "the second
Wednesday of every month." This calendaring syntax can be provided manually. Click the
Schedule Builder button next to Synchronization Schedule.
7. You are now ready to test the data synchronization. Click Save and Run.