2 Accessing Your Development Environment

This section guides you through the steps needed to access an Oracle Application Express development environment.

This chapter assumes that you have installed Oracle Database Express Edition (Oracle Database XE) on your Windows or Linux system, as described in Oracle Database Express Edition Installation Guide for Microsoft Windows and Oracle Database Express Edition Installation Guide for Linux.

Topics:

Before You Begin

Before you begin this section, do the following:

Accessing Oracle Application Express from the Database Home Page

The Database Home page is a Web browser-based interface that enables you to perform various database administration operations, including monitoring database storage, monitoring database sessions, and viewing database initialization parameters. In Oracle Database XE, you use the Database Home page to initially access Oracle Application Express.

Topics:

Creating Login Credentials from the Database Home Page

This section explains how to create a workspace and log in to Oracle Application Express from the Database Home page. Once you create a workspace, username, and password, you can access Oracle Application Express directly from your Web browser as described in "Logging In to Application Express Administration Services" and "Logging In to the Application Express Development Environment".

To create login credentials from the Database Home page:

  1. Navigate to the system menu:

    • Windows - From the Start menu, select Programs (or All Programs), then Oracle Database 11g Express Edition, and then Get Started.

    • Linux - Click the Application menu (on Gnome) or the K menu (on KDE), then point to Oracle Database 11g Express Edition, and then Get Started.

      The Oracle Database XE home page appears.

    Description of xe_home_pg.gif follows
    Description of the illustration xe_home_pg.gif

    For detailed information about using database-level operations, see Oracle Database Express Edition 2 Day DBA.

  2. Click the Application Express button.

    The Login page appears.

  3. On the Login page:

    1. Username - Specify a database user who has been granted the DBA database role (for example, SYSTEM).

    2. Password - Enter the database user password you created during the installation process.

    3. Click Login.

    The Create Application Express Workspaces page appears.

    Description of xe_create_wrkspc.gif follows
    Description of the illustration xe_create_wrkspc.gif

  4. On the Create Application Express Workspaces page:

    1. Database User - Select Create New.

    2. Database Username - Enter TWODAYPLUS

    3. Application Express Username - Enter a unique username (for example, TWODAYPLUS).

    4. Password - Enter a password.

    5. Confirm Password - Re-enter the password.

      Tip:

      Make a note of your login credentials.
    6. Click Create Workspace.

      The Database Home page appears. A message appears at the top of the page.

  5. Click the click here ink in the message that displays:

    Successfully created workspace 2DAYPLUS. To begin, click here to login. 
    
  6. Change your password and click Apply Changes.

  7. Click Return.

  8. Enter the your new login credentials and click Login.

    Description of login.gif follows
    Description of the illustration login.gif

    The Workspace home page appears.

About the URL Where You Access Oracle Application Express

Make a note of the URL that displays in your Web browser when the Workspace home page appears. You can use this URL to log into Oracle Application Express directly. The URL appears in the format:

http://hostname:port/apex

Where:

  • hostname is the name of the system where Oracle XML DB HTTP server is installed.

  • port is the port number assigned to Oracle XML DB HTTP server. In a default installation, this number is 8080.

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

Logging in to Application Express with an Existing Account

To log in to Oracle Application Express from the Database Home page using an existing account:

  1. Navigate to the system menu:

    • Windows - From the Start menu, select Programs (or All Programs), then Oracle Database 11g Express Edition, and then Get Started.

    • Linux - Click the Application menu (on Gnome) or the K menu (on KDE), then point to Oracle Database 11g Express Edition, and then Get Started.

      The Oracle Database XE home page appears.

  2. Click the Application Express button.

    The Login page appears.

  3. On the Login page:

    1. Username - Specify a database user which has been granted the DBA database role (for example, SYSTEM)

    2. Password - Enter the database user password you created during the installation process.

    3. Click Login.

  4. Under Getting Started:

    1. Click the Already have an Account? Login Here button.

      A login page appears.

    2. Enter your login credentials.

      Description of login.gif follows
      Description of the illustration login.gif

    3. Click Login.

      The Workspace home page appears.

Understanding and Configuring Your Local Environment

Instead of using the Database Home page to access Oracle Application Express, you can also access and configure Oracle Application Express directly.

Note:

