Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The reference implementation of uPortal's data storage interfaces requires a relational database. uPortal provides a tool, DbLoader, to load a relational database with the required uPortal tables and sample data.

DbLoader performs the following tasks:

  1. Reads in properties/db/tables.xml file to determine the database schema
  2. Deletes existing tables specified in tables.xml.
  3. Creates the tables specified in tables.xml.
  4. Reads in properties/db/data.xml file to determine sample data.
  5. Inserts data from data.xml into the newly created tables.
  6. Creates a database script containing all the SQL statements previously executed.

DbLoader can be configured by modifying properties/db/dbloader.xml. Because DbLoader relies on database metadata supplied by a JDBC driver, it may be necessary (for some combinations of drivers and databases) to supply a datatype mapping inside dbloader.xml. If this is necessary, DbLoader will print an error message with instructions.

  • No labels