Syntax documentation TABLELOAD Command Locate the document in its SAP Library structure

With this SAP DB Loader command, you can control the loading of database tables.

Syntax

<tableload_statement> ::=
TABLELOAD <
part_spec> [<configurationstream_spec>] <datainstream_spec> [<packagestream_spec>] [<restart>]

You can also use the keywords LOAD DATA instead of the keyword DATALOAD.

Prerequisites

THE command TABLELOAD ALL can only be executed by the Structure linkSYSDBA user.

You have unloaded the database tables with the TABLEEXTRACT command.

You cannot change the format of the generated data streams (PAGES or RECORDS). If the data streams have the format RECORDS, you must create the required database table definitions in the database catalog using the corresponding data definition statements.

The target tables must be empty. If the tables are not empty, the SAP DB Loader attempts to delete the contents of the tables.

Use

<part_spec>

Data Streams <datainstream_spec>

You can recover database tables using the data streams created with the TABLEEXTRACT command. If you want to use the data streams generated with the TABLEEXTRACT command, specify this name as <datainstream_spec>.

The system table TRANSFORMATIONMODEL and other system tables are filled.

Process Flow

The SAP DB Loader restores the table in the following order:

  1. The database catalog information is adjusted (case 1) or newly created (case 2).
  2. The application data is loaded (including LONGs).
  3. Indexes are created if they exist in the source table.

No log entries are written during a load process with TABLELOAD.

Case 1:
The table to be restored exists in the database instance

The SAP DB Loader can adjust the following differences between the database catalog information for the source and target tables:

If there are differences between the source and target tables for the definitions of types and the length of the individual columns, the TABLELOAD process is terminated.

Case 2:
The table to be restored does not exist in the database instance

Exclude Tables from Load: <configurationstream_spec>

Differentiate between the following variants when making the required specifications in the data stream <configurationstream_spec>, depending on the medium from which you are loading the data streams:

Unloading System Tables: <packagestream_spec>

If possible, you should not unload the system tables.

Result

The database tables are loaded using the data streams <datainstream_spec>.

If necessary, all entries of the table TRANSFORMATIONMODEL are unloaded in the data stream <packagestream_spec>.

The table is write-protected during the restore process and after a successful restore. To remove the write-protection, back up the database instance after you have restored the table.

Errors

The load process cannot be successfully completed. In this case, the SAP DB Loader logs the cause of the error in the log file.

The values PACKAGEGUID and CLIENTNODE are both written to the log file. The PACKAGEGUID is required if you want to restart the unload process.