This tutorial explains a simplified approach for setting up your development environment so that you can begin using Oracle Application Express. However, to set up your development environment to accommodate real-life development needs, review “Oracle Application Express Hosted Instance Administration" in Oracle Application Express Administration Guide.

Topics:

Logging In to Application Express Administration Services

In Oracle Application Express, you can create multiple areas (or workspaces) where you develop applications. You configure and manage an Oracle Application Express instance by logging in to Oracle Application Express Administration Services.

To log in to the Oracle Application Express Administration Services:

  1. In a Web browser, go to the Oracle Application Express Administration Services application.

    By default, Oracle Database XE uses the Embedded PL/SQL gateway:

    http://hostname:port/apex/apex_admin
    

    Where:

    • hostname is the name of the system where Oracle XML DB HTTP server is installed.

    • port is the port number assigned to Oracle XML DB HTTP server. In a default installation, this number is 8080.

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

      For users who have upgraded from earlier versions, or who have a custom configuration, this value may be htmldb or something else. Verify your DAD with your Oracle Application Express administrator.

    The Login page appears.

  2. On the Login page:

    1. Username - Enter admin

    2. Password - Enter the SYS or SYSTEM database account password you created during the installation process.

    3. Click Login.

  3. If prompted, change your password and click Apply Changes.

  4. Enter you new login credentials and click Login.

    Oracle Application Express Administration Services appears.

    Tip:

    Make a note of your revised Oracle Application Express Administration Services login credentials.

Viewing an Existing Workspace

You can view the workspace you just created on the Existing Workspaces page.

To view existing workspaces:

  1. Log in to Oracle Application Express Administration Services. See "Logging In to Application Express Administration Services".

  2. Click Manage Workspaces.

    Description of adminsvc.gif follows
    Description of the illustration adminsvc.gif

  3. Locate the section Workspace Reports.

  4. Under Workspace Reports, click Workspace Details.

    Description of workspace_details.gif follows
    Description of the illustration workspace_details.gif

    The Workspace Details page appears.

  5. From Workspace, select TWODAYPLUS and click Set.

    The Workspace Summary Report appears.

Creating a New Workspace

The most direct way to create a workspace is to log in to Oracle Application Express Administration Services. A workspace is a shared work area within the Oracle Application Express development environment that has a unique ID and name. All users in the workspace can access all its applications and scripts. For more information about workspaces, see "About Workspaces".

If you want to start developing the application shown in this guide, skip this section and go to "Logging In to the Application Express Development Environment".

To create a workspace:

  1. Log in to Oracle Application Express Administration Services. See "Logging In to Application Express Administration Services".

    The Instance Administration page appears.

  2. Click Manage Workspaces.

  3. Under Workspace Actions, click Create Workspace.

    Description of setuphst1_crtwksp.gif follows
    Description of the illustration setuphst1_crtwksp.gif

    The Create Workspace Wizard appears.

  4. For Identify Workspace, enter the following:

    1. Workspace Name - Enter a unique workspace name.

      In general, you want to enter a workspace name that is significant to you. For example, you might enter your own name, your company name, or the name of the project or department to which your application pertains.

      If you want to use the same name for both your workspace and schema, enter a workspace name that contains only alphabetic characters. Schema names are restricted to alphabetic characters.

    2. Workspace ID - Leave Workspace ID blank to have the new Workspace ID automatically generated. A Workspace ID must be a positive integer greater than 100000.

    3. Workspace Description - Enter a workspace description.

    4. Click Next.

  5. For Identify Schema, enter the following:

    1. Re-use existing schema - Select No if you are creating your first workspace.

      A schema is a logical container for database objects. In this step, you are creating the container for database objects you add later in this tutorial.

    2. Schema Name - Enter a schema name. You must use only alphabetic characters in your schema name.

    3. Schema Password - Enter a case-sensitive password.

    4. Space Quota (MB) - Select at least 10 MB to accommodate the necessary space for creating the objects required for this guide.

    5. Click Next.

  6. For Identify Administrator, enter the following:

    1. Administrator Username - Accept the default, ADMIN, or enter another user name to be used in Oracle Application Express.

      You are creating an account for only one user, yourself as an administrator. To see instructions for creating additional users, see "Creating Additional User Accounts".

    2. Administrator Password - Enter a case-sensitive password.

    3. Enter the remaining information, including a valid email address.

      Description of cr_wkspc_admin.gif follows
      Description of the illustration cr_wkspc_admin.gif

    4. Click Next.

      The login credentials for accessing Oracle Application Express are sent to the email address you enter here, if you have configured the email settings for your Oracle Application Express environment.

  7. Confirm your selections and click Create Workspace.

  8. Click Logout to exit Oracle Application Express Administration Services.

