Databases for decision-support applications are often created by periodically loading tables that have been unloaded from active OLTP databases. You can use one or more of the following methods to load large tables quickly:
You can use HPL in express mode to load tables quickly. For more information on how the database server performs high-performance loading, see the IBM Informix: High-Performance Loader User's Guide.
The database server provides support to:
The two table types are STANDARD (logging tables) and RAW (nonlogging tables). You can use any loading utility such as dbimport or HPL to load raw tables.
The following sections describe:
For recovery information about standard and raw tables, see your IBM Informix: Dynamic Server Administrator's Guide.
The STANDARD type, which corresponds to a table in a logged database of previous versions, is the default. When you issue the CREATE TABLE statement without specifying the table type, you create a standard table.
Standard tables have the following features:
OLTP applications usually use standard tables. OLTP applications typically have the following characteristics:
Logging and recovery of these transactions is critical to preserve the data. Locking is critical to allow concurrent access and to ensure the consistency of the data selected.
Indexes speed access to these rows. An index requires only a few I/O operations to access the pertinent row, but scanning a table to find the pertinent row might require many I/O operations.
The advantage of nonlogging tables is that you can load very large data warehousing tables quickly because they have following characteristics:
The following sample SQL statement changes a STANDARD table to nonlogging:
ALTER TABLE largetab TYPE(RAW);
For more information on dbexport and dbload, see the IBM Informix: Migration Guide. For more information on HPL, see the IBM Informix: High-Performance Loader User's Guide.
You must make a level-0 backup of any nonlogging table that has been modified before you convert it to STANDARD type. The level-0 backup provides a starting point from which to restore the data.
The following sample SQL statement changes a raw table to a standard table:
ALTER TABLE largetab TYPE(STANDARD);
For more information on standard tables, see the previous section, Advantages of Logging Tables.
The following sample SQL statements creates a nonlogging table:
CREATE DATABASE history WITH LOG; CONNECT TO DATABASE history; CREATE RAW TABLE history (... );
For more information on dbexport and dbload, see the IBM Informix: Migration Guide. For more information on HPL, see the IBM Informix: High-Performance Loader User's Guide.
You must make a level-0 backup of any nonlogging table that has been modified before you convert it to STANDARD type. The level-0 backup provides a starting point from which to restore the data.
The following sample SQL statement changes a raw table to a standard table:
ALTER TABLE largetab TYPE(STANDARD);
For more information on standard tables, see the previous section, Advantages of Logging Tables.