Oracle by Example brandingDesign a Data Model for an Oracle APEX App on Exadata Express Cloud

section 0Before You Begin

This is the first tutorial in the Building an Oracle Application Express App on Oracle Database Exadata Express Cloud Service series. Perform each of these tutorials sequentially as there is a dependency to complete one before starting the next one.

In this first tutorial, you will design a data model. It takes approximately 15 minutes to complete.

Background

Oracle Application Express is a low code, rapid web application development tool. It enables you to efficiently develop and maintain beautiful, responsive and database-driven applications using only your web browser.

What Do You Need?

  • A desktop or laptop computer running Microsoft Windows 7, Apple MacOS 10.9 or later, or Oracle Linux and a web browser. Oracle Application Express supports the current and prior major release of Google Chrome, Mozilla Firefox, Apple Safari, Microsoft Internet Explorer and Microsoft Edge.
  • An Oracle Exadata Express Cloud Service account with two service instances. You will develop an app on one instance and deploy it on the second instance of the service.

section 1Install Quick SQL

You will use Quick SQL to design a data model. Quick SQL is a packaged app available with Oracle Application Express. To install Quick SQL, access your Exadata Express Cloud Service instance.

  1. On the Oracle Exadata Express Cloud Service instance landing page, click Develop in the left navigation pane.
    Exadata Express Home
    Description of the illustration low_code_data_model_step 1_1.png
  2. On the Develop page, click the App Builder icon. This takes you to the App Builder page that has a number of tools and utilities.
    Exadata Express Develop
    Description of the illustration low_code_data_model_step 2_1.png
  3. To see a list of packaged apps, click the Packaged Apps drop-down menu and select Productivity Apps.
    App Builder
    Description of the illustration low_code_data_model_step 3_1a.png
  4. Click the Quick SQL icon.
    Packaged Apps
    Description of the illustration low_code_data_model_step 4_1.png
  5. In the Install Packaged App dialog, click Next and then click the Install Packaged App button.
    Install Packated App
    Description of the illustration low_code_data_model_step 5_1a.png

section 2Design a Data Model

  1. Access the Quick SQL app you installed in the previous step. On the App Builder page, click the Quick SQL icon.
    App Builder
    Description of the illustration low_code_data_model_step 1_2.png
  2. Click the Run button.
    Quick SQL
    Description of the illustration low_code_data_model_step 2_2.png
  3. Choose the default set up for Quick SQL. Click the Complete Set Up button.
    Quick SQL Set Up
    Description of the illustration low_code_data_model_step 3_2.png
  4. In the left pane of the Quick SQL app, start typing shorthand SQL to create the data model. Create the EMPLOYEES table and add a SKILLS table.
    Quick SQL
    Description of the illustration LowCode_apex_02_01.png
  5. Enter the shorthand SQL displayed below:
  6.  employees /insert 50
          name /nn
          email /lower
          city
          country /values US, US, MX, CA
          skills /insert 150
              skill /nn /upper /values Java, Java, Java, JS, JS, SQL, PHP, Perl, ABCS, APEX, Python
             proficiency num /nn /check 1, 2, 3, 4
  7. Create a view. Enter the shorthand SQL statement displayed below after the shorthand SQL statements for creating tables.
  8. view employee_skills employees skills
  9. To configure your data model settings, click the Settings button.
    Quick SQL
    Description of the illustration LowCode_apex_02_02.png
  10. In the Settings dialog box, in the Table Settings section, enter OC in the Object Prefix field.
    Settings Dialog
    Description of the illustration LowCode_apex_02_02_1.png
  11. In the Additional Columns section, click to select the Audit Columns check box.
    Settings Dialog
    Description of the illustration LowCode_apex_02_02_2.png
  12. In the Generation section, select Yes for Include Drops and Apex Enabled options. Click Save Changes. Next, from the right pane of the Quick SQL app, copy the automatically generated SQL statements to the clipboard.
  13. Settings Dialog
    Description of the illustration LowCode_apex_02_02_3.png
  14. Access your Oracle Application Express workspace.
  15. To create a script from the generated SQL in Quick SQL, open the Script Editor. Click SQL Workshop and select SQL Scripts.
    SQL Workshop menu
    Description of the illustration LowCode_apex_02_03.png
  16. Click Create.
  17. Paste the automatically generated SQL statements copied from Quick SQL in a preceding step into Script Editor. Enter a name for the script and click Run.
    SQL Script, Script Editor
    Description of the illustration LowCode_apex_02_04.png
  18. Click Run Now.
    Run Script dialog
    Description of the illustration LowCode_apex_02_05.png
  19. Verify created objects. Click View Results.
    Manage Script result
    Description of the illustration LowCode_apex_02_06.png
  20. Review the results displayed.
    Script result
    Description of the illustration LowCode_apex_02_07.png
  21. Verify the EMPLOYEES table. Click SQL Workshop, click Object Browser and then select OC_EMPLOYEES from the left pane.
    OC_EMPLOYEES
    Description of the illustration LowCode_apex_02_08.png
  22. Verify the SKILLS table. Select OC_SKILLS from the left pane.
    OC_SKILLS
    Description of the illustration LowCode_apex_02_09.png

next stepNext Tutorial

Develop an Oracle APEX App on Oracle Exadata Express Cloud