Logging In to the Application Express Development Environment

To log in to Oracle Application Express, you must have this information:

  • URL where you can access Oracle Application Express

  • Workspace name you use to develop applications

  • Username set up for you for this workspace within Oracle Application Express

  • Password set up for you for this workspace within Oracle Application Express

To log in to Oracle Application Express:

  1. In a Web browser, go to the Oracle Application Express Login page. By default, Oracle Database XE uses the Embedded PL/SQL gateway:

    By default, Oracle Database XE uses the Embedded PL/SQL gateway:

    http://hostname:port/apex/apex_admin
    

    Where:

    • hostname is the name of the system where Oracle XML DB HTTP server is installed.

    • port is the port number assigned to Oracle XML DB HTTP server. In a default installation, this number is 8080.

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

      For users who have upgraded from earlier versions, or who have a custom configuration, this value may be htmldb or something else. Verify your DAD with your Oracle Application Express administrator.

    The Login page appears.

  2. Enter the your login credentials.

    Description of login.gif follows
    Description of the illustration login.gif

  3. Click Login.

Creating Additional User Accounts

As an administrator, you inherit all the privileges associated with the developer role. If you want to start developing the application shown in this guide, skip this section and go to "Logging In to the Application Express Development Environment".

However, you might want to create user accounts for other developers who share this workspace. Associating users with the workspace grants them access to all applications and scripts within that workspace. You can also create additional user accounts for workspace administrators.

To create a user account:

  1. Log in to the Workspace where you want to add users. See "Logging In to the Application Express Development Environment".

    The Workspace home page appears.

  2. Click Administration.

  3. Click Manage Users and Groups.

  4. Click Create User.

    The Create User page appears.

    Description of deploy_cr_enduser.gif follows
    Description of the illustration deploy_cr_enduser.gif

  5. Under User Identification, enter:

    1. Username - Enter the username used to log in to the system. Restrictions include:

      • Maximum length of 100 characters

      • No spaces

      • Only these special characters are permitted: ampersand (@) and period (.)

    2. Email Address - Enter the valid email address for this user.

    3. First Name - Enter the first or given name to further identify the user (optional).

    4. Last Name - Enter the last or family name to further identify the user (optional).

    5. Description - Enter comments about this user (optional).

  6. Under Account Privileges:

    1. Default Schemas - Specify the default schema used for data browsing, application creation, and SQL script execution.

      When using workspaces that have more than one schema available, this schema is the default. This setting does not control security, only the user's preference.

    2. Accessible Schemas (null for all) - Leave this blank to enable the end user to access all applications in the workspace, or enter a colon-delimited list of schemas for which this user has permissions when using the SQL Workshop.

    3. User is a workspace administrator - Specify if this user should have workspace administrator privileges.

      Administrators are given access to all components. Additionally, they can manage user accounts, groups, and development services. Components may not be available if they are switched off by Instance Administrators.

    4. User is a developer - Specify if this user should have developer privileges.

      Developers must have access to either Application Builder, SQL Workshop, or both. Components may not be available if they are switched off by Instance Administrators.

    5. Application Builder Access - Determines whether a developer has access to the Application Builder.

    6. SQL Workshop Access - Determines whether a developer has access to the SQL Workshop.

    7. Team Development Access - Determines whether a developer has access to Team Development.

    8. Set Account Availability - Select Locked to prevent the account from being used. Select Unlocked to allow the account to be used.

  7. Under Password:

    • Password - Enter a case sensitive password.

    • Confirm Password - Enter the password again.

    • Require Change of Password On First Use - Select No to not require this user to change his or her password at first log in. Select Yes to require the user to change the password immediately after logging in the first time.

  8. Under User Groups, optionally select a user group.

  9. Click Create User or Create and Create Another.

See also:

"Managing Application Express Users" in Oracle Application Express Administration Guide