Skip Headers
Oracle® HTML DB User's Guide
Release 1.6

Part Number B14303-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

2 Quick Start

This section offers a quick introduction to using Oracle HTML DB. This section assumes you have already completed the installation process.

This section contains the following topics:

See Also:

Understanding Oracle HTML DB User Roles

In the Oracle HTML DB development environment, users log in to a shared work area called a workspace. Users are divided into three primary roles:

A developer can create and edit applications. A Workspace administrator performs administrator tasks specific to their workspace. An Oracle HTML DB administrator manages an entire Oracle HTML DB development environment instance.

Logging in to Oracle HTML DB

When you log in to Oracle HTML DB you log in to a workspace. A workspace is an area within the Oracle HTML DB development environment where multiple developers can create applications.

Topics in this section include:

Note:

Before users can request a workspace or change their passwords, an Oracle HTML DB administrator must configure Oracle HTML DB environment preferences.

Requesting a Workspace

Note:

This section only applies if your Oracle HTML DB administrator has configured Oracle HTML DB to support workspace requests.

See Also:

"Specifying a Provisioning Mode" for more information on enabling workspace requests

Before you can log in to Oracle HTML DB, an administrator must grant you access to a workspace. Each workspace has a unique ID and name. Only an administrator with the appropriate credentials can create a new workspace.

Whether you should use an existing workspace or request a new one depends upon your development goals. Consider the following general criteria:

  • Existing Workspace - Use an existing workspace if you are building an application on data that already exists in the database.

  • New Workspace - Request a new workspace if you are building an application on data that does not yet exist in the database (for example, data from a spreadsheet or desktop database).

To request a workspace:

  1. In a Web browser, navigate to the Oracle HTML DB Login page. By default, Oracle HTML DB installs to the following location:

    http://hostname:port/pls/htmldb/htmldb
    
    

    Where:

    • hostname is the name of the system where Oracle HTTP Server is installed.

    • port is the port number assigned to Oracle HTTP Server. In a default installation, this number is 7777. You can find information about your Oracle HTTP Server installation's port number from either of the following files:

      • ORACLE_BASE\ORACLE_HOME\install\portlist.ini

      • ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf\httpd.conf

    • htmldb is the database access descriptor (DAD) defined in the mod_plsql configuration file.

    The Login page appears.

  2. Under Tasks, click Request a Workspace.

    The Request Service Wizard appears.

  3. Click Continue and follow the on-screen instructions.

Logging in to a Workspace

Once your workspace request has been approved, an Oracle HTML DB administrator provides you with a workspace name, username, and password.

To log in to Oracle HTML DB:

  1. In a Web browser, navigate to the Oracle HTML DB Login page. By default, Oracle HTML DB installs to the following location:

    http://hostname:port/pls/htmldb/htmldb
    
    

    The Login page appears.

  2. Under Login, type the following:

    • In Workspace, type the name of your workspace

    • In Username, type your username

    • In Password, type your case-sensitive password

  3. Click Login.

Resetting Your Password

You can reset your password by clicking the Change Password link on the Oracle HTML DB home page.

To reset your password:

  1. Log in to Oracle HTML DB. (See "Logging in to Oracle HTML DB".)

  2. Under Workspace Administration, click Change Password.

  3. In Change Password, type the following:

    • In the Password field, type your new password

    • In the Confirm Password field, type your new password again

    • Click Apply Changes

Note:

All users (developers and administrators) can use the Change Password link on the Oracle HTML DB home page to reset their password.

Logging Out of Your Workspace

To logout of Oracle HTML DB, click the Logout icon in the upper right corner of the window.

About the Oracle HTML DB User Interface

Once you log in to Oracle HTML DB, the Workspace home page appears as shown in Figure 2-1.

Figure 2-1 Workspace Home Page

Description of htmldb.gif follows
Description of the illustration htmldb.gif

The Workspace home page consists of five primary components:

To access Application Builder, SQL Workshop, or Data Workshop, click the large icons in the center of the page.

Navigating Using Breadcrumb Menus

As shown in Figure 2-2, a breadcrumb menu appears at the top of every page in Oracle HTML DB. Each menu entry indicates where the current page is relative to other pages in the Oracle HTML DB development environment. Additionally, you can click a specific entry to instantly link to a previous page.

Accessing Online Help

