DB2 Version 10.1 for Linux, UNIX, and Windows

Creating the restart table

By default, failed INGEST commands are restartable from the last commit point; however you first need to create a restart table, which stores the information needed to resume an INGEST command.

About this task

You have to create the restart table only once, and that table will be used by all INGEST commands in the database.

The ingest utility will use this table to store information needed to resume an incomplete INGEST command from the last commit point.
Note: The restart table does not contain copies of the input rows, only some counters to indicate which rows have been committed.

Restrictions

Procedure

To create the restart table:


Results

The restart table, SYSTOOLS.INGESTRESTART, should now be created in the specified table space, and you can now run restartable INGEST commands.

Example

A DBA intends to run all INGEST commands as restartable, so the DBA needs to first create a restart table:
  1. The DBA connects to the database:
    db2 CONNECT TO sample
  2. The DBA calls the stored procedure:
    db2 "CALL SYSPROC.SYSINSTALLOBJECTS('INGEST', 'C', NULL, NULL)"

What to do next

Ensure that any user who will modify the restart table has the appropriate authorization:
  • If the INGEST command specifies RESTART NEW, the user must have SELECT, INSERT, UPDATE, and DELETE privilege on the restart table.
  • If the INGEST command specifies RESTART TERMINATE, the user must have SELECT and DELETE privilege on the restart table.