Skip Headers
Oracle® Application Express End User's Guide
Release 4.2

E35124-04
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 current chapter
Up
Go to next page
Next
PDF · Mobi · ePub

4.2 Importing Data from a File into Your Application

To upload data to your application, the application must have been built with Data Upload capability and the file must be formatted properly.

To illustrate how you can use the Data Load wizard to import data from a text file, the following section demonstrates the upload process and includes examples from the sample packaged application, Sample Database Application.

See Also:

"Utilizing Packaged Applications" and "About Sample Database Application" in Oracle Application Express Application Builder User's Guide

To import data from a file into the sample packaged application, Sample Database Application:

  1. Log into the sample packaged application, Sample Database Application.

  2. On the Customers page, click Upload Data to launch the Data Load wizard.

    The Data Load wizard appears.

  3. For Data Source Load:

    1. Import From - Select Upload file, comma separated (*.csv) or tab delimited.

      The Data Load Source page appears with options for loading from a data file.

      Description of data_load_source.gif follows
      Description of the illustration data_load_source.gif

    2. Separator - Enter the column separator character. Use \t for tab separators.

    3. Optionally Enclosed By - Enter a delimiter character to delineate the start and end boundary of a data value.

    4. First Row has Column Names - Options include:

      • Yes - Columns are named with column names from the first row of the uploaded data file.

      • No - Columns will not be named with column names from the uploaded data file.

    5. File Character Set - Select the file character set associated with the file to be uploaded.

    6. File Name - Browse to the file name containing the data to upload.

      The following example shows an example customer.txt data load file.

      Description of customer.gif follows
      Description of the illustration customer.gif

    7. Currency Symbol - If your data contains an international currency symbol, enter it here. For example, if your data has "$1,234.56" or "¥1,234.56", enter $ or ¥. Otherwise the data may not load correctly.

    8. Group Separator - If your data contains a group separator, enter it here. A group separator is a character that separates integer groups, for example, to show thousands and millions.

      Any character can be the group separator. The character specified must be single-byte, and the group separator must be different from any other decimal character. The character can be a space, but cannot be a numeric character or any of the following: plus sign (+), hyphen (-), less than sign (<), or greater than sign (>).

    9. Decimal Character - If your data contains a decimal character, enter it here. The decimal character separates the integer and decimal parts of a number. Any character can be the decimal character. The character specified must be single-byte, and the decimal character must be different from any other group separator. The character can be a space, but cannot be a numeric character or any of the following: plus sign (+), hyphen (-), less than sign (<), or greater than sign (>)

  4. Click Next.

    The Data/Table Mapping page appears.

    Description of data_table_mapping.gif follows
    Description of the illustration data_table_mapping.gif

  5. For Data/Table Mapping:

    1. Column Mapping - Indicates the destination column name. To change the column name, select a new column name from the list. To hide a column, select Do Not Load.

    2. Date/Number Format - Most of the standardized date and number formats are automatically parsed and then passed to the database. If you want to define your own format or the format is not an automatically parsed format, use this field to define your own. See "Automatically Supported Date, Timestamp and Number Formats".

    3. Click Next.

    The Data Validation page appears showing the data to be inserted or updated after any table lookup and transformation rules have been applied. For more information regarding table look up and transformation rules, see "About Using the Data Loading Wizard".

    Description of validation.gif follows
    Description of the illustration validation.gif

  6. Review the data to be uploaded and click Load Data.

    The Data Load Results page appears.

    Description of data_load_results.gif follows
    Description of the illustration data_load_results.gif

    The Data Load Results page displays:

    • Inserted Row(s) - This is the number of new rows uploaded to the table.

    • Updated Row(s) - This is the number of rows in the table updated with new information.

    • Failed Row(s) - This is the number of rows from the upload file that were not added or updated.

    • To be Reviewed Row(s) - This is the number of rows needing review.

  7. Click View Customers to return to the Customers page.