Most pages in Oracle HTML DB include page level help. Page level help displays in a text box on the right side of the page and offers a brief description of the page functionality. Oracle HTML DB also includes two other forms of online help:

  • Procedural online help. You can access an HTML-based online help system by clicking the Help icon in the upper right corner of the window.

  • Field level help. Most lists of values, select lists, check boxes, and fields in Oracle HTML DB include item help. When item help is available, the item label appears highlighted when you pass your cursor over it. Clicking the item label displays a description in a separate window.

Creating an Application Using the Create Application Wizard

A quick way to make data in the Oracle database accessible to an end user is to run the Create Application Wizard. This wizard creates a basic application based upon a table and contains the following pages:

The Create Application Wizard assumes you have a single table for which you want to create a report and update and insert data. Once the application is generated, you can modify it using Application Builder.

To create an application based on an existing table:

  1. Log in to Oracle HTML DB. (See "Logging in to Oracle HTML DB".)

  2. When the Workspace home page appears, click the Create Application button.

  3. On Select Creation Method, click Based on an Existing Table.

  4. On Identify Table/View Owner, select the table or view owner on which your application will be based and click Next.

    Each application is based on a table or view owned by a specific database schema.

  5. On Identify Table/View Name, select the table or view on which your application will be based and click Next.

  6. On Table User Interface Defaults:

    1. In Singular Name, enter a singular name of the table. This name becomes the form region title.

    2. In Plural Name, enter the plural name of the table. This name becomes the report region title and tab label.

    3. If this is the first time you are creating an application on a given table, go to step e.

    4. For Save user interface defaults, specify whether to save user interface defaults.

      Selecting Yes, saves table properties, column properties, summary columns and aggregate by columns selections to user interface defaults. User interface defaults enable you to assign default user interface properties to a table, column, or view within a specified schema.

    5. For Column User Interface Defaults, edit the column labels (optional).

    6. Click Next.

  7. On Summary By Column, select the columns that should have a detail report and chart and click Next.

  8. On Aggregate By Column:

    1. From Columns to Aggregate, select the columns for which values will be aggregated.

    2. For Aggregate Function to Use, select aggregate method (Sum, Average, or both).

    3. Click Next.

  9. On Application Options:

    1. For Application Name, enter a name for the application.

    2. For a Create Mode, select Read and Write.

      Read Only prevents users from changing the data in the underlying table. Read and Write enables users to change the data in the underlying table (that is, perform inserts and updates).

    3. For Chart Type, select a chart type.

      The wizard creates a chart page for each summary column you selected in the previous step.

    4. Click Next.

  10. On Identify Primary Key, enter the name of the primary key column for the table and click Next.

  11. On Primary Key Source, select a source type for the primary key column. Valid options include:

    • Existing Trigger - Select this option if a trigger is already defined for the table. You do not need to define a primary key column source for existing columns. Existing columns already have a primary key.

    • Custom PL/SQL Function - Select this option if the source is a PL/SQL function returning the key value.

    • Existing Sequence - Select this option if an existing sequence is defined for the table. If that is the case, the sequence next value would be used.

  12. On Select Theme, select a theme for this application and click Next.

    A theme is a named collection of templates used to define the user interface of an application.

  13. Confirm your selections and click Create.

    A confirmation page appears, displaying two icons:

    • Run Application

    • Edit Application

    See Also:

Running Your Application

You can run your application by clicking the Run Application icon on the Create Application Success page.

To run your application from the Quick Application Confirmation page:

  1. Click Run Application.

    The Login page appears.

  2. Log in to your application by typing your workspace username and password and clicking Login.

    Your application appears. Note the Developer toolbar at the bottom on the page. (See Figure 2-3.)

    Figure 2-3 Application Builder Developer Toolbar

    Description of d_toolbar.gif follows
    Description of the illustration d_toolbar.gif

    The Developer toolbar offers a quick way to edit the current page, create a new page, control, or component, view session state, or toggle edit links on an off.

  3. Explore your application.

  4. To exit your application and return to Application Builder, click Edit Page on the Developer toolbar.

    As shown in Figure 2-4, the Page Definition appears.

    Figure 2-4 Page Definition

    Description of pg_def.gif follows
    Description of the illustration pg_def.gif

    A page is the basic building block of an application. You use the Page Definition to view, create, and edit the controls and components that define a page.

  5. To return to Application Builder home page, select the Application Builder tab.