Use the Load Process to transform the contents of an Archive File to Load utility format and execute a Load utility.
Using the Load utility instead of the Archive Restore Process may provide benefits under certain conditions:
Both the Load utility and the LOAD phase of LOADPLUS must be in exclusive control of the database to function. During the Archive Restore Process, however, the database remains available to all users. Many of the Restore Process facilities are available when using a Load utility. Table Maps can be used to specify different Creator IDs and table names for the destination. Column Maps can be used to specify different column names. A Load utility is a batch utility that inserts rows in the destination database. It cannot be used to replace data.
Generally, rows in the Archive File are loaded into the database in the order processed. However, if a cluster index has been defined for the table, the rows can be sorted on the basis of that index before they are loaded. LOADPLUS provides sort options that you can select when defining parameters for the load.
When you select Option 7 on the Archive and Restore menu, the following menu is displayed. This panel reflects whether the DB2® Load Utility or LOADPLUS utility is used. The default load utility is specified as a site option. You can override the site default by specifying a different utility as a user option, as described in the Common Elements Manual. The DB2 Load utility is the default in Archive, as distributed. Thus, the LOAD menu is shown in the following figure.
Figure: LOAD Process Menu
--------------------------------- LOAD Process -------------------------------- OPTION ===> SCROLL ===> PAGE 1 TABLE MAP - Specify Table Map and Column Maps 2 PERFORM - Specify LOAD Parameters and Perform LOAD Specify Data Set Names for Archive File and Control File: Archive File DSN ===> 'FOPDEMO.ARCHIVE.FILE' Control File DSN ===> 'FOPDEMO.CONTROL.FILE'
The available options are:
You may also specify Column Maps for selected destination tables. Use a Column Map to specify, on a column-by-column basis, the archived data for each destination column.
For more information about Table and Column Maps, see the Common Elements Manual. Note that only table names are valid in a Table Map for a Load Process. DB2 does not allow you to LOAD a view, synonym, or alias.
In addition to selecting an option, specify:
The Archive File DSN and Control File DSN values are profiled.
You can obtain a selection list for the Archive File or the Control File by specifying a wildcard character, * or %, as the last character in the name. When the list is displayed, use the S line command to select an entry. A sample of the selection list displayed for Archive File or Control File data set names is provided in Figure 2.
Select Option 2 PERFORM to specify the parameters and perform the process. Archive displays a panel appropriate to the load utility, LOAD or LOADPLUS, that is used.